Skip to content

Commit 258b2df

Browse files
feat: add prime staked (DefiLlama#8862)
1 parent e0f7289 commit 258b2df

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

projects/prime-staked/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const DEPOSIT_POOL = "0xa479582c8b64533102f6f528774c536e354b8d32";
2+
3+
async function tvl(_, _1, _2, { api }) {
4+
const config = await api.call({ abi: 'address:lrtConfig', target: DEPOSIT_POOL})
5+
const tokens= await api.call({ abi: 'address[]:getSupportedAssetList', target: config})
6+
const bals = await api.multiCall({ abi: 'function getTotalAssetDeposits(address) external view returns (uint256)', calls: tokens, target: DEPOSIT_POOL})
7+
api.addTokens(tokens, bals);
8+
return api.getBalances()
9+
}
10+
11+
module.exports = {
12+
methodology:
13+
"Returns the total assets owned by primeETH",
14+
start: 19128047,
15+
ethereum: {
16+
tvl,
17+
},
18+
};

0 commit comments

Comments
 (0)