Skip to content

Commit edb3612

Browse files
authored
Merge branch 'DefiLlama:main' into main
2 parents cd5a4f8 + dfeaf5f commit edb3612

File tree

158 files changed

+2140
-1056
lines changed

Some content is hidden

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

158 files changed

+2140
-1056
lines changed

package-lock.json

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

projects/MeowProtocol/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ Object.keys(config).forEach(chain => {
1919
return api.getBalances()
2020
}
2121
}
22-
})
22+
})
23+
24+
25+
module.exports.deadFrom = '2024-05-09'

projects/RandomReward/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const { sumTokensExport, nullAddress } = require("../helper/unwrapLPs");
2+
3+
const RR_ETHEREUM = '0x5ec1e43163b303b13fea20a892cba7e5568d8a8f';
4+
5+
module.exports = {
6+
methodology: `Total ETH held in the Random Reward contract, available for distribution.`,
7+
ethereum: { tvl: sumTokensExport({ owner: RR_ETHEREUM, tokens: [nullAddress]}), },
8+
};

projects/abacus/index.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const wildCreditABI = require('../wildcredit/abi.json');
2+
3+
const config = {
4+
arbitrum: { strategy: '0xB4E291f443f51D80186dd3EE0Af7F4a4E6e90804', veToken: '0xAAA343032aA79eE9a6897Dab03bef967c3289a06', token: '0xAAA6C1E32C55A7Bfa8066A6FAE9b42650F262418' },
5+
avax: { strategy: '0xedEd6a22bf714d4B19b7e7bC1CA0BCF88956751c', veToken: '0xAAAEa1fB9f3DE3F70E89f37B69Ab11B47eb9Ce6F', token: '0xaaab9d12a30504559b0c5a9a5977fee4a6081c6b' },
6+
bsc: { strategy: '0x37e46C030e0d843b39F692c9108E54945F4CCCf7', veToken: '0xfBBF371C9B0B994EebFcC977CEf603F7f31c070D', token: '0xF4C8E32EaDEC4BFe97E0F595AdD0f4450a863a11' },
7+
polygon: { strategy: '0x32dAc1B8AD93b53F549D6555e01c35dCC50b6229', veToken: '0xB419cE2ea99f356BaE0caC47282B9409E38200fa', token: '0xBFA35599c7AEbb0dAcE9b5aa3ca5f2a79624D8Eb' },
8+
mantle: { strategy: '0xCaAF554900E33ae5DBc66ae9f8ADc3049B7D31dB', veToken: '0xAAAEa1fB9f3DE3F70E89f37B69Ab11B47eb9Ce6F', token: '0xC1E0C8C30F251A07a894609616580ad2CEb547F2' },
9+
}
10+
11+
Object.keys(config).forEach(chain => {
12+
const { strategy, veToken, token, } = config[chain]
13+
module.exports[chain] = {
14+
tvl: async (api) => {
15+
const nftPositions = await api.call({ abi: 'erc20:balanceOf', target: veToken, params: strategy })
16+
const positionIds = await api.multiCall({
17+
abi: wildCreditABI.tokenOfOwnerByIndex, target: veToken,
18+
calls: Array(Number(nftPositions)).fill(0).map((_, index) => ({ params: [strategy, index] }))
19+
})
20+
const locked = await api.multiCall({ abi: 'function locked(uint256) view returns (uint256 amount, uint256 end)', calls: positionIds, target: veToken })
21+
locked.forEach(i => api.add(token, i.amount))
22+
}
23+
}
24+
})

projects/abracadabra/market.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
"0x1062eb452f8c7a94276437ec1f4aaca9b1495b72": "0x38EA452219524Bb87e18dE1C24D3bB59510BD783",
6868
"0x692887E8877C6Dd31593cda44c382DB5b289B684": "0xf35b31B941D94B249EaDED041DB1b05b7097fEb6",
6969
"0x406b89138782851d3a8C04C743b010CEb0374352": "0xdCD90C7f6324cfa40d7169ef80b12031770B4325",
70-
"0x85f60D3ea4E86Af43c9D4E9CC9095281fC25c405": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"
70+
"0x85f60D3ea4E86Af43c9D4E9CC9095281fC25c405": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
71+
"0x00380CB5858664078F2289180CC32F74440AC923": "0x5C5b196aBE0d54485975D1Ec29617D42D9198326"
7172
},
7273
"fantom": {
7374
"0xed745b045f9495b8bfc7b58eea8e0d0597884e12": "0x0DEC85e74A92c52b7F708c4B10207D9560CEFaf0",

projects/abstraDex/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
3+
24
const { getUniTVL } = require("../helper/unknownTokens");
35

46
const config = {
@@ -7,6 +9,7 @@ const config = {
79
zeta: '0x174c4C03DfeA09682728A5959A253bf1F7C7766F',
810
blast: '0xA7afB6163c331DDb0845843889D6f9544328846F',
911
cyeth: '0x174c4c03dfea09682728a5959a253bf1f7c7766f',
12+
cronos_zkevm: '0x76D1fC018676f8A973474C24F40A2e14e401b770',
1013
}
1114

1215
module.exports = {
@@ -15,4 +18,5 @@ module.exports = {
1518

1619
Object.keys(config).forEach(chain => {
1720
module.exports[chain] = { tvl: getUniTVL({ factory: config[chain], useDefaultCoreAssets: true, }), }
18-
})
21+
})
22+

projects/ainn-layer2/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const BTCOwners = [
55
"bc1q6dtp7ayaj5k2zv0z5ayhkdsvmtvdqgyaa9zs53",
66
"3H8cmLndtkBs7kiHByhHAddTzy8taUwYPt",
77
"bc1pepsapf26n8y2f4uftlmhy60ksghx6rqlxdcj4uacfqrkcg6pmncs52rzuu",
8-
"bc1qcmmkxfp2rawrp6yx55rez9jcqdnxtam8jhu2v2d9kz46upf948wq2usauv",
98
"bc1qu4ru2sph5jatscx5xuf0ttka36yvuql7hl5h4c",
109
"1JA46eiDpfx589wawn5RvtEXgwc518QfhZ",
1110
"bc1qaajdlp5yrj5f77wq2ndtfqnmsamvvxhpy95662zkzykn9qhvdgys580hcs",

projects/alexar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const chainMapping = {
1010
bsc: 'binance'
1111
};
1212

13-
const chainListSupply = ['juno', 'cosmos', 'comdex', 'carbon', 'crescent', 'injective', 'kujira', 'osmosis', 'persistence', 'stargaze', 'secret', 'stargaze', 'umee', 'evmos', 'terra2'];
13+
const chainListSupply = ['juno', 'cosmos', 'comdex', 'carbon', /*'crescent',*/ 'injective', 'kujira', 'osmosis', 'persistence', 'stargaze', 'secret', 'stargaze', 'umee', 'evmos', 'terra2'];
1414
const chainListTotal = ['avax', 'bsc', 'moonbeam', 'polygon', 'fantom', 'arbitrum', 'aurora', 'celo', 'kava', 'mantle', 'ethereum', 'base'];
1515

1616

projects/alphpad/index.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
const alephium = require('../helper/chain/alephium')
2+
3+
const Addresses = {
4+
apad: '27HxXZJBTPjhHXwoF1Ue8sLMcSxYdxefoN2U6d8TKmZsm',
5+
alphApadPool: 'vFpZ1DF93x1xGHoXM8rsDBFjpcoSsCi5ZEuA5NG5UJGX',
6+
alphUsdtPool: '2A5R8KZQ3rhKYrW7bAS4JTjY9FCFLJg6HjQpqSFZBqACX',
7+
vault: 'yzoCumd4Fpi959NSis9Nnyr28UkgyRYqrKBgYNAuYj3m'
8+
}
9+
10+
async function apadLocked() {
11+
const results = await alephium.contractMultiCall([
12+
{ group: 0, address: Addresses.vault, methodIndex: 34 },
13+
{ group: 0, address: Addresses.alphApadPool, methodIndex: 8 },
14+
{ group: 0, address: Addresses.alphUsdtPool, methodIndex: 8 },
15+
]);
16+
const apadLocked = results[0].returns[0].value;
17+
const apadInAlph = results[1].returns[0].value / results[1].returns[1].value;
18+
const alphInUsd = (results[2].returns[1].value * 10 ** 12) / results[2].returns[0].value;
19+
return ((apadLocked / 10 ** 18) * apadInAlph) * alphInUsd;
20+
}
21+
22+
async function staking(api) {
23+
const apadLockedValue = await apadLocked();
24+
api.addCGToken('tether', apadLockedValue)
25+
}
26+
27+
28+
module.exports = {
29+
timetravel: false,
30+
methodology: 'TVL locked in the APAD on Alephium',
31+
alephium: {
32+
tvl: () => ({}),
33+
staking
34+
}
35+
}

projects/anzen-v2/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const USDz = '0xa469b7ee9ee773642b3e93e842e5d9b5baa10067';
66
const Base_USDz = '0x04d5ddf5f3a8939889f11e97f8c4bb48317f1938';
77
const Blast_USDz = '0x52056ed29fe015f4ba2e3b079d10c0b87f46e8c6';
88
const Manta_USDz = '0x73d23f3778a90be8846e172354a115543df2a7e4';
9+
const Arbitrum_USDz = '0x5018609ab477cc502e170a5accf5312b86a4b94f';
910
const SPCT = '0xf30a29f1c540724fd8c5c4be1af604a6c6800d29'; // Secured collateral
1011

1112
const mainnet_tvl = async (api) => {
@@ -28,6 +29,11 @@ const manta_tvl = async (api) => {
2829
api.add(Manta_USDz, supply)
2930
}
3031

32+
const arbitrum_tvl = async (api) => {
33+
const supply = await api.call({ abi: 'erc20:totalSupply', target: Arbitrum_USDz })
34+
api.add(Arbitrum_USDz, supply)
35+
}
36+
3137
const collateral_assets = async (api) => {
3238
const supply = await api.call({ abi: 'erc20:totalSupply', target: SPCT })
3339
api.add(SPCT, supply)
@@ -47,4 +53,7 @@ module.exports = {
4753
manta: {
4854
tvl: manta_tvl,
4955
},
56+
arbitrum: {
57+
tvl: arbitrum_tvl,
58+
},
5059
};

0 commit comments

Comments
 (0)