ComptrollerStorage

ComptrollerStorage

Storage layout for the Comptroller contract.

Solidity API

struct LiquidationOrder {
  contract VToken vTokenCollateral;
  contract VToken vTokenBorrowed;
  uint256 repayAmount;
}
struct AccountLiquiditySnapshot {
  uint256 totalCollateral;
  uint256 weightedCollateral;
  uint256 borrows;
  uint256 effects;
  uint256 liquidity;
  uint256 shortfall;
}
struct RewardSpeeds {
  address rewardToken;
  uint256 supplySpeed;
  uint256 borrowSpeed;
}

oracle

Oracle which gives the price of any given asset


closeFactorMantissa

Multiplier used to calculate the maximum repayAmount when liquidating a borrow


liquidationIncentiveMantissa

Multiplier representing the discount on collateral that a liquidator receives


accountAssets

Per-account mapping of "assets you are in"


markets

Official mapping of vTokens -> Market metadata


allMarkets

A list of all markets


borrowCaps

Borrow caps enforced by borrowAllowed for each vToken address. Defaults to zero which restricts borrowing.


minLiquidatableCollateral

Minimal collateral required for regular (non-batch) liquidations


supplyCaps

Supply caps enforced by mintAllowed for each vToken address. Defaults to zero which corresponds to minting not allowed


isForcedLiquidationEnabled

Flag indicating whether forced liquidation enabled for a market


prime

Prime token address


approvedDelegates

Whether the delegate is allowed to borrow or redeem on behalf of the user


Last updated