ApeCoinStaking

Verified contract

Active on Ethereum
Deployed by via 0x0cb4ebf1 at 16119157
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
-
variable spans 7 additional slots
ERC-20
Value $204,043,185.64
ERC-20
Value $231.14
ERC-20
Value $12.01
ERC-20
Value $0.99
ERC-20
Value $0.04
ERC-20
--
ERC-20
--
ERC-20
--
0x79305f47ffd8568b4ab6d531ce97b092980b9a3539f16bc27c79d22c4a7f6054
0xe2fb914fd84ccb9f15413f58924d6ec1fbe71961315fe798c32c579f9e57f7d9
0x913537e1c885235a43a19ce9bc23a1482685c019d39301554351687ba9ae5b6b
0x5f2e3200a3c9c52671d0d293da4c6e354976440fc21df2457a7158640ee1260b
0x5c61e299656702673bcca8c50af0f7429813a2ad1f06be55d9cbdbf046a7b36f
0x0f4e5c9deb0c1214345886e21e3686c6aac5fe494bfd99c4561c571ff4d2e48c
0xa8ee8d40ead7381dcc312ef02ef73ae67c23d9f09be5aaba4edf25b6725f6330
0x135852b97ac19155aa4413768fe3ce13acdcc3830e2560a198519a6d39063683
0x581679877ec01943e233aebcfaf479783856451a3c089f83197bf2271e923f68
0x4acc3ecac2c647c1eaa58aa2d736f46019fbb2a5f2b7c4e9a2298fbce3193b2c

Functions
Getter at block 21243457
apeCoin(view returns (address)
0x4d224452801aced8b2f0aebe155379bb5d594381
 
getPoolsUI(view returns (struct ApeCoinStakingPoolUIstruct ApeCoinStakingPoolUIstruct ApeCoinStakingPoolUIstruct ApeCoinStakingPoolUI)
owner(view returns (address)
0x848a6b10de2490415a027ed32caeb90fa0a11e78
Read-only
addressPosition(addressview returns (uint256 stakedAmountint256 rewardsDebt)
bakcToMain(uint256uint256view returns (uint248 tokenIdbool isPaired)
getAllStakes(address _addressview returns (struct ApeCoinStakingDashboardStake[])
getApeCoinStake(address _addressview returns (struct ApeCoinStakingDashboardStake)
getBakcStakes(address _addressview returns (struct ApeCoinStakingDashboardStake[])
getBaycStakes(address _addressview returns (struct ApeCoinStakingDashboardStake[])
getMaycStakes(address _addressview returns (struct ApeCoinStakingDashboardStake[])
getSplitStakes(address _addressview returns (struct ApeCoinStakingDashboardStake[])
getTimeRangeBy(uint256 _poolIduint256 _indexview returns (struct ApeCoinStakingTimeRange)
mainToBakc(uint256uint256view returns (uint248 tokenIdbool isPaired)
nftContracts(uint256view returns (address)
nftPosition(uint256uint256view returns (uint256 stakedAmountint256 rewardsDebt)
pendingRewards(uint256 _poolIdaddress _addressuint256 _tokenIdview returns (uint256)
pools(uint256view returns (uint48 lastRewardedTimestampHouruint16 lastRewardsRangeIndexuint96 stakedAmountuint96 accumulatedRewardsPerShare)
rewardsBy(uint256 _poolIduint256 _fromuint256 _toview returns (uint256uint256)
stakedTotal(address _addressview returns (uint256)
State-modifying
addTimeRange(uint256 _poolIduint256 _amountuint256 _startTimestampuint256 _endTimeStampuint256 _capPerPosition
claimApeCoin(address _recipient
claimBAKC(struct ApeCoinStakingPairNft[] _baycPairsstruct ApeCoinStakingPairNft[] _maycPairsaddress _recipient
claimBAYC(uint256[] _nftsaddress _recipient
claimMAYC(uint256[] _nftsaddress _recipient
claimSelfApeCoin(
claimSelfBAKC(struct ApeCoinStakingPairNft[] _baycPairsstruct ApeCoinStakingPairNft[] _maycPairs
claimSelfBAYC(uint256[] _nfts
claimSelfMAYC(uint256[] _nfts
depositApeCoin(uint256 _amountaddress _recipient
depositBAKC(struct ApeCoinStakingPairNftDepositWithAmount[] _baycPairsstruct ApeCoinStakingPairNftDepositWithAmount[] _maycPairs
depositBAYC(struct ApeCoinStakingSingleNft[] _nfts
depositMAYC(struct ApeCoinStakingSingleNft[] _nfts
depositSelfApeCoin(uint256 _amount
removeLastTimeRange(uint256 _poolId
renounceOwnership(
transferOwnership(address newOwner
updatePool(uint256 _poolId
withdrawApeCoin(uint256 _amountaddress _recipient
withdrawBAKC(struct ApeCoinStakingPairNftWithdrawWithAmount[] _baycPairsstruct ApeCoinStakingPairNftWithdrawWithAmount[] _maycPairs
withdrawBAYC(struct ApeCoinStakingSingleNft[] _nftsaddress _recipient
withdrawMAYC(struct ApeCoinStakingSingleNft[] _nftsaddress _recipient
withdrawSelfApeCoin(uint256 _amount
withdrawSelfBAYC(struct ApeCoinStakingSingleNft[] _nfts
withdrawSelfMAYC(struct ApeCoinStakingSingleNft[] _nfts
Events
ClaimRewards(address indexed useruint256 amountaddress recipient
ClaimRewardsNft(address indexed useruint256 indexed poolIduint256 amountuint256 tokenId
ClaimRewardsPairNft(address indexed useruint256 amountuint256 mainTypePoolIduint256 mainTokenIduint256 bakcTokenId
Deposit(address indexed useruint256 amountaddress recipient
DepositNft(address indexed useruint256 indexed poolIduint256 amountuint256 tokenId
DepositPairNft(address indexed useruint256 amountuint256 mainTypePoolIduint256 mainTokenIduint256 bakcTokenId
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
UpdatePool(uint256 indexed poolIduint256 lastRewardedBlockuint256 stakedAmountuint256 accumulatedRewardsPerShare
Withdraw(address indexed useruint256 amountaddress recipient
WithdrawNft(address indexed useruint256 indexed poolIduint256 amountaddress recipientuint256 tokenId
WithdrawPairNft(address indexed useruint256 amountuint256 mainTypePoolIduint256 mainTokenIduint256 bakcTokenId
Constructor
constructor(address _apeCoinContractAddressaddress _baycContractAddressaddress _maycContractAddressaddress _bakcContractAddress
Fallback and receive

This contract contains no fallback and receive objects.

Errors
BAKCAlreadyPaired(
BAKCNotOwnedOrPaired(
CallerNotOwner(
DepositMoreThanOneAPE(
EndNotWholeHour(
ExceededCapAmount(
ExceededStakedAmount(
InvalidPoolId(
MainTokenNotOwnedOrPaired(
NeitherTokenInPairOwnedByCaller(
NotOwnerOfBAKC(
NotOwnerOfMain(
ProvidedTokensNotPaired(
SplitPairCantPartiallyWithdraw(
StartMustBeGreaterThanEnd(
StartMustEqualLastEnd(
StartNotWholeHour(
UncommitWrongParameters(