Skip to content

Commit 40ad41b

Browse files
committed
Increase quark mismatch threshold
1 parent 0c64775 commit 40ad41b

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
@@ -113,7 +113,7 @@ func ValidateClientExchangeData(ctx context.Context, data code_data.Provider, pr
113113
quarksPerUnit := common.GetMintQuarksPerUnit(mint)
114114
unitsOfMint := proto.NativeAmount / foundRate
115115
expectedQuarks := int64(unitsOfMint * float64(quarksPerUnit))
116-
if math.Abs(float64(expectedQuarks-int64(proto.Quarks))) > 100 {
116+
if math.Abs(float64(expectedQuarks-int64(proto.Quarks))) > 1000 {
117117
return false, "payment native amount and quark value mismatch", nil
118118
}
119119

0 commit comments

Comments
 (0)