Lending Protocols

Get Pool

The user will be able to get the lend and borrow APY for the given pool from the given protocol.

URL:

https://lend-borrow.quicknode.expand.network/lendborrow

Payload:

{
    "method": "en_getPool",
    "params": [
        {
            "lendborrowId": "1200",
            "asset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
        }
    ]
}

Get Pools

The user will be able to get the list of supply and borrow APYs of the mentioned assets.

URL:

https://lend-borrow.quicknode.expand.network/lendborrow

Payload:

{
    "method": "en_getPools",
    "params": [
        {
            "lendborrowId": "1200",
            "assets": [
                "0x6b175474e89094c44da98b954eedeac495271d0f",
                "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "0x5f98805A4E8be255a32880FDeC7F6728C6568bA0"
            ]
        }
    ]
}

Get User Account Data

The user will be able to get the repay, borrow, and withdraw amount details for the given user.

URL:

Payload:

Get Enter Market Status

The user will be able to check whether the user approved before depositing on compound.

URL:

Payload:

Borrow

The user will be able to trigger the borrow transaction from the given protocol.

URL:

Payload:

Deposit

The user will be able to trigger the deposit transaction from the given protocol.

URL:

Payload:

Repay

The user will be able to trigger the repay transaction from the given protocol.

URL:

Payload:

Withdraw

The user will be able to trigger the repay transaction from the given protocol.

URL:

Payload:

Enter Market

The user will be able to approve before they can start deposit on Compound.

URL:

Payload:

Exit Market

The user will be able to trigger the exit market transaction on Compound.

URL:

Payload:

Exit Isolation Mode

The user will be able to trigger the exit of isolation mode options on Aave v3.

URL:

Payload:

Set User E-mode

The user will be able to trigger the E-Mode options on Aave v3.

URL:

Payload:

Migrate

The user will be able to trigger a transaction to migrate their positions from Aave v2 to Aave v3.

URL:

Payload:

Last updated