Skip to content

Commit

Permalink
MOB-2135 - Fixed sufficient balance calculations on eth send tx confi…
Browse files Browse the repository at this point in the history
…rmation (#619)
  • Loading branch information
Oleg-Pecheneg authored Jul 30, 2024
1 parent 9c446c8 commit 57a7d76
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ private extension PaymentTransactionRequestConfirmationView {

let cost = configuration.cost
let quantity = cost.quantity
let gasFee = cost.gasPrice
let gasFee = cost.gasFee
let price = Double(quantity + gasFee).ethValue
let isEnoughMoney = tokenDescription.balance >= price

balanceValueLabel?.setAttributedTextWith(text: String(tokenDescription.balanceUsd),
balanceValueLabel?.setAttributedTextWith(text: tokenDescription.formattedBalanceUSD,
font: .currentFont(withSize: 16, weight: .medium),
textColor: isEnoughMoney ? .foregroundDefault : .foregroundWarning,
alignment: .right)
Expand Down

0 comments on commit 57a7d76

Please sign in to comment.