Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
trunghai95 committed Mar 27, 2024
1 parent a972620 commit d11f33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func RecordOrder(networkID, tokenOriginNetwork uint32, tokenAddress common.Addre
}

// This is inflated amount, e.g.: 1 ETH is stored as 1000000000000000000
floatAmount, err := strconv.ParseFloat(amount.String(), 10) //nolint:gomnd
floatAmount, err := strconv.ParseFloat(amount.String(), 64) //nolint:gomnd
if err != nil {
log.Warnf("cannot convert [%v] to float", amount.String())
}
Expand Down

0 comments on commit d11f33e

Please sign in to comment.