Vertex Docs
  • Getting Started
    • 📋Overview
    • 📜Table of Contents
    • 🚀Mission
    • ⚔️Vertex Edge
      • 1️⃣Vertex on Arbitrum
      • 2️⃣Blitz on Blast
        • Blitz Documentation
      • 3️⃣Vertex on Mantle
        • 🎆Trading Rewards
        • 📊Perpetual & Spot Market Specifications
        • 🖥️Open-Source Contracts
        • 🔌API
      • 4️⃣Vertex on Sei
        • 💰Trading Rewards
        • 📊Perpetual & Spot Market Specifications
        • 🖥️On-Chain Contracts
        • 🔌API
      • 5️⃣Vertex on Base
        • 💰Trading Rewards
        • 📊Perpetual & Spot Market Specifications
        • 💻Onchain Contracts
        • 🔌API
        • ✍️Create a Coinbase Smart Wallet
      • 6️⃣Vertex on Sonic
        • 💰Trading Rewards
        • 📊Perpetual & Spot Market Specifications
        • ⛓️On-Chain Contracts
        • 🔌API
      • 7️⃣Vertex on Abstract
        • 📊Market Specifications
        • ⛓️On-Chain Contracts
        • 🔌API
      • 8️⃣Bro.Trade on Berachain
        • ⛓️On-Chain Contracts
        • 🔌API
      • 9️⃣Vertex on Avalanche
        • 💰Trading Rewards
        • 📊Market Specifications
        • ⛓️On-Chain Contracts
        • 🔌API
  • Basics
    • 📽️Products
    • ⚡Technical Architecture
    • 🧵Universal Cross Margin
    • ✂️Isolated Margin
    • ℹ️Subaccounts & Health
    • ⏰Liquidations & Insurance Fund
    • 💵PnL Settlements
    • 📊Pricing (Oracles)
    • 💰Fees
    • 📈Funding Rates
    • 📅Market Specifications
    • ⚡One-Click Trading
    • 🔫Trigger Orders
    • 🗂️GMCI 30 & MEME Indices
    • 💰Trade & Earn
      • 🤝Maker Program
      • 🔁Cross-Chain VRTX Rewards
      • ❓Trading Rewards - FAQs
    • 🧑‍🤝‍🧑Referral Program
    • ⚒️Resources & Links
    • ❔FAQs
  • VRTX Token
    • 🎓VRTX Tokenomics
    • 📊Token Supply Distribution
  • More
    • 🌐Glossary
    • 🔬Contracts & Code Audits
    • 🦋Bug Bounties
    • 💽Data & Research
    • 🪟Maintenance Windows
    • 🏁Terms of Use
    • ✍️Statement of Risk
    • 🌍Restricted Territories
    • 📸Brand Assets
  • Tutorials
    • 🏁Quick Start
    • 🖱️One-Click Trading
    • 💰Deposits - Powered by Fun.xyz
    • ⚙️Trading Basics
    • ♾️Perpetuals
    • 🔮Spot
    • 🧑‍🤝‍🧑Multiple Accounts
    • 🔫TP/SL & Stop-Market
    • 💰Withdrawals
    • ⚡Fast Withdrawals
    • 🌉Cross-Chain Deposits
    • 🔄Lend, Borrow & Repay
    • ❤️Margin Health
    • 💧Pools
    • 💫VRTX Staking
    • ↔️Switching Chains
    • 🪙Trading Rewards
    • ✂️Shortcuts
  • Developer Resources
    • API
      • 🔌Endpoints
      • Gateway
        • Executes
          • Place Order
          • Place Isolated Order
          • Cancel Orders
          • Cancel Product Orders
          • Cancel And Place
          • Withdraw Collateral
          • Transfer Quote
          • Liquidate Subaccount
          • Mint LP
          • Burn LP
          • Link Signer
        • Queries
          • Status
          • Contracts
          • Nonces
          • Order
          • Orders
          • Subaccount Info
          • Isolated Positions
          • Market Liquidity
          • Symbols
          • All Products
          • Edge All Products
          • Market Prices
          • Max Order Size
          • Max Withdrawable
          • Max LP Mintable
          • Fee Rates
          • Health Groups
          • Linked Signer
          • Insurance
          • Min Deposit Rates
        • Signing
          • Examples
          • Q&A
      • Subscriptions
        • Authentication
        • Streams
        • Events
        • Rate limits
      • Archive (indexer)
        • Orders
        • Matches
        • Events
        • Summary
        • Candlesticks
        • Edge Candlesticks
        • Funding Rate
        • Interest & funding payments
        • Oracle Price
        • Perp Prices
        • Product Snapshots
        • Market Snapshots
        • Edge Market Snapshots
        • Maker Statistics
        • Merkle Proofs
        • Rewards
        • Referral Code
        • Liquidation Feed
        • Linked Signer Rate Limit
        • Sequencer Backlog
        • Subaccounts
        • Subaccount Snapshots
        • Signatures
        • USDC Price
      • Trigger
        • Executes
          • Place Order
          • Cancel Orders
          • Cancel Product Orders
        • Queries
          • List Trigger Orders
      • V2
        • Assets
        • Pairs
        • APR
        • Orderbook
        • Tickers
        • Contracts
        • Trades
        • VRTX Token
      • Rate limits
      • Errors
      • Symbols
      • Depositing
      • Withdrawing (on-chain)
      • Integrate via Smart Contracts
      • Definitions / Formulas
    • Vertex Typescript SDK
      • Getting Started
      • How To
        • Create a Vertex client
        • Useful Common Functions
        • Query Markets & Products
        • Deposit Funds
        • Withdraw Funds
        • Manage Orders
      • User Guide
        • Client
          • Market
            • Place Order
            • Cancel Orders
            • Cancel Product Orders
            • Mint LP
            • Burn LP
            • Get All Markets
            • Get Latest Market Price
            • Get Market Liquidity
            • Get Open Subaccount orders
            • Get Historical Orders
            • Get Max Order Size
            • Get Max Mint LP
            • Get Candlesticks
            • Get Funding Rate
            • Get Product Snapshots
          • Spot
            • Approve Allowance
            • Deposit
            • Withdraw
            • Get Max Withdrawable
            • Get Token Contract for Product
            • Get Token Wallet Balance
            • Get Token Allowance
          • Perp
            • Get prices
          • Subaccount
            • Link Signer
            • Get Subaccount Linked Signer with Rate limits
            • Get Subaccount Summary
            • Get Subaccount Fee Rates
            • Get Subaccount Token Rewards
        • Engine Client
          • Executes
          • Queries
        • Indexer Client
          • Base Queries
          • Paginated Queries
        • Websocket
          • Executes
          • Queries
          • Subscriptions
        • Utilities
          • Contracts
          • Utils
      • API Reference
    • Vertex Python SDK
    • Vertex Rust SDK
    • Contracts
    • API/SDK Terms of Use
Powered by GitBook
On this page
  • Introduction to Vertex Yield Markets
  • How to Earn Interest (Lending)
  • Borrowing Assets
  • How to Borrow
  • How to Repay
Export as PDF
  1. Tutorials

Lend, Borrow & Repay

Learn about Vertex’s yield markets, how to earn interest, and how to borrow assets.

PreviousCross-Chain DepositsNextMargin Health

Last updated 5 months ago

Contents:

  • Introduction to Vertex Yield Markets

  • Earn Interest (Automatically)

  • Borrowing

  • Repay Borrows


Introduction to Vertex Yield Markets

Vertex users benefit from Vertex’s integrated money markets.

The money market was designed to help facilitate the borrowing and lending of spot assets between traders, which is especially helpful when taking leveraged spot positions.

You do NOT need to trade to make use of Vertex’s money markets. Instead, users can utilize them in the same way they would use other lending protocols such as Aave.

  • Borrow assets and withdraw them to use elsewhere.

  • Deposit assets and automatically earn interest.

All of this happens within your unified cross-margin account, meaning that you can borrow assets against your basket of open positions, pools, and deposits. You also automatically earn interest on the assets you deposit and use as margin.


How to Earn Interest (Lending)

Lending and earning interest is as simple as depositing an asset.

Earning interest happens automatically on Vertex. You do not need to perform any additional actions after depositing to earn interest.

Vertex’s money market is integrated -- meaning that the assets you deposit to use as margin can also be borrowed by other traders.

You can view current deposit APRs on the Earn Page of the Vertex app or on the Balances table in the Portfolio Page.

Borrowing Assets

This tutorial will cover how to borrow and withdraw assets for use elsewhere -- similar to how one would use lending apps like Aave.

As a Vertex user, you can borrow against your account’s unified margin composed of deposits, positions, and pools. You will pay a borrow APR for borrowing the asset.

If you are interested in borrowing to trade spot, please refer to the Margin Spot section in the Spot Trading tutorial.

How to Borrow

Step 1. Deposit.

  • Before borrowing, you need to deposit assets as collateral / margin.

  • Refer to the Quickstart or Cross-Chain Deposit Tutorials.

Step 2. Initiate Borrow.

  • Click on [Borrow] button on the asset you want to borrow in any Balances table.

Alternatively:

  • Click on any [Withdraw] button and turn on the ‘Enable Borrows’ toggle.

Step 3. Enter Borrow Details.

  • Select the asset you want to borrow.

  • Enter the amount.

  • Check the summary and account impact.

  • Click [Borrow and Withdraw] and sign transaction if you don’t have 1-Click Trading enabled.

How to Repay

This tutorial will focus on Vertex’s Repay feature. You can also repay borrows by trading the spot asset directly.

How to Repay:

  • On the Balances table, click the [Repay] button for the borrow you wish to repay.

  • A pop-up will open.

  • There are 2 options / methods to repay: convert or deposit (see details below).

  • Select your method and enter in the amount to repay.

  • Review the summary.

  • Click the [Repay] button.

Repay Convert:

This method allows you to swap (convert) one balance to pay off the borrow.

  • Repay asset (i.e., wETH) by convert quote (i.e., USDC).

  • Repay quote by converting any positive non-quote balance.

Please note that the convert feature uses the market price to estimates the total. If the trade happens at a better exchange rate, you will end up with a small positive balance in the asset you were borrowing.

🔄
Learn About Money Markets on Vertex
Page cover image