TokenPool

Verified contract

Active on Ethereum with 898 txns
Deployed by via 0xf1ae982b at 18464772
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
3 additional variables
ERC-20
--
ERC-20
--
0x80c73f458d06b5ce37f88d4410bf738a3e31ebd05986b7aa694d441987b50ca8
0x6a79f9ca0aa55b6208b64c7efdf15d8a31152f6794ffcff56500a261af0f631d
0x18ef334455e8de04cd8da05e8ac41d9cb1651dc7e09253146ae0cdbb2c30ef87
0x9b2e9e45c2bc372ecc58c3af1f3f7bb4366f1f23fcbe145be327ec0f09a3de27
0x4d5b9aa5b726f0b460c7601c17aaa0d4a217cb987805ad98dacedd28e0961559
0x6754bf3aab76549d6088f0bb5a8eb844f6a22ed1fb3fb2c45dad732f0de95f1a
0xaed2b83a4377f27276204de92da6b89031caea22ed7b81d69c5b251a5306b95a
0x7ba352c4794ecdeed68b00634b36d0a0facbe14f3cbb411ddc071a81b03e8f33
0xf451e533b677b81aebf631710a40ec2cd77002f40f3c5543ada99909680e075b
0x34d4e9985a33aeb54f4bfc2dbd1c0c45cea5387e6d5a717410cada04eb345fc3

Functions
Getter at block 21217010
BOOST_WEIGHT(view returns (uint256)
20000000000000
BOOST_WEIGHT_LIMIT(view returns (uint256)
50000000000000
DURATION_FACTOR(view returns (uint256)
31536000
DURATION_FACTOR_OVERDUE(view returns (uint256)
7776000
FEE_RATE_SCALE(view returns (uint256)
10000
MAX_LOCK_DURATION(view returns (uint256)
31536000
MAX_LOCK_DURATION_LIMIT(view returns (uint256)
86400000
MAX_OVERDUE_FEE(view returns (uint256)
1000000000000
MAX_PERFORMANCE_FEE(view returns (uint256)
2000
MAX_WITHDRAW_FEE(view returns (uint256)
500
MAX_WITHDRAW_FEE_PERIOD(view returns (uint256)
604800
MIN_DEPOSIT_AMOUNT(view returns (uint256)
10000000000000
MIN_LOCK_DURATION(view returns (uint256)
604800
MIN_WITHDRAW_AMOUNT(view returns (uint256)
10000000000000
PRECISION_FACTOR(view returns (uint256)
1000000000000
PRECISION_FACTOR_SHARE(view returns (uint256)
10000000000000000000000000000
UNLOCK_FREE_DURATION(view returns (uint256)
1209600
admin(view returns (address)
0x95fe70a9449d1e8276040d29a4fdf63b94246288
available(view returns (uint256)
39947628811847972628535590647
balanceOf(view returns (uint256)
568361056684106907052106257202
bbc(view returns (address)
0x015628ce9150db1bce2fbb717a09e846f8a32436
bbcPoolPID(view returns (uint256)
0
 
calculateTotalPendingBBCRewards(view returns (uint256)
 
getPricePerFullShare(view returns (uint256)
masterchefV2(view returns (address)
0x3fefd06828689252a69207718985b9a78350561f
operator(view returns (address)
0x1d8ecef8fcaaa50f0326d9af768809a01aae61a9
overdueFee(view returns (uint256)
1000000000000
owner(view returns (address)
0x6d5fc6ac6e753f68d4f64cc7b605d925cf642d5e
paused(view returns (bool)
false
performanceFee(view returns (uint256)
200
token(view returns (address)
0xfd8b9ba4845fb38c779317ec134b298c064937a2
totalBoostDebt(view returns (uint256)
528413427872258934423570666555
totalLockedAmount(view returns (uint256)
28816635756115008814855359674
totalShares(view returns (uint256)
568361056684106907052106257202
totalStakedAmount(view returns (uint256)
39947628811847972628535590647
treasury(view returns (address)
0xb5c4d8671e03fba09d467c50fc51215b77ee5454
withdrawFee(view returns (uint256)
400
withdrawFeePeriod(view returns (uint256)
259200
Read-only
calculateOverdueFee(address _userview returns (uint256)
calculatePerformanceFee(address _userview returns (uint256)
calculateWithdrawFee(address _useruint256 _sharesview returns (uint256)
freeOverdueFeeUsers(addressview returns (bool)
freePerformanceFeeUsers(addressview returns (bool)
freeWithdrawFeeUsers(addressview returns (bool)
getProfit(address _userview returns (uint256)
userInfo(addressview returns (uint256 sharesuint256 lastDepositedTimeuint256 lastUserActionAmountuint256 lastUserActionTimeuint256 lockStartTimeuint256 lockEndTimeuint256 userBoostedSharebool lockeduint256 lockedAmount)
userRewardDebt(addressview returns (uint256)
userRewardPending(addressview returns (uint256)
State-modifying
claim(returns (uint256)
close(
deposit(uint256 _amountuint256 _lockDuration
inCaseTokensGetStuck(address _token
init(address dummyTokenuint256 amount
pause(
renounceOwnership(
setAdmin(address _admin
setBoostWeight(uint256 _boostWeight
setDurationFactor(uint256 _durationFactor
setDurationFactorOverdue(uint256 _durationFactorOverdue
setFreeOverdueFeeUser(address _userbool _free
setFreePerformanceFeeUser(address _userbool _free
setFreeWithdrawFeeUser(address _userbool _free
setMaxLockDuration(uint256 _maxLockDuration
setOperator(address _operator
setOverdueFee(uint256 _overdueFee
setPerformanceFee(uint256 _performanceFee
setTreasury(address _treasury
setUnlockFreeDuration(uint256 _unlockFreeDuration
setWithdrawFee(uint256 _withdrawFee
setWithdrawFeePeriod(uint256 _withdrawFeePeriod
transferOwnership(address newOwner
unlock(address _user
unpause(
withdraw(uint256 _shares
withdrawAll(
withdrawByAmount(uint256 _amount
Events
Deposit(address indexed senderuint256 amountuint256 sharesuint256 durationuint256 lastDepositedTime
FreeFeeUser(address indexed userbool indexed free
Harvest(address indexed senderuint256 amount
Init(
Lock(address indexed senderuint256 lockedAmountuint256 sharesuint256 lockedDurationuint256 blockTimestamp
NewAdmin(address admin
NewBoostWeight(uint256 boostWeight
NewDurationFactor(uint256 durationFactor
NewDurationFactorOverdue(uint256 durationFactorOverdue
NewMaxLockDuration(uint256 maxLockDuration
NewOperator(address operator
NewOverdueFee(uint256 overdueFee
NewPerformanceFee(uint256 performanceFee
NewTreasury(address treasury
NewUnlockFreeDuration(uint256 unlockFreeDuration
NewWithdrawFee(uint256 withdrawFee
NewWithdrawFeePeriod(uint256 withdrawFeePeriod
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Pause(
Paused(address account
Unlock(address indexed senderuint256 amountuint256 blockTimestamp
Unpause(
Unpaused(address account
Withdraw(address indexed senderuint256 amountuint256 shares
Constructor
constructor(address _tokenaddress _masterchefV2address _adminaddress _treasuryaddress _operatoruint256 _pid
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.