We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0f7289 commit 258b2dfCopy full SHA for 258b2df
projects/prime-staked/index.js
@@ -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