@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 transaction group object representing a repay borrow
* group transaction against the algofi protocol. The sender repays assets to the
* market of the borrow asset after which the market application decreases the
* outstanding borrow amount for the sender.
*
* @param sender - account address for sender
* @param suggestedParams - suggested transaction params
* @param storageAccount - storage account address for sender
* @param amount - amoutn of borrow asset to repay
* @param managerAppId - id of the manager application
* @param marketAppId - id of the market application of the borrow 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
* @param assetId - asset id of the borrow asset, defaults to algo
* @returns transaction group object representing a repay borrow group transaction
*/
export declare function prepareRepayBorrowTransactions(sender: string, suggestedParams: SuggestedParams, storageAccount: string, amount: number, managerAppId: number, marketAppId: number, marketAddress: string, supportedMarketAppIds: number[], supportedOracleAppIds: number[], assetId?: number): TransactionGroup;