Skip to content

Commit 37b23ac

Browse files
authored
Merge branch 'DefiLlama:main' into main
2 parents 5a80723 + ae4a536 commit 37b23ac

File tree

310 files changed

+4435
-1957
lines changed

Some content is hidden

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

310 files changed

+4435
-1957
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Also, don't hesitate to send a message on [our discord](https://discord.defillam
99
1010
1. PLEASE PLEASE **enable "Allow edits by maintainers" while putting up the PR.**
1111
2. Once your adapter has been merged, it takes time to show on the UI. No need to notify us on Discord.
12-
3. Sorry, We no longer accept fetch adapter for new projects (reason: https://github.com/DefiLlama/DefiLlama-Adapters/discussions/432), we prefer the tvl to computed from blockchain data, if you have trouble with creating a the adapter, please hop onto our discord, we are happy to assist you.
12+
3. Sorry, We no longer accept fetch adapter for new projects (reason: https://github.com/DefiLlama/DefiLlama-Adapters/discussions/432), we prefer the tvl to be computed from blockchain data, if you have trouble with creating a the adapter, please hop onto our discord, we are happy to assist you.
1313
4. **For updating listing info** It is a different repo, you can find your listing in this file: https://github.com/DefiLlama/defillama-server/blob/master/defi/src/protocols/data2.ts, you can edit it there and put up a PR
1414
5. Do not edit/push `package-lock.json` file as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CI
1515
6. No need to go to our discord and announce that you've created a PR, we monitor all PRs and will review it asap

package-lock.json

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

projects/0xLend/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
const { usdCompoundExports } = require("../helper/compound");
2-
module.exports = {
3-
kcc: usdCompoundExports("0x337d8719f70D514367aBe780F7c1eAd1c0113Bc7", "kcc", "0x309f1639018e8B272126C4B99af442AA25Dcd1F2")
4-
}
1+
const { compoundExports2 } = require('../helper/compound')
2+
3+
const config = {
4+
kcc: { comptroller: '0x337d8719f70D514367aBe780F7c1eAd1c0113Bc7', cether: '0x309f1639018e8b272126c4b99af442aa25dcd1f2' },
5+
era: { comptroller: '0x599bb9202EE2D2F95EDe9f88F622854f7ef2c371', cether: '0x9dae6c8c431ffc6d21b836e0d8d113e8365defb9' },
6+
blast: { comptroller: '0x1DD821C9E27fB2399DAb75AedB113c80C755DCa6', cether: '0xd9fcbd7b60966d013a28ff87925f75bb49e9b5ee' },
7+
}
8+
9+
Object.keys(config).forEach(chain => {
10+
module.exports[chain] = compoundExports2(config[chain])
11+
})
12+
13+
module.exports.kcc.borrowed = () => ({})

projects/BlastNYAN/index.js

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
1+
const ADDRESSES = require('../helper/coreAssets.json')
12
const { sumTokensExport } = require('../helper/unknownTokens')
2-
const WETH = '0x4300000000000000000000000000000000000004'
3+
const WETH = ADDRESSES.blast.WETH
34
const BLNYAN = '0x9aAC39ca368D27bf03887CCe32f28b44F466072F'
45
const BLNYAN_WETH_SLP = '0x0E9309f32881899F6D4aC2711c6E21367A84CA26'
56

67
const stakingBLNYANContract = '0xA76D6dc805d0EbEcb3787c781ce3A18feEF020cb'
78
const feeDistro = '0xBC8a7a845cC7A8246EB34856Afe6f1a3d62BD9C6'
8-
const stakeLpEarnWeth = '0x0a3A757BE3049C2d9444d025E98D37b2a81a0a32'
9+
const stakeLpEarnWeth = '0xF63Ef9F4320f9d16731a40ff1f58a966ee086806'
910
const button = '0x00066Ed6c2F7d6CC6e66c678BaEE2C8683B632e6'
11+
const lockPoints = '0x46B3a66ef4fAC801B455884035eF2862F01e6158'
1012
const opts = { useDefaultCoreAssets: true, lps: [BLNYAN_WETH_SLP] }
1113

1214
module.exports = {
1315
misrepresentedTokens: true,
1416
blast: {
15-
tvl: sumTokensExport({ owners: [stakeLpEarnWeth, feeDistro, button], tokens: [WETH], ...opts, }),
16-
pool2: sumTokensExport({ ...opts, owners: [stakeLpEarnWeth], tokens: [BLNYAN_WETH_SLP], }),
17-
staking: sumTokensExport({ owners: [stakingBLNYANContract], tokens: [BLNYAN], ...opts, }),
17+
tvl: sumTokensExport({
18+
owners: [lockPoints, feeDistro, button],
19+
tokens: [WETH],
20+
...opts,
21+
}),
22+
pool2: sumTokensExport({
23+
...opts,
24+
owners: [stakeLpEarnWeth],
25+
tokens: [BLNYAN_WETH_SLP],
26+
}),
27+
staking: sumTokensExport({
28+
owners: [stakingBLNYANContract, lockPoints],
29+
tokens: [BLNYAN],
30+
...opts,
31+
}),
1832
},
1933
methodology:
2034
'Counts as TVL the ETH only. blNYAN and LP assets deposited are counted as Pool2 and staking Respectively',

projects/Blaster/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const { uniV3Export } = require("../helper/uniswapV3");
2+
const { mergeExports } = require('../helper/utils')
3+
4+
module.exports = mergeExports([
5+
uniV3Export({ blast: { factory: "0x9792FaeA53Af241bCE57C7C8D6622d5DaAD0D4Fc", fromBlock: 693561, }, }),
6+
])

projects/HyperBlast/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const { getUniTVL } = require('../helper/unknownTokens')
2+
3+
module.exports = {
4+
misrepresentedTokens: true,
5+
blast: {
6+
tvl: getUniTVL({
7+
factory: '0xD97fFc2041a8aB8f6bc4aeE7eE8ECA485381D088',
8+
useDefaultCoreAssets: true,
9+
fetchBalances: true,
10+
}),
11+
},
12+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const { sumTokensExport } = require("../helper/unwrapLPs");
2+
3+
const MANTA = '0x95CeF13441Be50d20cA4558CC0a27B601aC544E5';
4+
const STONE = '0xEc901DA9c68E90798BbBb74c11406A32A70652C3';
5+
const TIME_LOCK_CONTRACT = '0x8Bb6CaE3f1CADA07Dd14bA951e02886ea6bBA183';
6+
7+
module.exports = {
8+
methodology: 'counts the number of (MANTA OR STONE) in the time lock contract.',
9+
start: 1497066,
10+
manta: {
11+
tvl: sumTokensExport({ owner: TIME_LOCK_CONTRACT, tokens: [MANTA, STONE] }),
12+
}
13+
};

projects/MantisSwap/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const { sumTokens2 } = require("../helper/unwrapLPs");
33
const config = {
44
polygon: { vaults: ['0x62Ba5e1AB1fa304687f132f67E35bFC5247166aD'] },
55
polygon_zkevm: { vaults: ['0x12d41b6DF938C739F00c392575e3FD9292d98215'] },
6+
mode: { vaults: ['0x4af97f73343b226C5a5872dCd2d1c4944BDb3E77'] },
67
}
78

89
const MAX_LP_TOKENS = 3

projects/Produs/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const { getUniTVL, } = require('../helper/unknownTokens')
2+
3+
module.exports = {
4+
misrepresentedTokens: true,
5+
bsc: {
6+
tvl: getUniTVL({ factory: '0x8ae5527706446943cBA8589313EC217a4a7288a4', useDefaultCoreAssets: true, fetchBalances: true, }),
7+
},
8+
};

projects/VeryLongSwap/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const { uniV3Export } = require('../helper/uniswapV3')
2+
const factory = '0x287fAE8c400603029c27Af0451126b9581B6fcD4'
3+
4+
module.exports = uniV3Export({
5+
astrzk: { factory: factory, fromBlock: 156301, },
6+
});
7+

0 commit comments

Comments
 (0)