Skip to content

Commit

Permalink
Merge pull request #1585 from AmbireTech/fix/displaying-cashback-as-fee
Browse files Browse the repository at this point in the history
Fix: displaying cashback instead of fee
  • Loading branch information
stojnovsky authored Apr 5, 2024
2 parents e016757 + 63f15ff commit 8199428
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const Details = ({
<ToolTip
label={`
You paid: $ ${formatFloatTokenAmount(
bundle.feeInUSDPerGas * bundle.gasLimit + cashback,
bundle.feeInUSDPerGas * bundle.gasLimit - cashback,
true,
6
)}
Expand All @@ -80,7 +80,14 @@ const Details = ({
}
`}
>
<DetailsItem title="Fee" text={`$ ${formatFloatTokenAmount(cashback, true, 6)}`} />
<DetailsItem
title="Fee"
text={`$ ${formatFloatTokenAmount(
bundle.feeInUSDPerGas * bundle.gasLimit - cashback,
true,
6
)}`}
/>
</ToolTip>
)}

Expand Down

0 comments on commit 8199428

Please sign in to comment.