View Source: contracts/governance/FeeSharingCollector/FeeSharingCollectorStorage.sol
↗ Extends: Ownable ↘ Derived Contracts: FeeSharingCollector, FeeSharingCollectorProxy, ILoanToken, ILoanTokenWRBTC
Just the storage part of FeeSharingCollector contract, and FeeSharingCollectorProxy. No functions, only constant, variables and required structures (mappings)
struct Checkpoint {
uint32 blockNumber,
uint32 timestamp,
uint96 totalWeightedStake,
uint96 numTokens
}
Constants & Variables
//internal members
uint256 internal constant FEE_WITHDRAWAL_INTERVAL;
uint256 internal constant REENTRANCY_GUARD_FREE;
uint256 internal constant REENTRANCY_GUARD_LOCKED;
uint256 internal reentrancyLock;
struct EnumerableAddressSet.AddressSet internal whitelistedConverterList;
//public members
contract IProtocol public protocol;
contract IStaking public staking;
mapping(address => mapping(uint256 => struct FeeSharingCollectorStorage.Checkpoint)) public tokenCheckpoints;
mapping(address => uint256) public totalTokenCheckpoints;
mapping(address => mapping(address => uint256)) public processedCheckpoints;
mapping(address => uint256) public lastFeeWithdrawalTime;
mapping(address => uint96) public unprocessedAmount;
mapping(bytes4 => bool) public isFunctionExecuted;
Prevents a contract from calling itself, directly or indirectly.
If you mark a function nonReentrant
, you should also
mark it external
. Calling one nonReentrant
function from
another is not supported. Instead, you can implement a
private
function doing the actual work, and an external
wrapper marked as nonReentrant
.
modifier nonReentrant() internal
- withdrawFees(address[] tokens, address receiver)
- underlyingToLoanPool(address token)
- wrbtcToken()
- getSovTokenAddress()
function withdrawFees(address[] tokens, address receiver) external nonpayable
returns(totalWRBTCWithdrawn uint256)
Arguments
Name | Type | Description |
---|---|---|
tokens | address[] | The array address of the token instance. |
receiver | address | The address of the withdrawal recipient. * |
Returns
The withdrawn total amount in wRBTC
Source Code
function withdrawFees(address[] calldata tokens, address receiver)
external
returns (uint256 totalWRBTCWithdrawn);
function underlyingToLoanPool(address token) external view
returns(address)
Arguments
Name | Type | Description |
---|---|---|
token | address |
Source Code
function underlyingToLoanPool(address token) external view returns (address);
function wrbtcToken() external view
returns(contract IWrbtcERC20)
Source Code
function wrbtcToken() external view returns (IWrbtcERC20);
function getSovTokenAddress() external view
returns(address)
Source Code
function getSovTokenAddress() external view returns (address);
- 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