TokenStore

Verified contract

Active on Ethereum with 1,176 txns
Deployed by via 0x4db82e19 at 20139843
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
1 additional variable
Native
Value $6,584.3
ERC-20
Value $710.19
ERC-20
Value $21.75
0x09c1fd878137b9c4336a6a31ddbd5c0d42591292b5b16d19b24f4ba6049edb56
0x69768784c2aa4730eb05ec156d5b3421c08fb81cdf2426d5eff65b8425955db4
0xbf973f997001dbb5ca992f72876700d80fdf81eec2819952505673dc38896702
0xdf4b21ca7673569c1a2e77fbd9f7d99f9f1d09f3c880bdddd7cdba0efb494d26
0x5b325eb829ae00e7a6832380ef4fecb869670eca2efa2c0737142599d94e4b6d
0xbe422abe348deb15f8a71f20ad8d1bfe078dcc711589acaf3c4a618c81fd3041
0x8c512f4e4a6ffc50998c3f64640f7da90814cf54c305f13fb51fc700933ee03a
0xe5ea7bdaa7decec50ff98b01f2dc619071126df92bd6d10cbd1f10153fb1528e
0x3efa29ae3ef57dfa42bf8fd4d1b5f7eb16a01aca338537f2317c7c242750cb5e
0xdfab9a3d4030077a5da7f49f35363c5a2930bf8467ba990e5740816c0477b6a9

Functions
Getter at block 21394459
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
MANAGER_ROLE(view returns (bytes32)
0x241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08
MULTIPLIER(view returns (uint256)
1000000000000000000
VERIFIED_ROLE(view returns (bytes32)
0x4f72063d6dc4cf4bb4e008e0815997320f78a862b3e71fe66fa9ae685d1cd12f
defaultPythThreshold(view returns (uint256)
28800
getCurrentMilestoneIndex(view returns (uint256)
51
getLimit(view returns (uint256)
1000000000000000000000000
getMaxDepositAmount(view returns (uint256)
1000000000000000000000000
getMilestoneAmount(view returns (uint256)
55
getMinimalDepositAmount(view returns (uint256)
75000000000000000000
getRepresentativeRates(view returns (uint256uint256)
(160, 60)
getTotalDepositAmount(view returns (uint256)
118717900000000000000
getTotalSoldTokens(view returns (uint256)
11191236653536600792990033
getTreasury(view returns (address)
0x463e391407ccb81b024db2c06748f01d1df37529
isSaleActive(view returns (bool)
true
isSaleInactive(view returns (bool)
false
paused(view returns (bool)
false
precision(view returns (uint256)
18
Read-only
balanceOf(uint256 milestone_address user_view returns (uint256)
getAllowedToken(address token_view returns (struct ITokenStoreTokenConfig)
getCurrentMilestonePrice(uint8 option_view returns (uint256)
getDepositedByToken(address asset_view returns (uint256)
getMilestoneInfo(uint256 index_view returns (struct ITokenStoreMilestone)
getRepresentative(address user_address rep_view returns (address)
getRepresentativeRate(address rep_view returns (uint256uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
isStableSupported(address asset_view returns (bool)
isVerified(address user_view returns (bool)
maxDepositLimit(address user_view returns (uint256)
regularDepositLimit(address user_view returns (uint256)
representativeBalanceOf(address asset_address user_view returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
claimRepresentativeRewards(address[] assets_
close(
depositCollateral(address asset_uint256 amount_uint8 option_address representative_
depositCollateralFor(address asset_uint256 amount_uint8 option_address receiver_address representative_
depositNative(uint8 option_address representative_payable 
depositNativeFor(uint8 option_address receiver_address representative_payable 
depositToken(address asset_uint256 amount_uint8 option_address representative_
depositTokenFor(address asset_uint256 amount_uint8 option_address receiver_address representative_
disableRepresentative(address rep_
enableRepresentative(address rep_
finishMilestone(uint256 index_
grantRole(bytes32 roleaddress account
open(
pause(
recoverErc20(address asset_uint256 amount_
recoverNative(
renounceRole(bytes32 roleaddress callerConfirmation
revokeRole(bytes32 roleaddress account
setLimit(uint256 amount_
setMaxDepositAmount(uint256 amount_
setMilestone(uint256 sPrice_uint256 lPrice_uint256 supply_
setMinDepositAmount(uint256 amount_
setNativePythThreshold(uint256 pythNativeThreshold_
setRepresentativeRate(uint256 firstRepRate_uint256 secondRepRate_
setTreasury(address treasury_
setVerified(address user_bool value_
setVerifiedBatch(address[] users_bool[] values_
setupRepresentatives(address[] reps_uint256[] firstRepRates_uint256[] secondRepRates_
start(uint256 index_
toggleAllowedTokens(address[] tokens_bytes32[] pythIds_uint256[] thresholds_bool[] statuses_
unpause(
updateMilestonePrice(uint256 index_uint256 sPrice_uint256 lPrice_
updateMilestoneSupply(uint256 index_uint256 supply_
Events
Claimed(address indexed Representativeaddress indexed assetuint256 amount
DepositedNative(address indexed receiveraddress indexed representativeuint256 sizeuint8 indexed optionuint256 tokensReleaseduint256 saleMilestone
DepositedToken(address indexed receiveraddress indexed assetaddress indexed representativeuint256 sizeuint8 optionuint256 tokensReleaseduint256 saleMilestone
Paused(address account
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Unpaused(address account
Constructor
constructor(address treasury_address[] stables_address pyth_bytes32 pythNativePriceFeedId_address[] tokensbytes32[] pythIds
Fallback and receive
receive(
Errors
AccessControlBadConfirmation(
AccessControlUnauthorizedAccount(address accountbytes32 neededRole
AddressEmptyCode(address target
AddressInsufficientBalance(address account
EnforcedPause(
ExpectedPause(
FailedInnerCall(
ReentrancyGuardReentrantCall(
SafeERC20FailedOperation(address token