Skip to content

Commit

Permalink
Update Juice Finance (#10205)
Browse files Browse the repository at this point in the history
* feat: add new managers

* feat: add staked LP to tvl
  • Loading branch information
hoomp3 authored May 14, 2024
1 parent 225afe3 commit 9b4ca8a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions projects/juice-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ const wethCollateralManagers = [
].map((a) => [ADDRESSES.blast.WETH, a]);

async function tvl(api) {

const thrusterV2LPs = [['0x4E4B4A3111d128628c427E78a2abAd1635fE6542', '0x4Ca392f74A4C86F5E521f1d8E915b36ed425B331']];
const stakedLPCalls = thrusterV2LPs.map(lp => ({ params: [lp[1], lp[0]] }));
const v2Bals = await api.multiCall({ abi: 'function staked(address, address) view returns (uint256)', calls: stakedLPCalls, target: '0xc3ecadb7a5fab07c72af6bcfbd588b7818c4a40e' });
const v2Tokens = thrusterV2LPs.map(lp => lp[0]);
api.add(v2Tokens, v2Bals);

const tokens = await api.multiCall({
abi: {
inputs: [],
Expand Down

0 comments on commit 9b4ca8a

Please sign in to comment.