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
  • Enums info
  • Error
  • FailureInfo
  • Events info
  • Failure
  1. util

BondtrollerErrorReporter

Overview

License: MIT

contract BondtrollerErrorReporter

Enums info

Error

enum Error {
	 NO_ERROR,
	 UNAUTHORIZED,
	 BONDTROLLER_MISMATCH,
	 INSUFFICIENT_SHORTFALL,
	 INSUFFICIENT_LIQUIDITY,
	 INVALID_CLOSE_FACTOR,
	 INVALID_COLLATERAL_FACTOR,
	 INVALID_LIQUIDATION_INCENTIVE,
	 MARKET_NOT_ENTERED,
	 MARKET_NOT_LISTED,
	 MARKET_ALREADY_LISTED,
	 MATH_ERROR,
	 NONZERO_BORROW_BALANCE,
	 PRICE_ERROR,
	 REJECTION,
	 SNAPSHOT_ERROR,
	 TOO_MANY_ASSETS,
	 TOO_MUCH_REPAY
}

FailureInfo

enum FailureInfo {
	 ACCEPT_ADMIN_PENDING_ADMIN_CHECK,
	 ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK,
	 EXIT_MARKET_BALANCE_OWED,
	 EXIT_MARKET_REJECTION,
	 SET_CLOSE_FACTOR_OWNER_CHECK,
	 SET_CLOSE_FACTOR_VALIDATION,
	 SET_COLLATERAL_FACTOR_OWNER_CHECK,
	 SET_COLLATERAL_FACTOR_NO_EXISTS,
	 SET_COLLATERAL_FACTOR_VALIDATION,
	 SET_COLLATERAL_FACTOR_WITHOUT_PRICE,
	 SET_IMPLEMENTATION_OWNER_CHECK,
	 SET_LIQUIDATION_INCENTIVE_OWNER_CHECK,
	 SET_LIQUIDATION_INCENTIVE_VALIDATION,
	 SET_MAX_ASSETS_OWNER_CHECK,
	 SET_PENDING_ADMIN_OWNER_CHECK,
	 SET_PENDING_IMPLEMENTATION_OWNER_CHECK,
	 SET_PRICE_ORACLE_OWNER_CHECK,
	 SUPPORT_MARKET_EXISTS,
	 SUPPORT_MARKET_OWNER_CHECK,
	 SET_PAUSE_GUARDIAN_OWNER_CHECK
}

Events info

Failure

event Failure(uint256 error, uint256 info, uint256 detail)

error corresponds to enum Error; info corresponds to enum FailureInfo, and detail is an arbitrary contract-specific code that enables us to report opaque error codes from upgradeable contracts.

PreviousAssetNextCarefulMath

Last updated 7 months ago