hasSufficientBalance method

bool hasSufficientBalance(
  1. WalletState state,
  2. BigInt requiredAmount
)

Check if wallet has sufficient available balance

Implementation

bool hasSufficientBalance(WalletState state, BigInt requiredAmount) {
  return state.availableBalance >= requiredAmount;
}