SafetyModuleV2
Verified contract
Implementation
Active on
Ethereum with 3 txns
Storage
Map
Table
Raw
Constants and immutables
29
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 48 additional slots
-
variable spans 49 additional slots
-
variable spans 1 additional slot
5 additional
variables
Balances ($0.00)
No balances found for "SafetyModuleV2"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 16131171 | 2 years ago | | | 0 | 0.00046359748 | |
| 16131050 | 2 years ago | | | 0 | 0.00033942857 | |
| 16131050 | 2 years ago | | | 0 | 0.0036195872 |
ABI
ABI objects
Getter at block 20793850 getCurrentEpoch() view returns (uint256) getTimeRemainingInCurrentEpoch() view returns (uint256) getTotalActiveBalanceCurrentEpoch() view returns (uint256) getTotalActiveBalanceNextEpoch() view returns (uint256) getTotalInactiveBalanceCurrentEpoch() view returns (uint256) getTotalInactiveBalanceNextEpoch() view returns (uint256) inBlackoutWindow() view returns (bool) totalSupply() view returns (uint256)
CLAIM_OPERATOR_ROLE() view returns (bytes32)
0x36dc7495d0ae0bc2a620bf292049e4d4e5f800043895b13c08a1977d3a3297f5
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DELEGATE_BY_TYPE_TYPEHASH() view returns (bytes32)
0x10d8d059343739efce7dad10d09f0806da52b252b3e6a7951920d2d6ec4102e5
DELEGATE_TYPEHASH() view returns (bytes32)
0x9a9a49b990ba9bb39f8048c490a40ab25c18f55d208d5fbcf958261a9b48716d
DISTRIBUTION_END() view returns (uint256)
1793395485
DISTRIBUTION_START() view returns (uint256)
1631113200
EIP712_DOMAIN_NAME() view returns (string)
dYdX Safety Module
EIP712_DOMAIN_SCHEMA_HASH() view returns (bytes32)
0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f
EIP712_DOMAIN_VERSION() view returns (string)
1
EPOCH_PARAMETERS_ROLE() view returns (bytes32)
0xa69ba352872fe0ee634bc8d48d2a09a61267da1bfb2015e67a11ad05fe21f04b
EXCHANGE_RATE_BASE() view returns (uint256)
1000000000000000000
EXCHANGE_RATE_MAY_OVERFLOW() view returns (uint256)
11579208923731619542357098500868790785326998466564
MAX_EXCHANGE_RATE() view returns (uint256)
176684706477838432958329750074291851582748389000000000000000000
MAX_SLASH_DENOMINATOR() view returns (uint256)
100
MAX_SLASH_NUMERATOR() view returns (uint256)
95
MAX_UNDERLYING_BALANCE() view returns (uint256)
10000000000000000000000000000
OWNER_ROLE() view returns (bytes32)
0xb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e
PERMIT_TYPEHASH() view returns (bytes32)
0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9
REWARDS_RATE_ROLE() view returns (bytes32)
0x74ec845281a5bcabeef9a800a79d30928ff9e6f2dc6f69a233fc39a83cb81ed2
REWARDS_TOKEN() view returns (address)
0x92d6c1e31e14520e676a687f0a93788b716beff5
REWARDS_TREASURY() view returns (address)
0x639192d54431f8c816368d3fb4107bc168d0e871
SLASHER_ROLE() view returns (bytes32)
0x12b42e8a160f6064dc959c6f251e3af0750ad213dbecf573b4710d67d6c28e39
STAKED_TOKEN() view returns (address)
0x92d6c1e31e14520e676a687f0a93788b716beff5
STAKE_AMOUNT_MAY_OVERFLOW() view returns (uint256)
115792089237316195423570985008687907853269984665640564039457
STAKE_OPERATOR_ROLE() view returns (bytes32)
0xa6fbd0d4ef0ac50b4de984ab8f303863596293cce6d67dd6111979bcf56abe74
decimals() pure returns (uint8)
18
getBlackoutWindow() view returns (uint256)
0
getDomainSeparator() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
getEpochParameters() view returns (struct SM1TypesEpochParameters)
(0, 0)
getExchangeRate() view returns (uint256)
1000000000000000000
getExchangeRateSnapshotCount() view returns (uint256)
0
getRewardsPerSecond() view returns (uint256)
0
hasEpochZeroStarted() view returns (bool)
true
name() pure returns (string)
Staked DYDX
symbol() pure returns (string)
stkDYDX
Read-only
allowance(address owner, address spender) view returns (uint256)
balanceOf(address account) view returns (uint256)
getActiveBalanceCurrentEpoch(address staker) view returns (uint256)
getActiveBalanceNextEpoch(address staker) view returns (uint256)
getDelegateeByType(address delegator, uint8 delegationType) view returns (address)
getExchangeRateSnapshot(uint256 index) view returns (struct SM1TypesSnapshot)
getInactiveBalanceCurrentEpoch(address staker) view returns (uint256)
getInactiveBalanceNextEpoch(address staker) view returns (uint256)
getPowerAtBlock(address user, uint256 blockNumber, uint8 delegationType) view returns (uint256)
getPowerCurrent(address user, uint8 delegationType) view returns (uint256)
getRoleAdmin(bytes32 role) view returns (bytes32)
getStakeAvailableToWithdraw(address staker) view returns (uint256)
getStartOfEpoch(uint256 epochNumber) view returns (uint256)
getTransferableBalance(address account) view returns (uint256)
hasRole(bytes32 role, address account) view returns (bool)
nonces(address owner) view returns (uint256)
supportsInterface(bytes4 interfaceId) view returns (bool)
State-modifying
Events approve(address spender, uint256 amount) returns (bool)
claimRewards(address recipient) returns (uint256)
claimRewardsFor(address staker, address recipient) returns (uint256)
decreaseAllowance(address spender, uint256 subtractedValue) returns (bool)
delegate(address delegatee)
delegateBySig(address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s)
delegateByType(address delegatee, uint8 delegationType)
delegateByTypeBySig(address delegatee, uint8 delegationType, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s)
grantRole(bytes32 role, address account)
increaseAllowance(address spender, uint256 addedValue) returns (bool)
initialize()
permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
renounceRole(bytes32 role, address account)
requestWithdrawal(uint256 stakeAmount)
requestWithdrawalFor(address staker, uint256 stakeAmount)
revokeRole(bytes32 role, address account)
setBlackoutWindow(uint256 blackoutWindow)
setEpochParameters(uint256 interval, uint256 offset)
setRewardsPerSecond(uint256 emissionPerSecond)
slash(uint256 requestedSlashAmount, address recipient) returns (uint256)
stake(uint256 underlyingAmount)
stakeFor(address staker, uint256 underlyingAmount)
transfer(address recipient, uint256 amount) returns (bool)
transferFrom(address sender, address recipient, uint256 amount) returns (bool)
withdrawMaxStake(address recipient) returns (uint256)
withdrawStake(address recipient, uint256 stakeAmount)
withdrawStakeFor(address staker, address recipient, uint256 stakeAmount)
Approval(address indexed owner, address indexed spender, uint256 value)
BlackoutWindowChanged(uint256 blackoutWindow)
ClaimedRewards(address indexed user, address recipient, uint256 claimedRewards)
DelegateChanged(address indexed delegator, address indexed delegatee, uint8 delegationType)
DelegatedPowerChanged(address indexed user, uint256 amount, uint8 delegationType)
EpochParametersChanged(struct SM1TypesEpochParameters epochParameters)
GlobalIndexUpdated(uint256 index)
OperatorClaimedRewardsFor(address indexed staker, address recipient, uint256 claimedRewards, address operator)
OperatorStakedFor(address indexed staker, uint256 amount, address operator)
OperatorWithdrawalRequestedFor(address indexed staker, uint256 amount, address operator)
OperatorWithdrewStakeFor(address indexed staker, address recipient, uint256 amount, address operator)
RewardsPerSecondUpdated(uint256 emissionPerSecond)
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)
Slashed(uint256 amount, address recipient, uint256 newExchangeRate)
Staked(address indexed staker, address spender, uint256 underlyingAmount, uint256 stakeAmount)
Transfer(address indexed from, address indexed to, uint256 value)
UserIndexUpdated(address indexed user, uint256 index, uint256 unclaimedRewards)
WithdrawalRequested(address indexed staker, uint256 stakeAmount)
WithdrewStake(address indexed staker, address recipient, uint256 underlyingAmount, uint256 stakeAmount)
constructor(address stakedToken, address rewardsToken, address rewardsTreasury, uint256 distributionStart, uint256 distributionEnd)
This contract contains no fallback and receive objects.
This contract contains no error objects.