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
  • Functions info
  • isComptroller (0x007e3dd2)
  • getAssetsIn (0xabfceffc)
  • getAccountLiquidity (0x5ec88c79)
  • checkMembership (0x929fe9a1)
  • getPrimaryLendingPlatformAddress (0xaa0e4edd)
  • enterMarkets (0xc2998238)
  • enterMarket (0x24991d66)
  • exitMarket (0xede4edd0)
  • mintAllowed (0x4ef4c3e1)
  • mintVerify (0x41c728b9)
  • redeemAllowed (0xeabe7d91)
  • redeemVerify (0x51dff989)
  • borrowAllowed (0xda3d454c)
  • borrowVerify (0x5c778605)
  • repayBorrowAllowed (0x24008a62)
  • repayBorrowVerify (0x1ededc91)
  • liquidateBorrowAllowed (0x5fc7e71e)
  • liquidateBorrowVerify (0x47ef3b3b)
  • seizeAllowed (0xd02f7351)
  • seizeVerify (0x6d35bf91)
  • transferAllowed (0xbdcdc258)
  • transferVerify (0x6a56947e)
  • liquidateCalculateSeizeTokens (0xc488847b)
  1. interfaces

IComptroller

Overview

License: MIT

interface IComptroller

Functions info

isComptroller (0x007e3dd2)

function isComptroller() external view returns (bool)

Indicator that this is a Comptroller contract (for inspection)

getAssetsIn (0xabfceffc)

function getAssetsIn(address account) external view returns (address[] memory)

getAccountLiquidity (0x5ec88c79)

function getAccountLiquidity(
    address account
) external view returns (uint256, uint256, uint256)

checkMembership (0x929fe9a1)

function checkMembership(
    address account,
    address cToken
) external view returns (bool)

getPrimaryLendingPlatformAddress (0xaa0e4edd)

function getPrimaryLendingPlatformAddress() external view returns (address)

enterMarkets (0xc2998238)

function enterMarkets(
    address[] memory cTokens
) external returns (uint256[] memory)

enterMarket (0x24991d66)

function enterMarket(
    address cToken,
    address borrower
) external returns (uint256)

exitMarket (0xede4edd0)

function exitMarket(address cToken) external returns (uint256)

mintAllowed (0x4ef4c3e1)

function mintAllowed(
    address cToken,
    address minter,
    uint256 mintAmount
) external returns (uint256)

mintVerify (0x41c728b9)

function mintVerify(
    address cToken,
    address minter,
    uint256 mintAmount,
    uint256 mintTokens
) external

redeemAllowed (0xeabe7d91)

function redeemAllowed(
    address cToken,
    address redeemer,
    uint256 redeemTokens
) external returns (uint256)

redeemVerify (0x51dff989)

function redeemVerify(
    address cToken,
    address redeemer,
    uint256 redeemAmount,
    uint256 redeemTokens
) external

borrowAllowed (0xda3d454c)

function borrowAllowed(
    address cToken,
    address borrower,
    uint256 borrowAmount
) external returns (uint256)

borrowVerify (0x5c778605)

function borrowVerify(
    address cToken,
    address borrower,
    uint256 borrowAmount
) external

repayBorrowAllowed (0x24008a62)

function repayBorrowAllowed(
    address cToken,
    address payer,
    address borrower,
    uint256 repayAmount
) external returns (uint256)

repayBorrowVerify (0x1ededc91)

function repayBorrowVerify(
    address cToken,
    address payer,
    address borrower,
    uint256 repayAmount,
    uint256 borrowerIndex
) external

liquidateBorrowAllowed (0x5fc7e71e)

function liquidateBorrowAllowed(
    address cTokenBorrowed,
    address cTokenCollateral,
    address liquidator,
    address borrower,
    uint256 repayAmount
) external returns (uint256)

liquidateBorrowVerify (0x47ef3b3b)

function liquidateBorrowVerify(
    address cTokenBorrowed,
    address cTokenCollateral,
    address liquidator,
    address borrower,
    uint256 repayAmount,
    uint256 seizeTokens
) external

seizeAllowed (0xd02f7351)

function seizeAllowed(
    address cTokenCollateral,
    address cTokenBorrowed,
    address liquidator,
    address borrower,
    uint256 seizeTokens
) external returns (uint256)

seizeVerify (0x6d35bf91)

function seizeVerify(
    address cTokenCollateral,
    address cTokenBorrowed,
    address liquidator,
    address borrower,
    uint256 seizeTokens
) external

transferAllowed (0xbdcdc258)

function transferAllowed(
    address cToken,
    address src,
    address dst,
    uint256 transferTokens
) external returns (uint256)

transferVerify (0x6a56947e)

function transferVerify(
    address cToken,
    address src,
    address dst,
    uint256 transferTokens
) external

liquidateCalculateSeizeTokens (0xc488847b)

function liquidateCalculateSeizeTokens(
    address cTokenBorrowed,
    address cTokenCollateral,
    uint256 repayAmount
) external view returns (uint256, uint256)
PreviousIBPrimaryLendingPlatformNextIPRJ

Last updated 7 months ago