🫐
Blueberry Product Docs
  • 🫐Welcome to Blueberry Protocol
  • Blueberry Overview
    • 👋What is Blueberry?
    • 🔍Concept Overview
    • 🔬Front End
  • 💸Earn
    • ⚖️Leveraged Strategies
    • 🌊Liquidation Process on Blueberry
      • The Concept of Liquidation
      • Liquidations on Blueberry
      • Role of Bots in the Liquidation Process
      • Mitigating Liquidation Risk
    • 📈Earn Token Listing
    • 📉Earn Token Delisting
    • 📏Strategy Listing and Delisting
    • 💲Fee Structure
    • ⁉️Earn Error Codes
  • 💰Lending Protocol
    • 🔎Overview
      • 🔨Governance
        • 💱Flash Loans
        • 🛑Delist
    • 🪙bToken Introduction
      • bToken Address
    • 📈Interest Rate Model
    • 💲Price Oracle
    • ⁉️Error Code
      • ⁉️Key Events
      • ⁉️bToken Error Code
      • ⁉️Comptroller Error Code
    • 💾Change Log
  • 🪙Tokenomics
    • 🔵BLB Governance Token
    • 💰ibTokens
    • 🍩$bdBLB
    • ⚓Lockdrop
    • 📀Token Distribution
  • 🖥️developer-guides
    • 📜Contracts
      • Blueberry Bank
        • Introduction
        • Blueberry Bank Contract
          • Variables
          • Modifiers
        • Fee Manager
        • ProtocolConfig
      • Oracle
        • Introduction
        • AggregatorOracle
        • CoreOracle
      • Spell
        • Introduction
        • AuraSpell
        • BasicSpell
        • ConvexSpell
        • IchiSpell
        • LongShortSpell
      • Vault
        • Introduction
        • HardVault
        • SoftVault
      • Utils
        • BlueBerryConst
        • BlueBerryErrors
        • EnsureApprove
        • ERC1155NaiveReceiver
      • Wrapper
        • Introduction
        • WAuraPools
        • WConvexPools
        • WCurveGauge
        • WERC20
        • WIchiFarm
      • Interact with Blueberry V1
    • 📔Deployed Contracts
  • 🛡️Security
    • 🛡️Audits
    • 🛡️Bug Bounty
  • Legal
    • 📃Terms of Service
    • 📃Privacy Policy
    • 📄Risks
  • Miscellaneous
    • 💙Early Adopter Wallet List
Powered by GitBook
On this page
  • Error Codes
  • Failure Information
  1. Lending Protocol
  2. Error Code

Comptroller Error Code

Error Codes

Code
Name
Description

0

NO_ERROR

Not a failure.

1

UNAUTHORIZED

The sender is not authorized to perform this action.

2

COMPTROLLER_MISMATCH

Liquidation cannot be performed in markets with different comptrollers.

3

INSUFFICIENT_SHORTFALL

The account does not have sufficient shortfall to perform this action.

4

INSUFFICIENT_LIQUIDITY

The account does not have sufficient liquidity to perform this action.

5

INVALID_CLOSE_FACTOR

The close factor is not valid.

6

INVALID_COLLATERAL_FACTOR

The collateral factor is not valid.

7

INVALID_LIQUIDATION_INCENTIVE

The liquidation incentive is invalid.

8

MARKET_NOT_ENTERED

The market has not been entered by the account.

9

MARKET_NOT_LISTED

The market is not currently listed by the comptroller.

10

MARKET_ALREADY_LISTED

An admin tried to list the same market more than once.

11

MATH_ERROR

A math calculation error occurred.

12

NONZERO_BORROW_BALANCE

The action cannot be performed since the account carries a borrow balance.

13

PRICE_ERROR

The comptroller could not obtain a required price of an asset.

14

REJECTION

The comptroller rejects the action requested by the market.

15

SNAPSHOT_ERROR

The comptroller could not get the account borrows and exchange rate from the market.

16

TOO_MANY_ASSETS

Attempted to enter more markets than are currently supported.

17

TOO_MUCH_REPAY

Attempted to repay more than is allowed by the protocol.

Failure Information

Code
Name

0

ACCEPT_ADMIN_PENDING_ADMIN_CHECK

1

ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK

2

EXIT_MARKET_BALANCE_OWED

3

EXIT_MARKET_REJECTION

4

SET_CLOSE_FACTOR_OWNER_CHECK

5

SET_CLOSE_FACTOR_VALIDATION

6

SET_COLLATERAL_FACTOR_OWNER_CHECK

7

SET_COLLATERAL_FACTOR_NO_EXISTS

8

SET_COLLATERAL_FACTOR_VALIDATION

9

SET_COLLATERAL_FACTOR_WITHOUT_PRICE

10

SET_IMPLEMENTATION_OWNER_CHECK

11

SET_LIQUIDATION_INCENTIVE_OWNER_CHECK

12

SET_LIQUIDATION_INCENTIVE_VALIDATION

13

SET_MAX_ASSETS_OWNER_CHECK

14

SET_PENDING_ADMIN_OWNER_CHECK

15

SET_PENDING_IMPLEMENTATION_OWNER_CHECK

16

SET_PRICE_ORACLE_OWNER_CHECK

17

SUPPORT_MARKET_EXISTS

18

SUPPORT_MARKET_OWNER_CHECK

PreviousbToken Error CodeNextChange Log

Last updated 2 years ago

💰
⁉️
⁉️