📜

Contracts

Blueberry Bank Components

Blueberry Bank Components

Blueberry Bank product is mainly composed of 5 components:

  1. 1.
    ​Blueberry Bank Contract: the main contract that stores users` positions and tracks the borrowing of tokens.
  2. 2.
    ​Blueberry Oracle Contracts: The contracts that identify position values and token prices.
  3. 3.
    ​Blueberry Spell Contract: the contracts which define the specific deployment of the strategy in the spell. E.g. The contract interacts with DEXes and wrapper contracts to open/close users' positions.
  4. 4.
    1. 1.
      ​Blueberry SoftVault Contracts: The contracts that allow users to lend tokens (ERC20) and earn lending interest (interest rate is reflected from how much users borrow the token (Active utilization rate)). This is using the underlying Blueberry Money Market (Compound Fork) Lending Protocol​
    2. 2.
      ​Blueberry HardVault Contracts: The contracts that allow users to lock LP (ERC1155) tokens as collateral.
  5. 5.
    ​Blueberry Wrapper Contracts: the contracts that handle the farming process (i.e. deposit into Masterchef contract) and wrap/unwrap user's collateral and forward wrapped tokens to bank/spells.