Skip to content

Commit fc17aa1

Browse files
authored
Merge branch 'DefiLlama:main' into main
2 parents ca65925 + 69266ec commit fc17aa1

File tree

137 files changed

+6430
-713
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+6430
-713
lines changed

package-lock.json

Lines changed: 194 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/DigiFT/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,16 @@ module.exports = {
4747
const tokenAPI = new sdk.ChainApi({ chain: 'polygon', timestamp: api.timestamp, });
4848
const tokens = await getTokenList(tokenAPI, api.chainId)
4949
const tokenSupplies = await api.multiCall({ abi: 'uint256:totalSupply', calls: tokens })
50-
api.addTokens(tokens, tokenSupplies)
50+
await api.addTokens(tokens, tokenSupplies)
51+
return api.getBalances()
52+
}
53+
},
54+
plume_mainnet: {
55+
tvl: async (api) => {
56+
const tokenAPI = new sdk.ChainApi({ chain: 'polygon', timestamp: api.timestamp, });
57+
const tokens = await getTokenList(tokenAPI, api.chainId)
58+
const tokenSupplies = await api.multiCall({ abi: 'uint256:totalSupply', calls: tokens })
59+
await api.addTokens(tokens, tokenSupplies)
5160
return api.getBalances()
5261
}
5362
}

projects/HyperBloom/index.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const { getConfig } = require('../helper/cache')
2+
const { yieldHelperPair } = require('../helper/unknownTokens')
3+
4+
const chain = "hyperliquid";
5+
6+
module.exports = {
7+
misrepresentedTokens: true,
8+
};
9+
10+
module.exports[chain] = {
11+
tvl: async () => {
12+
const pools = await getConfig('hyperbloom', 'https://raw.githubusercontent.com/hyperbloomxyz/vaults.config/refs/heads/master/hyperliquid.json');
13+
14+
const beefyPools = pools.filter(p => p.platformId === 'beefy');
15+
16+
const vaults = beefyPools.map(p => p.earnedTokenAddress).filter(Boolean);
17+
18+
return yieldHelperPair({ vaults, chain, useDefaultCoreAssets: true });
19+
}
20+
}

projects/PBG/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const { sumTokens2 } = require("../helper/chain/cardano");
2+
3+
const NON_CUSTODIAL_VAULT_ADDRESS = 'addr1wypmdhdv6cxvr67ea4qyr5xznrzvday2kc0qflddfkg4e7scahru0'
4+
const CONTRACT_ADDRESSES = [NON_CUSTODIAL_VAULT_ADDRESS]
5+
6+
async function tvl() {
7+
const assetsLocked = await sumTokens2({
8+
owners: CONTRACT_ADDRESSES
9+
})
10+
return assetsLocked
11+
}
12+
13+
module.exports = {
14+
timetravel: false,
15+
cardano: {
16+
tvl,
17+
}
18+
};

0 commit comments

Comments
 (0)