Altitude Docs
Launch App
  • GENERAL
    • Protocol Overview
      • Optimizing Borrowing Rates
      • Actively Managing Idle Capital
      • How do users interact with a vault?
        • Deposit
        • Borrow
        • Withdraw
        • Repay
        • Claim Rewards
        • Other user functions
      • Vault Health
      • Ingress Control
    • Yield Generation Process
      • What is a vault?
      • How much is deployed into yield farms?
      • When do we interact with Yield Farms?
        • Migrations
        • Liquidation of vault
      • How are yields recognised?
      • How are yields distributed?
      • How do we determine which Yield Farms to use?
    • The ALTI Token
    • FAQ
      • Early Rewards Program
      • About Altitude
      • What milestones have been hit so far by the Altitude Team?
      • What are the advantages of using Altitude?
      • How does it work?
      • What Oracles is Altitude using to determine the health of the vault?
      • When will Altitude enable more vaults?
      • How are yields generated?
      • How do my rewards change when I interact with the vault?
      • Who determines where unutilized assets are deployed?
      • How will Altitude work at times of high volatility?
  • Integrations
    • Lenders
  • Yield generation
  • Decentralized Exchanges
  • Smart Contracts
    • Vaults & Contracts
    • Audits
    • Security
    • Governance
  • Oracles
  • Resources
    • Risks
    • Terms of Service
    • Disclaimer
  • Contacts
Powered by GitBook
On this page

Was this helpful?

  1. GENERAL
  2. Protocol Overview
  3. How do users interact with a vault?

Deposit

The deposit function allows a user to transfer the supply asset of the vault and receive supplyTokens in exchange.

deposit(uint256 amount, address onBehalfOf)

  • amount - the amount the user wants to deposit. The user must approve this amount prior to deposit.

  • onBehalfOf - the address onBehalfOf who this deposit is made, typically the user themselves

Upon receiving a deposit the vault will deploy this collateral into the active lending provider to be used as collateral.

supplyToken A supply token is issued to represent each supply asset the user is owed. This is an interest bearing token and its value can go up over time, in line with interest received on our lender deposits. Each supply token represents one supply asset (e.g. WETH) token.

PreviousHow do users interact with a vault?NextBorrow

Last updated 1 year ago

Was this helpful?