DeFiChef

Verified contract

Active on Ethereum with 2,769 txns
Deployed by via 0x31270a74 at 19119568
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $30,784.59
0xc3b6348adf0ad298123f5e86e818d11137a2b8caf02784f1b0803f75405aaea6
0x1253413ff250460a90e8cfe813d74537822d8f7567df8da947a1631471edf005
0x0a64c3313bdd5c66944c4c6ed33313680343c4eaab7db5c190d656338a41fb93
0x0d212bd343f7f81d5f383bc02bf5d4f44456b292ba8b73e6e8318430a76d4917
0x43add32bc44fd258851d74ec6fc663ce00efc7ed1aaae20b4cbaeaa2210c932c
0xa032bce9d3c7a4fe0715612d780a6917257a334db9a5457b3a886232e95febeb
0x46e302123a3214c07d3d249d3ca22d39becddc955926ee0f3499114a715651a4
0x4c92f4939b6c1cffcf4cf051f2d61c3971ef4f7bc3ae1e8b8eb901ed7c6490b6
0xca90f3c1682dc95fed35a399e8fac6db1ebdec9de7659d5336c104e135966aa2
0x6a40608f73acc5c563157da1d95389504da5498edb2624b31e9e0357a295bfa4

Functions
Getter at block 21158265
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DEFI(view returns (address)
0x6b0faca7ba905a86f221ceb5ca404f605e5b3131
EXTERNAL_SOURCE_ROLE(view returns (bytes32)
0xda489a047deffcd16558555da4614a51cef323c3497eaee639b4874ead8e5d97
PAUSER_ROLE(view returns (bytes32)
0x65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a
PRECISION(view returns (uint256)
1000000000000000000
STAKE(view returns (address)
0x6b0faca7ba905a86f221ceb5ca404f605e5b3131
YEAR(view returns (uint256)
31104000
getBaselinePoolId(view returns (uint256)
1
getCooldown(view returns (uint256)
86400
getTotalPoolsCount(view returns (uint256)
8
getTotalStakeAmount(view returns (uint256)
1633712377917044174728732
paused(view returns (bool)
false
Read-only
getBaselineDuration(address beneficiary_uint16 pid_uint256 pos_view returns (uint256)
getPool(uint16 pid_view returns (struct IDeFiChefStatePool pool)
getPosCount(address beneficiary_uint16 pid_view returns (uint256)
getReferralRate(address referral_uint16 pid_view returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
getStake(address beneficiary_uint16 pid_uint256 pos_view returns (struct IDeFiChefStateStake stake)
hasRole(bytes32 roleaddress accountview returns (bool)
isStakeUnlocked(address beneficiary_uint16 pid_uint256 pos_view returns (bool)
referralBalanceOf(address referral_view returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
claim(returns (uint256 amount)
closePool(uint16 pid_
deposit(uint16 pid_uint256 amount_address referral_
depositFrom(address vesting_uint256 vid_uint16 pid_bytes message_
disablePool(uint16 pid_
disableReferral(address referral_
enablePool(uint16 pid_
enableReferral(address referral_
grantRole(bytes32 roleaddress account
pause(
recoverERC20(address token_uint256 amount_
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setupCooldown(uint256 cooldown_
setupPool(uint256 minAmount_uint256 baseRate_uint256 boostRate_uint256 affRate_uint256 refRate_uint256 duration_uint8 type_bool enabled_
setupReferrals(address[] referrals_uint16[] pools_uint256[] rates_
unpause(
updatePool(uint16 pid_uint256 minAmount_uint256 baseRate_uint256 boostRate_uint256 affRate_uint256 refRate_uint256 duration_bool enabled_
withdraw(uint16 pid_uint256 pos_returns (uint256 amountuint256 reward)
withdrawRequest(uint16 pid_uint256 pos_
Events
Claimed(address indexed referraluint256 amount
CooldownSetup(uint256 cooldown
Deposited(address indexed useruint16 pooluint256 posuint256 amountuint256 rate
DepositedFrom(address indexed sourceaddress indexed useruint16 pooluint256 posuint256 amountuint256 rate
ERC20Recovered(address tokenuint256 amount
Paused(address account
PoolAdded(uint16 indexed piduint256 minAmountuint256 baseRateuint256 boostRateuint256 affRateuint256 refRateuint256 durationbool enabled
PoolClosed(uint16 indexed pid
PoolUpdated(uint16 indexed piduint256 minAmountuint256 baseRateuint256 boostRateuint256 affRateuint256 refRateuint256 durationbool enabled
ReferralAdded(address indexed referral
ReferralBalanceUpdated(address indexed referraluint256 amount
ReferralClaimed(address indexed referraluint256 amount
ReferralDisabled(address indexed referral
ReferralEnabled(address indexed referral
ReferralVestingSetup(uint256 epochuint256 duration
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Unpaused(address account
WithdrawRequested(address indexed useruint16 pooluint256 posuint256 unlock
Withdrawn(address indexed useruint16 pooluint256 posuint256 amountuint256 reward
Constructor
constructor(address DEFI_address STAKE_
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AmountZeroErr(
ArrayParamsInvalidLengthErr(
ExternalSourceAuthErr(
InvalidReferralErr(
PoolBaselineErr(uint16 pid_
PoolClosedErr(uint16 pid_
PoolDefinedErr(uint16 pid_
PoolDisabledErr(uint16 pid_
PoolMinAmountErr(uint16 pid_
PoolUndefinedErr(uint16 pid_
ReferralDisabledErr(address referral_
ReferralEnabledErr(address referral_
ReferralEpochErr(address referral_
ReferralUndefinedErr(address referral_
ReferralZeroBalanceErr(address referral_
StakeClosedErr(
StakeEmergencyErr(
StakeLockedErr(
StakeUndefinedErr(
TokenNullAddressErr(