DeFiChefV2
Verified contract
Active on
Ethereum with 892 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($85,488.93)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
DEFI | ERC-20 | 4.087938M | $0.020912 |
$85,488.93 |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 21296292 | 4 hours ago | | | 0 | 0.00085450092 | |
| 21294853 | 9 hours ago | | | 0 | 0.0022711789 | |
| 21294840 | 9 hours ago | | | 0 | 0.0021654892 | |
| 21294832 | 9 hours ago | | | 0 | 0.0021126013 | |
| 21294808 | 9 hours ago | | | 0 | 0.0054269762 | |
| 21294806 | 9 hours ago | | | 0 | 0.0020300181 | |
| 21293778 | 12 hours ago | | | 0 | 0.0020927092 | |
| 21293263 | 14 hours ago | | | 0 | 0.00063431100 | |
| 21293260 | 14 hours ago | | | 0 | 0.00060869523 | |
| 21287481 | a day ago | | | 0 | 0.00088085036 |
ABI
ABI objects
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 (uint8, uint256)
getReferralRate(address referral_, uint16 pid_) view returns (uint256)
getRoleAdmin(bytes32 role) view returns (bytes32)
getStake(address beneficiary_, uint16 pid_, uint256 pos_) view returns (struct IDeFiChefStateV2Stake stake)
hasRole(bytes32 role, address account) view returns (bool)
isStakeUnlocked(address beneficiary_, uint16 pid_, uint256 pos_) view returns (bool)
referralBalanceOf(address referral_) view returns (uint256)
supportsInterface(bytes4 interfaceId) view returns (bool)
State-modifying
Events 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 role, address account)
pause()
recoverERC20(address token_, uint256 amount_)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address 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 amount, uint256 reward)
withdrawRequest(uint16 pid_, uint256 pos_)
Claimed(address indexed referral, uint256 amount)
ClaimedLvlV2(address indexed referral, uint256 amount, uint256 pid)
CooldownSetup(uint256 cooldown)
Deposited(address indexed user, uint16 pool, uint256 pos, uint256 amount, uint256 rate)
DepositedFrom(address indexed source, address indexed user, uint16 pool, uint256 pos, uint256 amount, uint256 rate)
ERC20Recovered(address token, uint256 amount)
Paused(address account)
PoolAdded(uint16 indexed pid, uint256 minAmount, uint256 baseRate, uint256 boostRate, uint256 affRate, uint256 refRate, uint256 duration, bool enabled)
PoolClosed(uint16 indexed pid)
PoolUpdated(uint16 indexed pid, uint256 minAmount, uint256 baseRate, uint256 boostRate, uint256 affRate, uint256 refRate, uint256 duration, bool enabled)
ReferralAdded(address indexed referral, uint8 lvl)
ReferralBalanceUpdated(address indexed referral, uint256 amount)
ReferralCliffUpdated(uint256 cliff)
ReferralDisabled(address indexed referral)
ReferralDurationUpdated(uint256 referralDuration)
ReferralEnabled(address indexed referral)
ReferralUpdated(address indexed referral)
ReferralVestingSetup(uint256 epoch, uint256 duration)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
Unpaused(address account)
VestingSetup(address vesting)
WithdrawRequested(address indexed user, uint16 pool, uint256 pos, uint256 unlock)
Withdrawn(address indexed user, uint16 pool, uint256 pos, uint256 amount, uint256 reward)
constructor(address DEFI_, address STAKE_, address VESTING_)
This contract contains no fallback and receive objects.
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()