From 9016a891dabf3305329bd5295546b5ae69cc150a Mon Sep 17 00:00:00 2001 From: Guillaume Hivert Date: Tue, 8 Aug 2023 16:35:19 +0200 Subject: [PATCH] fix(BN): refactor parameters name --- tests/helpers/bn.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/helpers/bn.ts b/tests/helpers/bn.ts index 2f32a87..194b81f 100644 --- a/tests/helpers/bn.ts +++ b/tests/helpers/bn.ts @@ -2,8 +2,8 @@ import { BigNumber, BigNumberish } from "ethers"; const APPROX_EQUAL_THRESHOLD = 10; -export const approxEqual = (value: BigNumberish, equality: BigNumberish) => { - const a = BigNumber.from(value); - const b = BigNumber.from(equality); +export const approxEqual = (a: BigNumberish, b: BigNumberish) => { + a = BigNumber.from(a); + b = BigNumber.from(b); return a.sub(b).abs().lte(APPROX_EQUAL_THRESHOLD); };