Using lending pools via RFQ API
This page gives an overview on how to provide quotes that utilize liquidity in Liquorice lending pools
API details
{
...,
baseTokenData: {
/// Token address
address: string,
/// Total amount of baseToken to take from effectiveTrader,
/// with up to 18 decimal places
amount: string,
/// Portion of the amount to transfer to the recipieint
toRecipient?: string,
/// Portion of the amount to repay token debt with
toRepay?: string,
/// Portion of the amount to supply as collateral
toSupply?: string,
},
/// Data of token to be received by trader
quoteTokenData: {
/// Token address
address: string,
/// Total amount of quoteToken to take from signer,
/// with up to 18 decimal places
amount: string,
/// Minimum amount of quoteToken to take for partial fills,
minAmount: string,
/// Portion of the amount to be transferred from `signer`,
toTrader?: string,
/// Portion of the amount to be filled by withdrawing collateral
toWithdraw?: string,
/// Portion of the amount to be filled by borrowing
toBorrow?: string,
},
}Lending Parameters Explained
Last updated