@algofi/lend
Version:
The official JavaScript SDK for the Algofi Lending Protocol
22 lines (21 loc) • 1.55 kB
TypeScript
import { SuggestedParams } from "algosdk";
import { TransactionGroup } from "../utils";
/**
* Returns a transaction group object representing a remove collateral
* underlying group transaction against the algofi protocol. Functionally equivalent to
* remove collateral + burn. The sender requests to remove collateral from a market acount
* after which the application determines if the removal puts the sender's health ratio
* below 1. If not, the account sends back the user the amount of asset underlying their posted collateral.
*
* @param sender - account address for the sender
* @param suggestedParams - suggested transaction params
* @param storageAccount - storage account address for sender
* @param amount - amount of collateral to remove from the market
* @param assetId - asset id of the asset underlying the collateral
* @param managerAppId - id of the manager application
* @param marketAppId - id of the market application of the collateral
* @param supportedMarketAppIds - list of supported market application ids
* @param supportedOracleAppIds - list of supported oracle application ids
* @returns transaction group object representing a remove collateral underlying group transaction
*/
export declare function prepareRemoveCollateralUnderlyingTransactions(sender: string, suggestedParams: SuggestedParams, storageAccount: string, amount: number, assetId: number, managerAppId: number, marketAppId: number, supportedMarketAppIds: number[], supportedOracleAppIds: number[]): TransactionGroup;