SafetyModuleV2

Verified contract

Implementation

Active on Ethereum with 3 txns
Deployed by via 0x84cbb949 at 13419929
Slot
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

No balances found for "SafetyModuleV2"

0xd3164c1e03f05ccaefc0f91777bc6d77c7cecb38f1e50a61e5c3228ce3c69dc2
0xcf0f020a37e3050830292733715fb6f7c4fc1e1d9a4c4c02c590bae6f4935be0
0xdbfa03380c5a933f9dd660501d55617a156cf18a681459eb16af9de808e82c1a

Functions
Getter at block 20793850
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
 
getCurrentEpoch(view returns (uint256)
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
 
getTimeRemainingInCurrentEpoch(view returns (uint256)
 
getTotalActiveBalanceCurrentEpoch(view returns (uint256)
 
getTotalActiveBalanceNextEpoch(view returns (uint256)
 
getTotalInactiveBalanceCurrentEpoch(view returns (uint256)
 
getTotalInactiveBalanceNextEpoch(view returns (uint256)
hasEpochZeroStarted(view returns (bool)
true
 
inBlackoutWindow(view returns (bool)
name(pure returns (string)
Staked DYDX
symbol(pure returns (string)
stkDYDX
 
totalSupply(view returns (uint256)
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview returns (uint256)
getActiveBalanceCurrentEpoch(address stakerview returns (uint256)
getActiveBalanceNextEpoch(address stakerview returns (uint256)
getDelegateeByType(address delegatoruint8 delegationTypeview returns (address)
getExchangeRateSnapshot(uint256 indexview returns (struct SM1TypesSnapshot)
getInactiveBalanceCurrentEpoch(address stakerview returns (uint256)
getInactiveBalanceNextEpoch(address stakerview returns (uint256)
getPowerAtBlock(address useruint256 blockNumberuint8 delegationTypeview returns (uint256)
getPowerCurrent(address useruint8 delegationTypeview returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
getStakeAvailableToWithdraw(address stakerview returns (uint256)
getStartOfEpoch(uint256 epochNumberview returns (uint256)
getTransferableBalance(address accountview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
nonces(address ownerview returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
approve(address spenderuint256 amountreturns (bool)
claimRewards(address recipientreturns (uint256)
claimRewardsFor(address stakeraddress recipientreturns (uint256)
decreaseAllowance(address spenderuint256 subtractedValuereturns (bool)
delegate(address delegatee
delegateBySig(address delegateeuint256 nonceuint256 expiryuint8 vbytes32 rbytes32 s
delegateByType(address delegateeuint8 delegationType
delegateByTypeBySig(address delegateeuint8 delegationTypeuint256 nonceuint256 expiryuint8 vbytes32 rbytes32 s
grantRole(bytes32 roleaddress account
increaseAllowance(address spenderuint256 addedValuereturns (bool)
initialize(
permit(address owneraddress spenderuint256 valueuint256 deadlineuint8 vbytes32 rbytes32 s
renounceRole(bytes32 roleaddress account
requestWithdrawal(uint256 stakeAmount
requestWithdrawalFor(address stakeruint256 stakeAmount
revokeRole(bytes32 roleaddress account
setBlackoutWindow(uint256 blackoutWindow
setEpochParameters(uint256 intervaluint256 offset
setRewardsPerSecond(uint256 emissionPerSecond
slash(uint256 requestedSlashAmountaddress recipientreturns (uint256)
stake(uint256 underlyingAmount
stakeFor(address stakeruint256 underlyingAmount
transfer(address recipientuint256 amountreturns (bool)
transferFrom(address senderaddress recipientuint256 amountreturns (bool)
withdrawMaxStake(address recipientreturns (uint256)
withdrawStake(address recipientuint256 stakeAmount
withdrawStakeFor(address stakeraddress recipientuint256 stakeAmount
Events
Approval(address indexed owneraddress indexed spenderuint256 value
BlackoutWindowChanged(uint256 blackoutWindow
ClaimedRewards(address indexed useraddress recipientuint256 claimedRewards
DelegateChanged(address indexed delegatoraddress indexed delegateeuint8 delegationType
DelegatedPowerChanged(address indexed useruint256 amountuint8 delegationType
EpochParametersChanged(struct SM1TypesEpochParameters epochParameters
GlobalIndexUpdated(uint256 index
OperatorClaimedRewardsFor(address indexed stakeraddress recipientuint256 claimedRewardsaddress operator
OperatorStakedFor(address indexed stakeruint256 amountaddress operator
OperatorWithdrawalRequestedFor(address indexed stakeruint256 amountaddress operator
OperatorWithdrewStakeFor(address indexed stakeraddress recipientuint256 amountaddress operator
RewardsPerSecondUpdated(uint256 emissionPerSecond
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Slashed(uint256 amountaddress recipientuint256 newExchangeRate
Staked(address indexed stakeraddress spenderuint256 underlyingAmountuint256 stakeAmount
Transfer(address indexed fromaddress indexed touint256 value
UserIndexUpdated(address indexed useruint256 indexuint256 unclaimedRewards
WithdrawalRequested(address indexed stakeruint256 stakeAmount
WithdrewStake(address indexed stakeraddress recipientuint256 underlyingAmountuint256 stakeAmount
Constructor
constructor(address stakedTokenaddress rewardsTokenaddress rewardsTreasuryuint256 distributionStartuint256 distributionEnd
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.