ERC1967Proxy

Verified contract

Proxy

Active on Ethereum with 136 txns
Deployed by via 0x577e79a0 at 19561953
Slot
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
ERC-20
--
0x65d826b2437da21ba8515e90b8d373f4eb112312c756e4a2c3a808f8ac7422c7
0xc8ab8131ef46dbeea256a63a4883937bbea87f78ee72c5a82dbc5e63dfd86878
0x451801de14dc67a0259ce43a087a8c9dfb2ba8db1d700dfe23d2f6cb2024479a
0xad23ff5bf802e383ca2ad6501a5ce462dbfc228c0c1111bde979d6b36cbd8c80
0xd4e8460cc848a5d1511e6b1769001e748bbcbb4851c3966af9bc15f4e063a1e2
0xfba8f82359bd22417a3bee24c0d7c59d13b2cdd2a47758127ed0df633cabd2a3
0xb17d7903ff92dc66206803a7f64e62f1129d45fc70583360e811f807bcc9d4c3
0x2b273558165b9ed886fa26053f34bb8f1637822d44c6e3b58a9fce3d2167c107
0xfeb5a4b803dad10286f5b1cb3dad8bfa8b9e438704382c2ccbccb81f40844ab1
0xaa791b4a99e6d75c23d1b1f7015c2352649ca8654394f2a7ce88eb6723d76556

Functions
Getter at block 21081706
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
 
getPools(view returns (struct BonsaiMasterChefUpgradeablePoolInfo[])
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
 
proxiableUUID(view returns (bytes32)
ray(view returns (uint256)
1000000000000000000000000000
version(pure returns (string)
1.0
wad(view returns (uint256)
1000000000000000000
Read-only
accrueInterest(uint256 _principaluint256 _rateuint256 _ageview returns (uint256)
canClaim(uint256 pidaddress userAddressview returns (bool)
getPool(uint256 pidview returns (struct BonsaiMasterChefUpgradeablePoolInfo)
getPoolApy(uint256 pidview returns (uint256)
getPoolEndDate(uint256 pidview returns (uint256)
getPoolHardcap(uint256 pidview returns (uint256)
getPoolLockPeriodInDays(uint256 pidview returns (uint256)
getPoolMinContribution(uint256 pidview returns (uint256)
getPoolStartDate(uint256 pidview returns (uint256)
getPoolToken(uint256 pidview returns (address)
getPoolTotalReward(uint256 pidview returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
getUserInfo(uint256 pidaddress userAddressview returns (struct BonsaiMasterChefUpgradeableUserInfo)
getUserTotalClaimed(uint256 pidaddress userAddressview returns (uint256)
getUserTotalDeposit(uint256 pidaddress userAddressview returns (uint256)
getUserTotalWithdrawn(uint256 pidaddress userAddressview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
payout(uint256 pidaddress userAddressview returns (uint256 value)
poolTotalDeposit(uint256 pidview returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
yearlyRateToRay(uint256 _rateWadview returns (uint256)
State-modifying
addPool(address tokenuint256 apyuint256 lockPeriodInDaysuint256 startDateuint256 endDateuint256 minContributionuint256 hardCap
changeListingFeePercentage(uint8 newFeePercentage
changeTimelockContoller(address newTimelockController
changeWallet(address newWallet
depositReward(uint256 pidaddress tokenuint256 amount
fallbackRedeem(address mTokenaddress mTouint256 mAmount
grantRole(bytes32 roleaddress account
initialize(address walletaddress mTimelockControlleruint8 feePercentage_
pause(
reinvest(uint256 pidreturns (bool)
reinvestAll(returns (bool)
renounceRole(bytes32 roleaddress callerConfirmation
revokeRole(bytes32 roleaddress account
set(uint256 pidaddress tokenuint256 apyuint256 lockPeriodInDaysuint256 startDateuint256 endDateuint256 minContributionuint256 hardCap
setIsFeeEnabled(bool value
stake(uint256 piduint256 amountreturns (bool)
unStake(uint256 piduint256 amountreturns (bool)
unpause(
upgradeToAndCall(address newImplementationbytes datapayable 
withdrawRewardsFromPool(uint256 pidaddress token
Events
Upgraded(address indexed implementation
AddedTokenToPool(uint256 pidaddress tokenuint256 apyuint256 lockPeriodInDaysuint256 startDateuint256 endDateuint256 minContributionuint256 hardCap
ChangedFeePercentage(uint8 newFeePercentage
ChangedIsFeeEnabled(bool value
ChangedPoolInfo(uint256 pidaddress tokenuint256 apyuint256 lockPeriodInDaysuint256 startDateuint256 endDateuint256 minContributionuint256 hardCapuint256 totalPoolReward
ChangedTimelockController(address newTimelockController
ChangedWallet(address newWallet
Claim(address indexed tokenAddressaddress indexed userAddressuint256 amountuint256 time
Deposit(address indexed tokenAddressaddress indexed userAddressuint256 indexed piduint256 amountuint256 time
Initialized(uint64 version
Paused(address account
Reinvest(address indexed addruint256 amountuint256 time
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Stake(address indexed addruint256 amountuint256 time
TokenWithdrawn(address tokenaddress indexed touint256 value
Unpaused(address account
Unstake(address indexed addruint256 amountuint256 time
Upgraded(address indexed implementation
Withdraw(address indexed tokenAddressaddress indexed userAddressuint256 indexed piduint256 amountuint256 time
Constructor
constructor(address implementationbytes _data
Fallback and receive
fallback(
Errors
AddressEmptyCode(address target
ERC1967InvalidImplementation(address implementation
ERC1967NonPayable(
FailedInnerCall(
AccessControlBadConfirmation(
AccessControlUnauthorizedAccount(address accountbytes32 neededRole
AddressEmptyCode(address target
ERC1967InvalidImplementation(address implementation
ERC1967NonPayable(
EnforcedPause(
ExpectedPause(
FailedInnerCall(
InvalidInitialization(
NotInitializing(
ReentrancyGuardReentrantCall(
UUPSUnauthorizedCallContext(
UUPSUnsupportedProxiableUUID(bytes32 slot