From 3cdb40b0cc3082e8e3e078b1ae0e3d596612ba03 Mon Sep 17 00:00:00 2001 From: Julian R Date: Mon, 23 Sep 2024 09:27:32 -0300 Subject: [PATCH] fix lint --- .../aerodrome/AerodromeStableCollateral.test.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/plugins/individual-collateral/aerodrome/AerodromeStableCollateral.test.ts b/test/plugins/individual-collateral/aerodrome/AerodromeStableCollateral.test.ts index 2727abd94..109191cdb 100644 --- a/test/plugins/individual-collateral/aerodrome/AerodromeStableCollateral.test.ts +++ b/test/plugins/individual-collateral/aerodrome/AerodromeStableCollateral.test.ts @@ -390,14 +390,12 @@ all.forEach((curr: AeroStablePoolEnumeration) => { const decimals1 = await feed1.decimals() const initData1 = await feed1.latestRoundData() - const avgPrice = (initData0.answer - .mul(bn(10).pow(18 - decimals0))) - .add(initData1.answer.mul(bn(10).pow(18 - decimals1))) - .div(2) - - return avgPrice - .mul(initRefPerTok) - .div(fp('1')) + const avgPrice = initData0.answer + .mul(bn(10).pow(18 - decimals0)) + .add(initData1.answer.mul(bn(10).pow(18 - decimals1))) + .div(2) + + return avgPrice.mul(initRefPerTok).div(fp('1')) } /*