Skip to content

Commit 621f71e

Browse files
committed
Fix CalculateUsdMarketValue for non core mint currencies
1 parent 81ce655 commit 621f71e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/code/currency/usd_market_value.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ func CalculateUsdMarketValue(ctx context.Context, data code_data.Provider, mint
3232

3333
quarksPerUnit := common.GetMintQuarksPerUnit(mint)
3434
units := float64(quarks) / float64(quarksPerUnit)
35-
marketValue := usdExchangeRecord.Rate * units
35+
marketValue := rate * units
3636
return marketValue, rate, nil
3737
}

0 commit comments

Comments
 (0)