Skip to content

Commit

Permalink
fix cbeth tvl
Browse files Browse the repository at this point in the history
  • Loading branch information
0xngmi committed Oct 30, 2023
1 parent 2033350 commit 1c74a49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/adaptors/coinbase-wrapped-staked-eth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ const token = '0xBe9895146f7AF43049ca1c1AE358B0541Ea49704';
const weth = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2';

const getApy = async () => {
const tvl =
(await sdk.api.erc20.totalSupply({ target: token })).output / 1e18;
const tvl = (await axios.get("https://api.exchange.coinbase.com/wrapped-assets/CBETH")).data.circulating_supply

const timestamp1dayAgo = Math.floor(Date.now() / 1000) - 86400;
const duration = 1; // day
Expand Down

0 comments on commit 1c74a49

Please sign in to comment.