VaultMiningStorage

Git Source

State Variables

STORAGE_SLOT

bytes32 internal constant STORAGE_SLOT = keccak256("premia.contracts.storage.VaultMining");

Functions

layout

function layout() internal pure returns (Layout storage l);

Structs

Layout

struct Layout {
    UD60x18 rewardsPerYear;
    UD60x18 rewardsAvailable;
    mapping(address pool => IVaultMining.VaultInfo infos) vaultInfo;
    mapping(address pool => mapping(address user => IVaultMining.UserInfo info)) userInfo;
    UD60x18 totalVotes;
    mapping(address user => UD60x18) userRewards;
    uint256 lastUpdate;
    UD60x18 globalAccRewardsPerVote;
    mapping(address vault => EnumerableSet.AddressSet pools) dualMining;
    mapping(address vault => UD60x18 multiplier) voteMultiplier;
}