fix approxeq
This commit is contained in:
parent
98a65229c7
commit
60673eb312
|
@ -204,5 +204,5 @@ const tokenMaxFallback = {
|
|||
amountWithBorrowIsLimited: false,
|
||||
}
|
||||
|
||||
const approxeq = (v1: number, v2: number, epsilon = 1) =>
|
||||
const approxeq = (v1: number, v2: number, epsilon = 0.5) =>
|
||||
Math.abs(v1 - v2) <= epsilon
|
||||
|
|
Loading…
Reference in New Issue