V2 Fringe Finance Smart Contract Documentation
  • bToken
    • BErc20
    • BErc20Interface
    • BErc20Storage
    • BLendingToken
    • BToken
    • BTokenInterface
    • BTokenStorage
  • bondtroller
    • Bondtroller
    • BondtrollerV1Storage
    • BondtrollerV2Storage
    • BondtrollerV3Storage
    • BondtrollerV4Storage
    • BondtrollerV5Storage
  • interestRateModel
    • BaseJumpRateModelV2
    • InterestRateModel
    • JumpRateModelV3
  • interfaces
    • EIP20Interface
    • EIP20NonStandardInterface
    • IBErc20Token
    • IBLendingToken
    • IBPrimaryLendingPlatform
    • IComptroller
    • IPRJ
    • IPriceOracle
    • IPriceProviderAggregator
    • IPrimaryLendingPlatform
    • IPrimaryLendingPlatformLeverage
    • IPrimaryLendingPlatformLiquidation
    • ISimplePriceOracle
    • IUSDCTest
    • IWETH
    • IWstETH
  • mock
    • MockToken
    • MockWstETH
    • PRJ
    • WETH9
  • priceOracle
    • PriceOracle
    • PriceProviderAggregator
    • PriceProviderAggregatorPyth
    • priceproviders
      • ChainlinkPriceProvider
      • ChainlinkPriceProviderL2
      • ERC4626PriceProvider
      • LPPriceProvider
      • MutePriceProvider
      • PriceProvider
      • PythPriceProvider
      • UniswapV2PriceProvider
      • UniswapV2PriceProviderMock
      • UniswapV3PriceProvider
      • wstETHPriceProvider
      • wstETHPriceProviderL2
      • chainlink
        • AggregatorV3Interface
      • mute
        • IMuteSwitchPairDynamic
      • pyth
        • IPyth
        • PythStructs
      • uniswapV2
        • IUniswapV2Factory
        • IUniswapV2Pair
        • IUniswapV2Router02
        • SafeMath
        • UniswapV2Library
      • uniswapV3
        • v3-core
          • interfaces
            • IERC20Minimal
            • IUniswapV3Factory
            • IUniswapV3Pool
            • IUniswapV3PoolDeployer
            • pool
              • IUniswapV3PoolActions
              • IUniswapV3PoolDerivedState
              • IUniswapV3PoolEvents
              • IUniswapV3PoolImmutables
              • IUniswapV3PoolOwnerActions
              • IUniswapV3PoolState
          • libraries
            • TickMath
        • v3-periphery
          • libraries
            • OracleLibrary
  • primaryLendingPlatform
    • PrimaryLendingPlatformAtomicRepaymentCore
    • PrimaryLendingPlatformLeverageCore
    • PrimaryLendingPlatformLiquidationCore
    • PrimaryLendingPlatformModerator
    • PrimaryLendingPlatformProxyAdmin
    • PrimaryLendingPlatformV2Core
    • PrimaryLendingPlatformWrappedTokenGatewayCore
    • zksync
      • PrimaryLendingPlatformAtomicRepaymentZksync
      • PrimaryLendingPlatformLeverageZksync
      • PrimaryLendingPlatformLiquidationZksync
      • PrimaryLendingPlatformV2Zksync
      • PrimaryLendingPlatformWrappedTokenGatewayZksync
  • util
    • Asset
    • BondtrollerErrorReporter
    • CarefulMath
    • Errors
    • Exponential
    • ExponentialNoError
    • HomoraMath
    • TokenErrorReporter
  • paraswap
    • interfaces
      • IParaSwapAugustus
      • IParaSwapAugustusRegistry
Powered by GitBook
On this page
  • Overview
  • Structs info
  • CompMarketState
  • State variables info
  • allMarkets (0x52d84d1e)
  • compRate (0xaa900754)
  • compSpeeds (0x1d7b33d7)
  • compSupplyState (0x6b79c38d)
  • compBorrowState (0x8c57804e)
  • compSupplierIndex (0xb21be7fd)
  • compBorrowerIndex (0xca0af043)
  • compAccrued (0xcc7ebdc4)
  1. bondtroller

BondtrollerV3Storage

Overview

License: MIT

contract BondtrollerV3Storage is BondtrollerV2Storage

Structs info

CompMarketState

struct CompMarketState {
	uint224 index;
	uint32 block;
}

State variables info

allMarkets (0x52d84d1e)

contract BToken[] allMarkets

A list of all markets

compRate (0xaa900754)

uint256 compRate

The rate at which the flywheel distributes COMP, per block

compSpeeds (0x1d7b33d7)

mapping(address => uint256) compSpeeds

The portion of compRate that each market currently receives

compSupplyState (0x6b79c38d)

mapping(address => struct BondtrollerV3Storage.CompMarketState) compSupplyState

The COMP market supply state for each market

compBorrowState (0x8c57804e)

mapping(address => struct BondtrollerV3Storage.CompMarketState) compBorrowState

The COMP market borrow state for each market

compSupplierIndex (0xb21be7fd)

mapping(address => mapping(address => uint256)) compSupplierIndex

The COMP borrow index for each market for each supplier as of the last time they accrued COMP

compBorrowerIndex (0xca0af043)

mapping(address => mapping(address => uint256)) compBorrowerIndex

The COMP borrow index for each market for each borrower as of the last time they accrued COMP

compAccrued (0xcc7ebdc4)

mapping(address => uint256) compAccrued

The COMP accrued but not yet transferred to each user

PreviousBondtrollerV2StorageNextBondtrollerV4Storage

Last updated 7 months ago