@algofi/lend
Version:
The official JavaScript SDK for the Algofi Lending Protocol
21 lines (20 loc) • 1.44 kB
TypeScript
import { SuggestedParams } from "algosdk";
import { TransactionGroup } from "../utils";
/**
* Returns a transaction group object representing a remove collateral
* group transaction against the algofi protocol. 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 bank assets requested.
*
* @param sender - account address for the sender
* @param suggestedParams - suggested transaction params
* @param storageAccount - storage account address for sender
* @param amount - amount of bank asset collateral to remove from market
* @param bankAssetId - asset id of bank asset 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 group transaction
*/
export declare function prepareRemoveCollateralTransactions(sender: string, suggestedParams: SuggestedParams, storageAccount: string, amount: number, bankAssetId: number, managerAppId: number, marketAppId: number, supportedMarketAppIds: number[], supportedOracleAppIds: number[]): TransactionGroup;