Function prepareRewardStakedExchangeTransactions

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

    Returns

    object containing group transaction and escrow account

    Parameters

    • rewardsAggregator: RewardsAggregator

      rewards aggregator to exchange rewards using

    • senderAddr: string

      account address for the sender

    • period: number

      number from 1-4 indicate staking period

    • frAssetAmount: number | bigint

      amount of frAsset to send

    • params: SuggestedParams

      suggested params for the transactions with the fees overwritten

    Returns {
        escrow: Account;
        txns: Transaction[];
    }

    • escrow: Account
    • txns: Transaction[]

Generated using TypeDoc