expand.network
  • Overview
  • Getting Started
  • 🔑How do I get my API Key?
  • 📑List of All Endpoints
  • ⚙️SDK
    • Overview
    • Getting Started
  • ⛓️INTEGRATIONS
    • ⚡Blockchains
      • EVM based blockchains
        • Ethereum
        • Binance Smart Chain
        • Avalanche - C
        • Avalanche - P
        • Avalanche - X
        • Polygon
        • Cronos
        • Arbitrum
        • Fantom
        • Optimism
        • Base
        • zkSync Era
        • Mantle
      • Non-EVM based chains
        • Tron
        • Solana
        • Near
        • Algorand
        • Aptos
        • Sui
        • Starknet
        • TON
        • Cosmos Hub
        • Osmosis
        • Stacks
        • Bitcoin
        • Stellar
          • Stellar RWA
        • XRP Ledger
          • XRP Ledger RWA
    • ⚡Bridges
      • Stargate
      • Stargate V2
      • Squid Router
      • Squid Router V2
      • Allbridge Classic
      • Allbridge Core
    • ⚡DEX & DEX Aggregators
      • Uniswap V2
      • Uniswap V3
      • Uniswap X
      • Sushiswap V2
      • PancakeSwap V2
      • PancakeSwap V3
      • Aerodrome
      • Camelot V3
      • Curve V2
      • Balancer V2
      • STON.fi
      • Trader Joe
      • Orca
      • Raydium
      • SDEX
      • Cetus
      • REF Finance
      • Liquidswap
      • Sologenic
      • Alex
      • 0x (Aggregator)
      • 1inch (Aggregator)
      • Kyberswap (Aggregator)
        • Kyberswap ( Limit Order Endpoints )
      • Jupiter (Aggregator)
    • ⚡Derivatives
      • dYdX V4
    • ⚡Fungible Tokens
      • ERC20
      • WETH
    • ⚡Lending Protocols
      • Aave V2
      • Aave V3
      • Compound V2
      • Compound V3
      • Morpho
    • ⚡Yield Aggregators
      • Yearn Finance V2
      • Harvest Finance
      • Pendle
    • ⚡Liquid Staking
      • Chorus One
      • Lido V2
      • Stader
      • Benqi
      • Jito
      • EigenLayer
    • ⚡Non Fungible Tokens
      • ERC721
      • ERC1155
      • Metaplex
    • ⚡Oracles
      • ChainLink
      • WinkLink
      • Pyth Network
      • RedStone
    • ⚡Stablecoins
      • EVM
    • ⚡Synthetics
      • Synthetix
    • ⚡Supported Wallets
      • MPC Wallets
        • DFNS
        • FORDEFI
        • FIREBLOCKS
        • CIRCLE
      • HD Wallets
        • PHANTOM
        • COINBASE
        • TON Wallet
      • Wallet Connect v2
  • How To
    • Execute a Local Swap
    • Execute a Cross Chain Swap
    • Use Limit Orders
    • Lend and Borrow
    • Provision Liquidity
      • Adding Liquidity
      • Removing liquidity
    • Yield Farm
    • Use Our Transaction Decoder
    • Submit an RFQ
    • Subscribe to Events
    • Stream Data (WebSocket)
      • Stream Transaction
      • Stream Trade
      • Stream Gas
      • Stream Ticker Price
    • Source Pricing
    • Track Memecoins
    • Manage Token Approvals
  • Use Cases
    • Trade Reconciliation
    • Portfolio Management
    • Trading Features
    • On-Chain Data: DEX Liquidity Pool Forensics
    • Transaction and Pool Analysis
  • Account Abstraction
    • Overview
      • User Endpoints
      • Paymaster Endpoint
      • Bundler Endpoint
    • ⚙️SDK - Overview
  • Additional Info
    • Error Messages
    • Client-Side Security Essentials
    • Compute Unit Costs
    • API Metadata
    • Audit Certificate
    • Brand Assets
    • FAQs
    • Quicknode Marketplace
      • DEX
      • Lending Protocols
  • ID's
    • Chain IDs
    • Bridge IDs
      • Internal Chain IDs for Bridges
    • DEX IDs
    • Lending Protocol IDs
    • Yield Aggregator ID
    • Liquid Staking IDs
    • Oracle IDs
    • Stablecoin IDs
    • Derivatives IDs
    • Synthetics IDs
  • Mapping
    • Blockchains
    • DEXs
      • Uniswap V2
      • Uniswap V3
      • Sushiswap
      • PancakeSwap
      • Curve
      • Balancer
    • Lending Protocols
      • Aave
      • Compound
  • Protocol Spender
    • Spender list
Powered by GitBook
On this page
  1. INTEGRATIONS

Lending Protocols

Provides connectivity across the various Lend and Borrow protocols available on the EVM and Non-EVM chains.

Following are the common functions implemented for all the Lend and Borrow protocols:-

Name
Type
Description

getpool

Read

Get the lend and borrow APY for the given pool from the given protocol.

getpools

Read

Get the list of supply and borrow APYs of the mentioned assets.

getuseraccountdata

Read

Get the repay, borrow, withdraw amount and health factor details for the given user.

getuserpositions

Read

Retrieves the lending and borrowing positions of a user, including details such as token balances and collateral usage status.

entermarketstatus

Read

Check whether the user is approved before deposting.

getassetinfo

Read

Get the details of a specified asset like liquidation and borrow collateral factor, index and the price feed address. Available for Compound V3.

getclaimedrewards

Read

Get the rewards claimed by the specified account on the protocol. Available for Compound V3.

getmaxamounts

Read

Get the max withdrawable amount and the max borrowable amount of the base token for a given asset in the protocol for the specified account. Available for Compound V3.

getgovernordata

Read

Get the protocol and governor-related data for a market. Available for Compound V3.

allow

Write

Trigger a transaction on Compound V3 to allow or disallow the specified address to withdraw or transfer on behalf of the sender’s address.

claimrewards

Write

Trigger a transaction on Compound V3 to allow an account to claim rewards from the protocol.

deposit

Write

Trigger the deposit transaction from the given protocol.

transfer

Write

Trigger a transaction on Compound V3 to transfer an asset within the protocol to another account.

bundleactions

Write

Trigger a transaction on Compound V3 to pass an array of action codes and data w.r.t the action codes that are executed, one by one, in a single transaction.

borrow

Write

Trigger the borrow transaction from the given protocol. Borrows the base token from specified market in case of Compound V3.

repay

Write

Trigger the repay transaction from the given protocol.

withdraw

Write

Trigger the withdrawal transaction from the given protocol.

migrate

Write

Trigger the migrate transaction for Aave v3.

setuseremode

Write

Trigger the E-Mode options for the user, on Aave v3.

exitisolationmode

Write

Trigger the exit of isolation mode options for the user, on Aave v3.

entermarket

Write

Trigger the approve transaction as Compound needs the user to approve before they can start deposit.

exitmarket

Write

Trigger the exit market transaction for Compound.

Every protocol requires a different set of parameters to perform the common operations. Please refer to the sub-sections for details.

Following is a sequence diagram for deposit() process in Compound:-

Following is a sequence diagram for deposit() process in Aave:-

Following is a sequence diagram for borrow() process:-

Following is a sequence diagram for repay() process:-

Following is a sequence diagram for withdraw() process:-

PreviousWETHNextAave V2

Last updated 11 months ago

⛓️
⚡
Sequence Diagram for deposit
Sequence Diagram for deposit
Sequence Diagram for borrow
Sequence Diagram for repay
Sequence Diagram for withdraw