Skip to content

Commit 663f3bd

Browse files
authored
Round USDC fallback purchase message to nearest $1 (#85)
1 parent 213d06d commit 663f3bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/code/async/geyser/external_deposit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ func getPurchasesFromSwap(
547547

548548
rawUsdPurchase := &transactionpb.ExchangeDataWithoutRate{
549549
Currency: "usd",
550-
NativeAmount: usdAmount,
550+
NativeAmount: math.Round(usdAmount), // Round to nearest $1 since we don't support decimals in app yet
551551
}
552552

553553
// There is no memo for a blockchain message

0 commit comments

Comments
 (0)