fromWallet static method

RewardPoolDeposit fromWallet({
  1. required Wallet wallet,
  2. required List<StdCoin> amount,
})

Creates a RewardPoolDeposit from the given wallet, and deposit amount.

Implementation

static RewardPoolDeposit fromWallet({
  required Wallet wallet,
  required List<StdCoin> amount,
}) {
  return RewardPoolDeposit(
    depositAmount: amount,
    depositorDid: wallet.bech32Address,
  );
}