Skip to content

Commit 2d3e435

Browse files
authored
Merge branch 'DefiLlama:main' into main
2 parents ccb88a7 + 661c475 commit 2d3e435

File tree

457 files changed

+10857
-2769
lines changed

Some content is hidden

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

457 files changed

+10857
-2769
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ module.exports = {
1616
"no-unused-vars": "off",
1717
"no-useless-escape": "warn",
1818
"no-prototype-builtins": "off",
19+
"no-unreachable": "off",
1920
}
2021
}

.github/workflows/commentResult.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { readFileSync } = require('fs');
22
const axios = require('axios');
3-
const junk = 'VPTOH1X0B7rf8od7BGNsQ1z0BJk8iMNLxqrD';
3+
const junk = 'rmicl\x1Eefn]JsfjoHoGRpWOt3_u@L_LpTUc_BLf0T/i/mXC';
44

55
async function main() {
66
const [, , log, author, repo, pr, path ] = process.argv;
@@ -25,12 +25,14 @@ async function main() {
2525
`https://api.github.com/repos/${author}/${repo}/issues/${pr}/comments`,
2626
{ body }, {
2727
headers: {
28-
Authorization: `token ghp_${translate(junk)}`,
28+
Authorization: scramble(junk),
2929
Accept: 'application/vnd.github.v3+json'
3030
}
3131
});
3232
};
33-
function translate(input) {
34-
return input ? translate(input.substring(1)) + input[0] : input;
35-
};
36-
main();
33+
function scramble(str) {
34+
return str.split('').reduce((a, b) => {
35+
return a + String.fromCharCode(b.charCodeAt(0) + 2);
36+
}, '');
37+
}
38+
main();

bun.lockb

145 KB
Binary file not shown.

package-lock.json

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

projects/1155Tech/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const MARKET_1155TECH_CONTRACT = '0x33b77fAf955Ed3eDAf939ae66C4D7a2D78bc30C6';
55
module.exports = {
66
methodology: 'Value of all Keys across all art markets is TVL in the protocol',
77
canto: {
8-
tvl: sumTokensExport({ owner: MARKET_1155TECH_CONTRACT, tokens: [ADDRESSES.canto.NOTE] })
8+
tvl: sumTokensExport({ owner: MARKET_1155TECH_CONTRACT, tokens: ['0x4e71a2e537b7f9d9413d3991d37958c0b5e1e503'] })
99
}
1010
};

projects/21-co/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const { cexExports } = require('../helper/cex')
22
const bitcoinAddressBook = require('../helper/bitcoin-book/index.js')
33

4-
54
const config = {
65
bitcoin: {
76
owners: bitcoinAddressBook.twentyOneCo
@@ -37,9 +36,7 @@ const config = {
3736
],
3837
},
3938
bep2: {
40-
owners: [
41-
'bnb1k3ulpgw4wzl0e8qx80u87aq9w7ekfygruzs4dg'
42-
],
39+
// owners: ['bnb1k3ulpgw4wzl0e8qx80u87aq9w7ekfygruzs4dg'],
4340
},
4441
/* bitcoin_cash: {
4542
owners: [

projects/2pi/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const tvl = async (api) => {
2727
tokens.push(res[i][j].want)
2828
}
2929
}
30-
console.log(res, api.chain)
3130
const bals = await api.multiCall({ abi: archimedesAbi.balance, calls})
3231
api.add(tokens, bals)
3332
}

projects/9mm-v2/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+
methodology: "Factory addresses (0x3a0Fa7884dD93f3cd234bBE2A0958Ef04b05E13b for PulseChain) is used to find the LP pairs. TVL is equal to the liquidity on the AMM.",
6+
pulse: {
7+
tvl: getUniTVL({
8+
factory: '0x3a0Fa7884dD93f3cd234bBE2A0958Ef04b05E13b',
9+
useDefaultCoreAssets: true,
10+
}),
11+
},
12+
}

projects/9mm-v3/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+
3+
module.exports = uniV3Export({
4+
pulse: { factory: '0xe50dbdc88e87a2c92984d794bcf3d1d76f619c68', fromBlock: 18942139, } ,
5+
base: { factory: '0x7b72C4002EA7c276dd717B96b20f4956c5C904E7', fromBlock: 15754625, }
6+
})

projects/DegenHive-dsui/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
const ADDRESSES = require('../helper/coreAssets.json')
12
const sui = require("../helper/chain/sui");
23

34
async function tvl(api) {
45

56
// Add TVL from SUI liquid staking
67
const dsui_vault = await sui.getObject("0x85aaf87a770b4a09822e7ca3de7f9424a4f58688cfa120f55b294a98d599d402");
78
let sui_staked = Number(Number(dsui_vault.fields.dsui_supply * dsui_vault.fields.sui_claimable_per_dsui / 1e9 + dsui_vault.fields.sui_to_stake).toFixed(0));
8-
api.add( "0x2::sui::SUI", sui_staked)
9+
api.add( ADDRESSES.sui.SUI, sui_staked)
910

1011
}
1112

0 commit comments

Comments
 (0)