DeFiChefV2

Verified contract

Active on Ethereum with 892 txns
Deployed by via 0xd282b053 at 19517619
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $85,488.93
0xadd266a5eefe624d03ad3b09ec89afaf83e70755e3515d219db77dab80520aa9
0x1bab4082b227fbc415f801c1aa1fb8e722b6b0a61fc3d44694a434e3cd7d11e9
0xbba99d625b7ff456004334b7584cbd80fb25361425a3c6831c82f36e383cf52d
0x493984db550b3638b9f0c7a5fe6f0b71f23886a95bde35faa7c0303445f69ed0
0x99fb7a951b8de78dabe22820bab2137292668f47b377560494e1918617128d8c
0xd1cbde4ba915f268521e2307cc9f0dbc3bbdef2ec3725fc3c46600f0eef00dde
0x7e61040674e5bc16f9b2ebc41f5e5bfc901d1b13c2b2f4809413a282b040cbea
0x8d55a7a2e8317cf47dc61c4a046d025317e946459c2b34f2f5eb4384962ea220
0x6a86f5cdae97f6dda0c9dfed31f36d28045c7daf3e515d922477750495d5f0b1
0x6aadb9d3de8b300881f24c851b50e8995031dab3e5ec7df48f1fa0c1b865e1db

Functions
Getter at block 21297483
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DEFI(view returns (address)
0x6b0faca7ba905a86f221ceb5ca404f605e5b3131
EXTERNAL_SOURCE_ROLE(view returns (bytes32)
0xda489a047deffcd16558555da4614a51cef323c3497eaee639b4874ead8e5d97
OPERATOR_ROLE(view returns (bytes32)
0x97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929
PAUSER_ROLE(view returns (bytes32)
0x65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a
PRECISION(view returns (uint256)
1000000000000000000
STAKE(view returns (address)
0x6b0faca7ba905a86f221ceb5ca404f605e5b3131
VESTING(view returns (address)
0x4307adb2b4fc069d46a3f3c1317cbeb7cae53262
YEAR(view returns (uint256)
31104000
getBaselinePoolId(view returns (uint256)
1
getCooldown(view returns (uint256)
86400
getReferralCliff(view returns (uint256)
0
getReferralDuration(view returns (uint256)
15552000
getTotalPoolsCount(view returns (uint256)
8
getTotalStakeAmount(view returns (uint256)
4167533265696998545370533
paused(view returns (bool)
false
Read-only
getBaselineDuration(address beneficiary_uint16 pid_uint256 pos_view returns (uint256)
getPool(uint16 pid_view returns (struct IDeFiChefStateV2Pool pool)
getPosCount(address beneficiary_uint16 pid_view returns (uint256)
getReferralLvl(address referral_view returns (uint8uint256)
getReferralRate(address referral_uint16 pid_view returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
getStake(address beneficiary_uint16 pid_uint256 pos_view returns (struct IDeFiChefStateV2Stake 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)
claimLvlV2(address[] referrals_
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_uint8[] lvls_uint16[] pools_uint256[] rates_
setupVesting(address vesting_
unpause(
updatePool(uint16 pid_uint256 minAmount_uint256 baseRate_uint256 boostRate_uint256 affRate_uint256 refRate_uint256 duration_bool enabled_
updateReferralCliff(uint256 referralCliff_
updateReferralDuration(uint256 referralDuration_
updateReferrals(address[] referrals_uint16[] pools_uint256[] rates_
withdraw(uint16 pid_uint256 pos_returns (uint256 amountuint256 reward)
withdrawRequest(uint16 pid_uint256 pos_
Events
Claimed(address indexed referraluint256 amount
ClaimedLvlV2(address indexed referraluint256 amountuint256 pid
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 referraluint8 lvl
ReferralBalanceUpdated(address indexed referraluint256 amount
ReferralCliffUpdated(uint256 cliff
ReferralDisabled(address indexed referral
ReferralDurationUpdated(uint256 referralDuration
ReferralEnabled(address indexed referral
ReferralUpdated(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
VestingSetup(address vesting
WithdrawRequested(address indexed useruint16 pooluint256 posuint256 unlock
Withdrawn(address indexed useruint16 pooluint256 posuint256 amountuint256 reward
Constructor
constructor(address DEFI_address STAKE_address VESTING_
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_
ReferralDefinedErr(address referral_
ReferralDisabledErr(address referral_
ReferralEnabledErr(address referral_
ReferralEpochErr(address referral_
ReferralErr(address referral_
ReferralLvlV1Err(address referral_
ReferralLvlV2Err(address referral_
ReferralUndefinedErr(address referral_
ReferralZeroBalanceErr(address referral_
StakeClosedErr(
StakeEmergencyErr(
StakeLockedErr(
StakeUndefinedErr(
TokenNullAddressErr(