Skip to content

Commit 20c7a1e

Browse files
committed
Loosen validation threshold on exchange rate in validateCurrencyLaunchpadClientExchangeData
1 parent 2945fc6 commit 20c7a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/code/currency/validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func validateCurrencyLaunchpadClientExchangeData(ctx context.Context, data code_
147147
otherMintUnits := float64(proto.Quarks) / float64(otherMintQuarksPerUnit)
148148
expectedRate := potentialNativeAmount / otherMintUnits
149149
percentDiff := math.Abs(proto.ExchangeRate-expectedRate) / expectedRate
150-
if percentDiff > 0.0001 {
150+
if percentDiff > 0.001 {
151151
log.WithField("potential_exchange_rate", expectedRate).Info("exchange rate is outside error threshold")
152152
continue
153153
}

0 commit comments

Comments
 (0)