ZapStaking

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0x424ef7d9 at 20831859
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots

No balances found for "ZapStaking"

No transactions found for "ZapStaking"


Functions
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 tokensStakeduint256 timeStakeduint256 expiresAtuint256 timeNowpure returns (uint256)
checkIfWithinGracePeriod(uint256 expiresAtuint256 stakeDurationuint256 timeNowpure returns (bool)
getRoleAdmin(bytes32 roleview returns (bytes32)
getStakingTier(uint32 indexview returns (struct StakingTier)
getTokenStake(address useruint32 tierIndexview returns (struct TokenStake)
getTokenStakerByIndex(uint256 indexview returns (address)
getTokenStakerIdFromAddress(address userview returns (uint256)
getUserTokenStakes(address userview returns (struct TokenStake[])
getUserVaultStakes(address userview returns (struct VaultStake[])
getVaultStake(address useruint32 tierIndexview returns (struct VaultStake)
getVaultStakerByIndex(uint256 indexview returns (address)
getVaultStakerIdFromAddress(address userview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
stakingTiers(uint32view returns (uint256 durationuint32 vaultBonusPoolMultiplieruint32 standardPoolNegativeMultiplier)
supportsInterface(bytes4 interfaceIdview returns (bool)
tokenStaker(uint256view returns (address walletbool isActive)
tokenStakerId(addressview returns (uint256)
tokenStakes(addressuint32view returns (uint32 tierIndexuint256 tokensStakeduint256 stakedAtuint256 unstakedAtuint256 expiresAtbool autoRelock)
userTokenStakeCount(addressview returns (uint32)
userVaultStakeCount(addressview returns (uint32)
vaultStaker(uint256view returns (address walletbool isActive)
vaultStakerId(addressview returns (uint256)
vaultStakes(addressuint32view returns (uint32 tierIndexuint32 vaultsStakeduint256 stakedAtuint256 expiresAtuint256 unstakedAtbool autoRelock)
State-modifying
grantRole(bytes32 roleaddress account
initialize(address _zapTokenaddress _vaultVestingaddress multisigaddress _treasury
renounceRole(bytes32 roleaddress callerConfirmation
restakeTokens(uint32 tierIndex
restakeVaults(uint32 tierIndex
revokeRole(bytes32 roleaddress account
setTreasuryAddress(address newTreasury
stakeTokens(uint32 tierIndexuint256 amountToStakebool autoRelock
stakeVaults(uint32 tierIndexuint32 amountToStakebool autoRelock
unstakeTokens(uint32 tierIndex
unstakeVaults(uint32 tierIndex
upgradeToAndCall(address newImplementationbytes datapayable 
Events
Initialized(uint64 version
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Staked(address indexed useruint256 amountuint256 durationbool autoRelock
Unstaked(address indexed useruint256 amountuint256 earlyUnstakeFeebool isVault
Upgraded(address indexed implementation
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(
FailedInnerCall(
InvalidInitialization(
NotInitializing(
ReentrancyGuardReentrantCall(
UUPSUnauthorizedCallContext(
UUPSUnsupportedProxiableUUID(bytes32 slot