Prime storage

PrimeStorageV1

Storage for Prime Token

Solidity API

struct Token {
  bool exists;
  bool isIrrevocable;
}
struct Market {
  uint256 supplyMultiplier;
  uint256 borrowMultiplier;
  uint256 rewardIndex;
  uint256 sumOfMembersScore;
  bool exists;
}
struct Interest {
  uint256 accrued;
  uint256 score;
  uint256 rewardIndex;
}

tokens

Mapping to get prime token's metadata


totalIrrevocable

Tracks total irrevocable tokens minted


totalRevocable

Tracks total revocable tokens minted


revocableLimit

Indicates maximum revocable tokens that can be minted


irrevocableLimit

Indicates maximum irrevocable tokens that can be minted


stakedAt

Tracks when prime token eligible users started staking for claiming prime token


markets

vToken to market configuration


interests

vToken to user to user index


alphaNumerator

numerator of alpha. Ex: if alpha is 0.5 then this will be 1


alphaDenominator

denominator of alpha. Ex: if alpha is 0.5 then this will be 2


xvsVault

address of XVS vault


xvsVaultRewardToken

address of XVS vault reward token


xvsVaultPoolId

address of XVS vault pool id


isScoreUpdated

mapping to check if a account's score was updated in the round


nextScoreUpdateRoundId

unique id for next round


totalScoreUpdatesRequired

total number of accounts whose score needs to be updated


pendingScoreUpdates

total number of accounts whose score is yet to be updated


vTokenForAsset

mapping used to find if an asset is part of prime markets


comptroller

address of core pool comptroller contract


unreleasedPLPIncome

unreleased income from PLP that's already distributed to prime holders


primeLiquidityProvider

The address of PLP contract


oracle

The address of ResilientOracle contract


Last updated