Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
julianmrodri committed Sep 23, 2024
1 parent 3dd2b9d commit 3cdb40b
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
}

/*
Expand Down

0 comments on commit 3cdb40b

Please sign in to comment.