UNPKG

@algofi/lend

Version:

The official JavaScript SDK for the Algofi Lending Protocol

19 lines (18 loc) 1.2 kB
import { SuggestedParams } from "algosdk"; import { TransactionGroup } from "../utils"; /** * Returns a :class:`TransactionGroup` object representing a claim rewards * underlying group transaction against the algofi protocol. The sender requests * to claim rewards from the manager acount. 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 managerAppId - id of the manager application * @param supportedMarketAppIds - list of supported market application ids * @param supportedOracleAppIds - list of supported oracle application ids * @param foreignAssets - list of rewards assets in the staking contract * @returns transaction group object representing a claim rewards transaction */ export declare function prepareClaimRewardsTransactions(sender: string, suggestedParams: SuggestedParams, storageAccount: string, managerAppId: number, supportedMarketAppIds: number[], supportedOracleAppIds: number[], foreignAssets: number[]): TransactionGroup;