Function prepareRewardImmediateExchangeTransactions

  • Returns a group transaction to immediately exchange frAsset for rewards.

    Returns

    Transaction[] exchange group transaction

    Parameters

    • rewardsAggregator: RewardsAggregator

      rewards aggregator to exchange rewards using

    • senderAddr: string

      account address for the sender

    • rewardAssetIds: number[]

      asset ids for the rewards given to the user

    • frAssetAmount: number | bigint

      amount of frAsset to send

    • params: SuggestedParams

      suggested params for the transactions with the fees overwritten

    Returns Transaction[]

Generated using TypeDoc