Skip to content

Commit

Permalink
add project doubler (#10909)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaka527 authored Jul 7, 2024
1 parent cea8fae commit 78c44df
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions projects/doubler/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const WETH_CONTRACT = '0x82af49447d8a07e3bd95bd0d56f35241523fbab1';
const DOUBLER_CONTRACT = '0x56386f04111057a5D8DF8d719827038B716333F0';

async function tvl(api) {
const collateralBalance = await api.call({
abi: 'erc20:balanceOf',
target: WETH_CONTRACT,
params: [DOUBLER_CONTRACT],
});
api.add(WETH_CONTRACT, collateralBalance)
}

module.exports = {
arbitrum: {
tvl,
}
};

0 comments on commit 78c44df

Please sign in to comment.