Skip to content

Commit

Permalink
handle receive small amounts from dapp
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoncalves committed Sep 14, 2023
1 parent d0c11a6 commit e4b46a7
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,19 @@ export const ReviewTransactionContainer = ({
: '0'
const tokenUsd = convertToUSD(Number(value), tokenQuote)
const feeUsd = convertToUSD(Number(feeValue), feeQuote)
const smallAmount = !Number(tokenUsd) && !!Number(value)

return {
transaction: {
tokenValue: {
balance: value.toString(),
symbolType: 'icon',
symbol: symbol || feeSymbol,
symbolType: 'icon',
balance: value.toString(),
},
usdValue: {
balance: tokenUsd,
symbol: smallAmount ? '<' : '$',
symbolType: 'usd',
symbol: '$',
balance: smallAmount ? '0.01' : tokenUsd,
},
fee: {
tokenValue: feeValue,
Expand Down

0 comments on commit e4b46a7

Please sign in to comment.