ERC1967Proxy
Verified contract
Proxy
Active on
Ethereum with 136 txns
Unified storage
Map
Table
Raw
Constants and immutables
1
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 49 additional slots
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
SEED | ERC-20 | 1.251703M | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20908501 | 24 days ago | | | 0 | 0.0015706983 | |
| 20904853 | 25 days ago | | | 0 | 0.0011939033 | |
| 20826296 | a month ago | | | 0 | 0.0040642876 | |
| 20733467 | 2 months ago | | | 0 | 0.00064458000 | |
| 20729661 | 2 months ago | | | 0 | 0.0030447675 | |
| 20705315 | 2 months ago | | | 0 | 0.00034664189 | |
| 20682257 | 2 months ago | | | 0 | 0.00038314964 | |
| 20669522 | 2 months ago | | | 0 | 0.00062946956 | |
| 20666493 | 2 months ago | | | 0 | 0.00039070516 | |
| 20666468 | 2 months ago | | | 0 | 0.00039357707 |
ABI
ABI objects
Getter at block 21081706 getPools() view returns (struct BonsaiMasterChefUpgradeablePoolInfo[]) proxiableUUID() view returns (bytes32)
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
TIMELOCK_CONTROLLER_ROLE() view returns (bytes32)
0x1702593a39ccbcb2229f30e66acdf4dcbf6b8890ec55f4fe4c9585e9ac9c19ee
UPGRADER_ROLE() view returns (bytes32)
0x189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e3
UPGRADE_INTERFACE_VERSION() view returns (string)
5.0.0
feePercentage() view returns (uint8)
0
getNextPid() view returns (uint256)
2
getTimelockController() view returns (address)
0xb4b120ebdba0dc3c40d39a3998d0dd1e4b6e9b51
getWallet() view returns (address)
0xb4b120ebdba0dc3c40d39a3998d0dd1e4b6e9b51
initializerRan() view returns (bool)
true
isFeeEnabled() view returns (bool)
true
paused() view returns (bool)
false
poolsLength() view returns (uint256)
1
ray() view returns (uint256)
1000000000000000000000000000
version() pure returns (string)
1.0
wad() view returns (uint256)
1000000000000000000
Read-only
accrueInterest(uint256 _principal, uint256 _rate, uint256 _age) view returns (uint256)
canClaim(uint256 pid, address userAddress) view returns (bool)
getPool(uint256 pid) view returns (struct BonsaiMasterChefUpgradeablePoolInfo)
getPoolApy(uint256 pid) view returns (uint256)
getPoolEndDate(uint256 pid) view returns (uint256)
getPoolHardcap(uint256 pid) view returns (uint256)
getPoolLockPeriodInDays(uint256 pid) view returns (uint256)
getPoolMinContribution(uint256 pid) view returns (uint256)
getPoolStartDate(uint256 pid) view returns (uint256)
getPoolToken(uint256 pid) view returns (address)
getPoolTotalReward(uint256 pid) view returns (uint256)
getRoleAdmin(bytes32 role) view returns (bytes32)
getUserInfo(uint256 pid, address userAddress) view returns (struct BonsaiMasterChefUpgradeableUserInfo)
getUserTotalClaimed(uint256 pid, address userAddress) view returns (uint256)
getUserTotalDeposit(uint256 pid, address userAddress) view returns (uint256)
getUserTotalWithdrawn(uint256 pid, address userAddress) view returns (uint256)
hasRole(bytes32 role, address account) view returns (bool)
payout(uint256 pid, address userAddress) view returns (uint256 value)
poolTotalDeposit(uint256 pid) view returns (uint256)
supportsInterface(bytes4 interfaceId) view returns (bool)
yearlyRateToRay(uint256 _rateWad) view returns (uint256)
State-modifying
Events addPool(address token, uint256 apy, uint256 lockPeriodInDays, uint256 startDate, uint256 endDate, uint256 minContribution, uint256 hardCap)
changeListingFeePercentage(uint8 newFeePercentage)
changeTimelockContoller(address newTimelockController)
changeWallet(address newWallet)
depositReward(uint256 pid, address token, uint256 amount)
fallbackRedeem(address mToken, address mTo, uint256 mAmount)
grantRole(bytes32 role, address account)
initialize(address wallet, address mTimelockController, uint8 feePercentage_)
pause()
reinvest(uint256 pid) returns (bool)
reinvestAll() returns (bool)
renounceRole(bytes32 role, address callerConfirmation)
revokeRole(bytes32 role, address account)
set(uint256 pid, address token, uint256 apy, uint256 lockPeriodInDays, uint256 startDate, uint256 endDate, uint256 minContribution, uint256 hardCap)
setIsFeeEnabled(bool value)
stake(uint256 pid, uint256 amount) returns (bool)
unStake(uint256 pid, uint256 amount) returns (bool)
unpause()
upgradeToAndCall(address newImplementation, bytes data) payable
withdrawRewardsFromPool(uint256 pid, address token)
Upgraded(address indexed implementation)
AddedTokenToPool(uint256 pid, address token, uint256 apy, uint256 lockPeriodInDays, uint256 startDate, uint256 endDate, uint256 minContribution, uint256 hardCap)
ChangedFeePercentage(uint8 newFeePercentage)
ChangedIsFeeEnabled(bool value)
ChangedPoolInfo(uint256 pid, address token, uint256 apy, uint256 lockPeriodInDays, uint256 startDate, uint256 endDate, uint256 minContribution, uint256 hardCap, uint256 totalPoolReward)
ChangedTimelockController(address newTimelockController)
ChangedWallet(address newWallet)
Claim(address indexed tokenAddress, address indexed userAddress, uint256 amount, uint256 time)
Deposit(address indexed tokenAddress, address indexed userAddress, uint256 indexed pid, uint256 amount, uint256 time)
Initialized(uint64 version)
Paused(address account)
Reinvest(address indexed addr, uint256 amount, uint256 time)
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)
Stake(address indexed addr, uint256 amount, uint256 time)
TokenWithdrawn(address token, address indexed to, uint256 value)
Unpaused(address account)
Unstake(address indexed addr, uint256 amount, uint256 time)
Upgraded(address indexed implementation)
Withdraw(address indexed tokenAddress, address indexed userAddress, uint256 indexed pid, uint256 amount, uint256 time)
constructor(address implementation, bytes _data)
fallback()
AddressEmptyCode(address target)
ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable()
FailedInnerCall()
AccessControlBadConfirmation()
AccessControlUnauthorizedAccount(address account, bytes32 neededRole)
AddressEmptyCode(address target)
ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable()
EnforcedPause()
ExpectedPause()
FailedInnerCall()
InvalidInitialization()
NotInitializing()
ReentrancyGuardReentrantCall()
UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID(bytes32 slot)