Skip to content

Commit d2ebaed

Browse files
apexearthg1nt0ki
andauthored
Origin ARM: Add TVL Adapter (DefiLlama#12037)
Co-authored-by: g1nt0ki <[email protected]>
1 parent f5ef323 commit d2ebaed

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

projects/originarm/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const ADDRESSES = require('../helper/coreAssets.json')
2+
3+
module.exports = {
4+
ethereum: {
5+
tvl: async (api) => {
6+
const originLidoArm = "0x85b78aca6deae198fbf201c82daf6ca21942acc6";
7+
const outstandingSteth = await api.call({abi: 'uint256:lidoWithdrawalQueueAmount', target: originLidoArm })
8+
api.add(ADDRESSES.ethereum.STETH, outstandingSteth)
9+
return api.sumTokens({ owner: originLidoArm, tokens: [ADDRESSES.ethereum.WETH, ADDRESSES.ethereum.STETH] })
10+
},
11+
},
12+
};

0 commit comments

Comments
 (0)