View Source: contracts/governance/Staking/modules/StakingStorageModule.sol
↗ Extends: IFunctionsList, StakingStorageShared
Provides getters for public storage variables*
- getStorageDefaultWeightScaling()
- getStorageMaxDurationToStakeTokens()
- getStorageMaxVotingWeight()
- getStorageWeightFactor()
- getStorageDefaulWeightScaling()
- getStorageRangeForWeightScaling()
- getStorageDomainTypehash()
- getStorageDelegationTypehash()
- getStorageName()
- getMaxVestingWithdrawIterations()
- getFunctionsList()
function getStorageDefaultWeightScaling() external pure
returns(uint256)
Source Code
function getStorageDefaultWeightScaling() external pure returns (uint256) {
return uint256(DEFAULT_WEIGHT_SCALING);
}
The maximum duration to stake tokens
function getStorageMaxDurationToStakeTokens() external pure
returns(uint256)
Source Code
function getStorageMaxDurationToStakeTokens() external pure returns (uint256) {
return MAX_DURATION;
}
The maximum possible voting weight before adding +1 (actually 10, but need 9 for computation).
function getStorageMaxVotingWeight() external pure
returns(uint256)
Source Code
function getStorageMaxVotingWeight() external pure returns (uint256) {
return uint256(MAX_VOTING_WEIGHT);
}
weight is multiplied with this factor (for allowing decimals, like 1.2x).
function getStorageWeightFactor() external pure
returns(uint256)
Source Code
function getStorageWeightFactor() external pure returns (uint256) {
return uint256(WEIGHT_FACTOR);
}
Default weight scaling.
function getStorageDefaulWeightScaling() external pure
returns(uint256)
Source Code
function getStorageDefaulWeightScaling() external pure returns (uint256) {
return uint256(DEFAULT_WEIGHT_SCALING);
}
function getStorageRangeForWeightScaling() external pure
returns(minWeightScaling uint256, maxWeightScaling uint256)
Source Code
function getStorageRangeForWeightScaling()
external
pure
returns (uint256 minWeightScaling, uint256 maxWeightScaling)
{
return (uint256(MIN_WEIGHT_SCALING), uint256(MAX_WEIGHT_SCALING));
}
The EIP-712 typehash for the contract's domain.
function getStorageDomainTypehash() external pure
returns(uint256)
Source Code
function getStorageDomainTypehash() external pure returns (uint256) {
return uint256(DOMAIN_TYPEHASH);
}
The EIP-712 typehash for the delegation struct used by the contract.
function getStorageDelegationTypehash() external pure
returns(uint256)
Source Code
function getStorageDelegationTypehash() external pure returns (uint256) {
return uint256(DELEGATION_TYPEHASH);
}
function getStorageName() external view
returns(string)
Source Code
function getStorageName() external view returns (string memory) {
return name;
}
Max iteration for direct withdrawal from staking to prevent out of gas issue. *
function getMaxVestingWithdrawIterations() public view
returns(uint256)
Source Code
function getMaxVestingWithdrawIterations() public view returns (uint256) {
return maxVestingWithdrawIterations;
}
undefined
function getFunctionsList() external pure
returns(bytes4[])
Source Code
function getFunctionsList() external pure returns (bytes4[] memory) {
bytes4[] memory functionsList = new bytes4[](32);
functionsList[0] = this.getStorageMaxDurationToStakeTokens.selector;
functionsList[1] = this.getStorageMaxVotingWeight.selector;
functionsList[2] = this.getStorageWeightFactor.selector;
functionsList[3] = this.getStorageDefaulWeightScaling.selector;
functionsList[4] = this.getStorageRangeForWeightScaling.selector;
functionsList[5] = this.getStorageDomainTypehash.selector;
functionsList[6] = this.getStorageDelegationTypehash.selector;
functionsList[7] = this.getStorageName.selector;
functionsList[8] = this.kickoffTS.selector;
functionsList[9] = this.SOVToken.selector;
functionsList[10] = this.delegates.selector;
functionsList[11] = this.allUnlocked.selector;
functionsList[12] = this.newStakingContract.selector;
functionsList[13] = this.totalStakingCheckpoints.selector;
functionsList[14] = this.numTotalStakingCheckpoints.selector;
functionsList[15] = this.delegateStakingCheckpoints.selector;
functionsList[16] = this.numDelegateStakingCheckpoints.selector;
functionsList[17] = this.userStakingCheckpoints.selector;
functionsList[18] = this.numUserStakingCheckpoints.selector;
functionsList[19] = this.nonces.selector;
functionsList[20] = this.feeSharing.selector;
functionsList[21] = this.weightScaling.selector;
functionsList[22] = this.vestingWhitelist.selector;
functionsList[23] = this.admins.selector;
functionsList[24] = this.vestingCodeHashes.selector;
functionsList[25] = this.vestingCheckpoints.selector;
functionsList[26] = this.numVestingCheckpoints.selector;
functionsList[27] = this.vestingRegistryLogic.selector;
functionsList[28] = this.pausers.selector;
functionsList[29] = this.paused.selector;
functionsList[30] = this.frozen.selector;
functionsList[31] = this.getMaxVestingWithdrawIterations.selector;
return functionsList;
}
- Address
- Administered
- AdminRole
- AdvancedToken
- AdvancedTokenStorage
- Affiliates
- AffiliatesEvents
- ApprovalReceiver
- BProPriceFeed
- CheckpointsShared
- Constants
- Context
- DevelopmentFund
- DummyContract
- EnumerableAddressSet
- EnumerableBytes32Set
- EnumerableBytes4Set
- ERC20
- ERC20Detailed
- ErrorDecoder
- Escrow
- EscrowReward
- FeedsLike
- FeesEvents
- FeeSharingCollector
- FeeSharingCollectorProxy
- FeeSharingCollectorStorage
- FeesHelper
- FourYearVesting
- FourYearVestingFactory
- FourYearVestingLogic
- FourYearVestingStorage
- GenericTokenSender
- GovernorAlpha
- GovernorVault
- IApproveAndCall
- IChai
- IContractRegistry
- IConverterAMM
- IERC1820Registry
- IERC20_
- IERC20
- IERC777
- IERC777Recipient
- IERC777Sender
- IFeeSharingCollector
- IFourYearVesting
- IFourYearVestingFactory
- IFunctionsList
- ILiquidityMining
- ILiquidityPoolV1Converter
- ILoanPool
- ILoanToken
- ILoanTokenLogicBeacon
- ILoanTokenLogicModules
- ILoanTokenLogicProxy
- ILoanTokenModules
- ILoanTokenWRBTC
- ILockedSOV
- IMoCState
- IModulesProxyRegistry
- Initializable
- InterestUser
- IPot
- IPriceFeeds
- IPriceFeedsExt
- IProtocol
- IRSKOracle
- ISovryn
- ISovrynSwapNetwork
- IStaking
- ISwapsImpl
- ITeamVesting
- ITimelock
- IV1PoolOracle
- IVesting
- IVestingFactory
- IVestingRegistry
- IWrbtc
- IWrbtcERC20
- LenderInterestStruct
- LiquidationHelper
- LiquidityMining
- LiquidityMiningConfigToken
- LiquidityMiningProxy
- LiquidityMiningStorage
- LoanClosingsEvents
- LoanClosingsLiquidation
- LoanClosingsRollover
- LoanClosingsShared
- LoanClosingsWith
- LoanClosingsWithoutInvariantCheck
- LoanInterestStruct
- LoanMaintenance
- LoanMaintenanceEvents
- LoanOpenings
- LoanOpeningsEvents
- LoanParamsStruct
- LoanSettings
- LoanSettingsEvents
- LoanStruct
- LoanToken
- LoanTokenBase
- LoanTokenLogicBeacon
- LoanTokenLogicLM
- LoanTokenLogicProxy
- LoanTokenLogicStandard
- LoanTokenLogicStorage
- LoanTokenLogicWrbtc
- LoanTokenSettingsLowerAdmin
- LockedSOV
- MarginTradeStructHelpers
- Medianizer
- ModuleCommonFunctionalities
- ModulesCommonEvents
- ModulesProxy
- ModulesProxyRegistry
- MultiSigKeyHolders
- MultiSigWallet
- Mutex
- Objects
- OrderStruct
- OrigingVestingCreator
- OriginInvestorsClaim
- Ownable
- Pausable
- PausableOz
- PreviousLoanToken
- PreviousLoanTokenSettingsLowerAdmin
- PriceFeedRSKOracle
- PriceFeeds
- PriceFeedsLocal
- PriceFeedsMoC
- PriceFeedV1PoolOracle
- ProtocolAffiliatesInterface
- ProtocolLike
- ProtocolSettings
- ProtocolSettingsEvents
- ProtocolSettingsLike
- ProtocolSwapExternalInterface
- ProtocolTokenUser
- Proxy
- ProxyOwnable
- ReentrancyGuard
- RewardHelper
- RSKAddrValidator
- SafeERC20
- SafeMath
- SafeMath96
- setGet
- SharedReentrancyGuard
- SignedSafeMath
- SOV
- sovrynProtocol
- StakingAdminModule
- StakingGovernanceModule
- StakingInterface
- StakingProxy
- StakingRewards
- StakingRewardsProxy
- StakingRewardsStorage
- StakingShared
- StakingStakeModule
- StakingStorageModule
- StakingStorageShared
- StakingVestingModule
- StakingWithdrawModule
- State
- SwapsEvents
- SwapsExternal
- SwapsImplLocal
- SwapsImplSovrynSwap
- SwapsUser
- TeamVesting
- Timelock
- TimelockHarness
- TimelockInterface
- TokenSender
- UpgradableProxy
- USDTPriceFeed
- Utils
- VaultController
- Vesting
- VestingCreator
- VestingFactory
- VestingLogic
- VestingRegistry
- VestingRegistry2
- VestingRegistry3
- VestingRegistryLogic
- VestingRegistryProxy
- VestingRegistryStorage
- VestingStorage
- WeightedStakingModule
- WRBTC