BonsaiMasterChefUpgradeable

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x724c8f90 at 19561951
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

No balances found for "BonsaiMasterChefUpgradeable"

No transactions found for "BonsaiMasterChefUpgradeable"


Functions
Getter at block 21082926
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)
0
getPools(view returns (struct BonsaiMasterChefUpgradeablePoolInfo[])
[]
getTimelockController(view returns (address)
0x0000000000000000000000000000000000000000
getWallet(view returns (address)
0x0000000000000000000000000000000000000000
initializerRan(view returns (bool)
false
isFeeEnabled(view returns (bool)
false
paused(view returns (bool)
false
 
poolsLength(view returns (uint256)
proxiableUUID(view returns (bytes32)
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc
ray(view returns (uint256)
0
version(pure returns (string)
1.0
wad(view returns (uint256)
0
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
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(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AccessControlBadConfirmation(
AccessControlUnauthorizedAccount(address accountbytes32 neededRole
AddressEmptyCode(address target
ERC1967InvalidImplementation(address implementation
ERC1967NonPayable(
EnforcedPause(
ExpectedPause(
FailedInnerCall(
InvalidInitialization(
NotInitializing(
ReentrancyGuardReentrantCall(
UUPSUnauthorizedCallContext(
UUPSUnsupportedProxiableUUID(bytes32 slot