total property

Amount get total

Implementation

Amount get total {
  if (token.isERC20) {
    return fee ?? Amount.zero;
  }
  return amount + (fee ?? Amount.zero);
}