expand.network
Search
K

Lend and Borrow

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, and withdraw amount details for the given user.
deposit
Write
Trigger the deposit transaction from the given protocol.
borrow
Write
Trigger the borrow transaction from the given protocol.
liquidate
Write
Trigger the liquidate transaction from the given protocol.
repay
Write
Trigger the repay transaction from the given protocol.
withdraw
Write
Trigger the withdrawal transaction from the given protocol.
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:-
Sequence Diagram for deposit
Following is a sequence diagram for deposit() process in Aave:-
Sequence Diagram for deposit
Following is a sequence diagram for borrow() process:-
Sequence Diagram for borrow
Following is a sequence diagram for liquidate() process:-
Sequence Diagram for liquidate
Following is a sequence diagram for repay() process:-
Sequence Diagram for repay
Following is a sequence diagram for withdraw() process:-
Sequence Diagram for withdraw