DeFiChef

Verified contract

Active on Ethereum with 2,794 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,060.14
0xe0c3f9a91ce131363516763c88e67de644b232f6f874267806c56ce245773b41
0xfbe51418f702372ee10d4a064f3185ebfca3aef43d9e39f1d7e3a6da99bed463
0xbc6b1d2105a27b83ff19c1bbe3f0f6a62fff55b5af9566f9a80aca96a1fd507e
0x7276a77a3496d6a829841004cd7c037c6da0e52d6d032495bfc3c9efd8919d91
0x51761fc530a7d700ba9d9297f9a234b9b6d61ad3b1c4946211d2af31930e7ccc
0xad959c3e8124e4376ad41d37fb9d1c087b405c2e66b0ee852be569d2ad7e65de
0xf0aad83c64ecc567f98c6497db412d33b51562969d5da96b48b6494fa44fb5f3
0xb2c77cecb53b9f241098cfe5b2b548f68d9436398a010a8ccc473f3d2deafdcb
0xeb997e6686924ab0089d247228c16deb0c62102e62f2292c69525687eb82baa6
0xe224bc42eb77c4aa11181602c0d612c187260704d16d81e636b1895187e32957

Functions
Getter at block 21293378
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)
1615934947917044174728732
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(