ZapStaking
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
11
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
Balances ($0.00)
No balances found for "ZapStaking"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "ZapStaking"
ABI
ABI objects
Getter at block 22904557
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
EARLY_UNSTAKE_BASE_FEE_PERCENTAGE() view returns (uint32)
15000000
UPGRADE_ADMIN() view returns (bytes32)
0xab0a819bf57ef52a248771805d8714ae8e073962cc1b48f9667beb971fb3a2c7
UPGRADE_INTERFACE_VERSION() view returns (string)
5.0.0
getStakingTiers() view returns (struct StakingTier[])
[(0, 0, 0), (0, 0, 0), (0, 0, 0)]
getTokenStakerCount() view returns (uint256)
0
getTreasury() view returns (address)
0x0000000000000000000000000000000000000000
getVaultStakerCount() view returns (uint256)
0
proxiableUUID() view returns (bytes32)
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc
treasury() view returns (address)
0x0000000000000000000000000000000000000000
vaultVesting() view returns (address)
0x0000000000000000000000000000000000000000
zapToken() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
calculateEarlyUnstakeFee(uint256 tokensStaked, uint256 timeStaked, uint256 expiresAt, uint256 timeNow) pure returns (uint256)
checkIfWithinGracePeriod(uint256 expiresAt, uint256 stakeDuration, uint256 timeNow) pure returns (bool)
getRoleAdmin(bytes32 role) view returns (bytes32)
getStakingTier(uint32 index) view returns (struct StakingTier)
getTokenStake(address user, uint32 tierIndex) view returns (struct TokenStake)
getTokenStakerByIndex(uint256 index) view returns (address)
getTokenStakerIdFromAddress(address user) view returns (uint256)
getUserTokenStakes(address user) view returns (struct TokenStake[])
getUserVaultStakes(address user) view returns (struct VaultStake[])
getVaultStake(address user, uint32 tierIndex) view returns (struct VaultStake)
getVaultStakerByIndex(uint256 index) view returns (address)
getVaultStakerIdFromAddress(address user) view returns (uint256)
hasRole(bytes32 role, address account) view returns (bool)
stakingTiers(uint32) view returns (uint256 duration, uint32 vaultBonusPoolMultiplier, uint32 standardPoolNegativeMultiplier)
supportsInterface(bytes4 interfaceId) view returns (bool)
tokenStaker(uint256) view returns (address wallet, bool isActive)
tokenStakerId(address) view returns (uint256)
tokenStakes(address, uint32) view returns (uint32 tierIndex, uint256 tokensStaked, uint256 stakedAt, uint256 unstakedAt, uint256 expiresAt, bool autoRelock)
userTokenStakeCount(address) view returns (uint32)
userVaultStakeCount(address) view returns (uint32)
vaultStaker(uint256) view returns (address wallet, bool isActive)
vaultStakerId(address) view returns (uint256)
vaultStakes(address, uint32) view returns (uint32 tierIndex, uint32 vaultsStaked, uint256 stakedAt, uint256 expiresAt, uint256 unstakedAt, bool autoRelock)
State-modifying
Events grantRole(bytes32 role, address account)
initialize(address _zapToken, address _vaultVesting, address multisig, address _treasury)
renounceRole(bytes32 role, address callerConfirmation)
restakeTokens(uint32 tierIndex)
restakeVaults(uint32 tierIndex)
revokeRole(bytes32 role, address account)
setTreasuryAddress(address newTreasury)
stakeTokens(uint32 tierIndex, uint256 amountToStake, bool autoRelock)
stakeVaults(uint32 tierIndex, uint32 amountToStake, bool autoRelock)
unstakeTokens(uint32 tierIndex)
unstakeVaults(uint32 tierIndex)
upgradeToAndCall(address newImplementation, bytes data) payable
Initialized(uint64 version)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
Staked(address indexed user, uint256 amount, uint256 duration, bool autoRelock)
Unstaked(address indexed user, uint256 amount, uint256 earlyUnstakeFee, bool isVault)
Upgraded(address indexed implementation)
constructor()
This contract contains no fallback and receive objects.
AccessControlBadConfirmation()
AccessControlUnauthorizedAccount(address account, bytes32 neededRole)
AddressEmptyCode(address target)
ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable()
FailedInnerCall()
InvalidInitialization()
NotInitializing()
ReentrancyGuardReentrantCall()
UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID(bytes32 slot)