@algofi/lend
Version:
The official JavaScript SDK for the Algofi Lending Protocol
22 lines (21 loc) • 1.42 kB
TypeScript
import { SuggestedParams } from "algosdk";
import { TransactionGroup } from "../utils";
/**
*
* Returns a TransactionGroup object representing an add collateral group
* transaction against the algofi protocol. Sender adds bank assets to collateral by sending
* them to the account address of the market application that generates the bank assets.
*
* @param sender - account address for the sender
* @param suggestedParams - suggested transaction params
* @param storageAccount - storage account address for the sender
* @param amount - amount of bank asset to add to collateral
* @param bankAssetId - asset ids of the bank asset
* @param managerAppId - id of the manager application
* @param marketAppId - id of the market application for the bank asset
* @param marketAddress - account address for the market application
* @param supportedMarketAppIds - list of supported market application ids
* @param supportedOracleAppIds - list of supported oracle application ids
* @returns TransactionGroup object representing an add collateral group transaction
*/
export declare function prepareAddCollateralTransactions(sender: string, suggestedParams: SuggestedParams, storageAccount: string, amount: number, bankAssetId: number, managerAppId: number, marketAppId: number, marketAddress: string, supportedMarketAppIds: number[], supportedOracleAppIds: number[]): TransactionGroup;