Skip to content

Commit ab0a856

Browse files
committed
fix: use USD rate when building LocalFiat for external wallet funds
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent bdd3404 commit ab0a856

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/flipcash/shared/tokens/src/main/kotlin/BuySellSwapTokenViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ class BuySellSwapTokenViewModel @Inject constructor(
434434
}
435435

436436
is TokenSwapPurpose.FundWithWallet -> {
437-
val rate = exchange.entryRate
437+
val rate = exchange.rateForUsd()
438438
// funding through external wallet
439439
val nativeAmount = Fiat(data.amountData.amount, rate.currency)
440440
val underlyingAmount = nativeAmount.convertingToUsdIfNeeded(rate)

0 commit comments

Comments
 (0)