Skip to content

Commit

Permalink
origin fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slasher125 committed Jan 17, 2024
1 parent 0f61b4a commit 27bfbe4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/adaptors/origin-ether/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ const poolsFunction = async () => {
);
const ethPrice = priceData.coins['coingecko:ethereum'].price;

const tvlUsd =
BigNumber.from(totalValueEth)
.mul(ethers.utils.parseEther(ethPrice.toString()))
.div(BigNumber.from('10').pow(36 - 8))
.toNumber() /
10 ** 8;
const tvlUsd = (totalValueEth / 1e18) * ethPrice;

const oethData = {
pool: '0x856c4efb76c1d1ae02e20ceb03a2a6a08b0b8dc3',
Expand Down

0 comments on commit 27bfbe4

Please sign in to comment.