Docs
  • ⛵Lodestar Finance
  • Getting Started
    • 👨‍🌾User Guide
    • ❓FAQ
    • 🏗️Deployed Contracts
  • Documentation
    • 👩‍🔬Technical Overview
      • Supply
      • Collateral
        • Collateral Factors
      • Borrow
      • Interest
        • Interest Rate Model 1
        • Interest Rate Model 2
        • Interest Rate Model 3
        • Interest Rate Model 4
        • Interest Rate Model 5
      • Reserves
        • Reserve Factors
        • Rake
      • Liquidation
      • Staking
        • Emission Gauge Voting
      • Looping
    • 🤖Contracts
      • Lens
      • Comptroller
        • LODE Emissions
        • Events
        • Error Reporting
      • Oracles
      • Interest Rate Models
        • Constructor Arguments
      • lTokens
        • Market and Account State
        • Events
        • Error Reporting
    • ⚙️API
    • 🔐Security
    • 🗺️Roadmap
    • 🥚Inception
  • Tokenomics
    • 🧭LODE
  • Links
    • Twitter
    • Discord
    • Medium
    • Github
    • Lodestar Website
    • Lodestar dApp
    • Lodestar Liquidity Mining
    • LODE Token Claim for Aelin Supporters
Powered by GitBook
On this page
  • Collateralizing Assets
  • Account Liquidity
  • Price Accuracy
  1. Documentation
  2. Technical Overview

Collateral

In order to borrow assets, you must first collateralize your supplied position.

PreviousSupplyNextCollateral Factors

Last updated 1 year ago

Collateralizing Assets

After a user has supplied assets into the protocol, they will begin earning interest automatically; however, their tokens won't automatically be usable as collateral. In order to activate an asset to be used as collateral, toggle the collateral slider in the market dashboard and approve the contract. A user can then borrow against their assets based on the amount of principal supplied and the collateral factor. The collateral factor is the maximum amount users can borrow for a given asset they have supplied.

For example:

  • When a user supplies 100 USDC with a collateral factor of 85%, they can borrow as much as 85 USDC worth of other assets at a given time. If a user supplies two or more assets, then the amount they can borrow is determined by a weighted average. If a user supplied $50 USDC with a 85% collateral factor and $50 of WBTC with a collateral factor of 75%, then the user could borrow up to $80 USD.

Account Liquidity

An easy way to obtain your account's total liquidity if you have supplied multiple assets as collateral is to go to Unitroller contract address found in the section and enter your address into the getAccountLiquidity method. This returns the (error, current liquidity, shortfall). Current liquidity is the maximum USD value that an account can borrow before reaching liquidation. If an account reaches liquidation, then shortfall will return the USD value of abs((USD value of principal x collateral factor) - borrow balance).

Price Accuracy

Lodestar uses verified, secure price feeds for every asset it offers with the exception of plvGLP (refer to the section for additional information). This is how the protocol accurately calculates the maximum borrow rate, or if a user's account is insolvent.

👩‍🔬
Deployed Contracts
Chainlink
Oracles