Skip to content

Commit 07778a7

Browse files
authored
Merge branch 'DefiLlama:main' into main
2 parents b19ade2 + 19d66e2 commit 07778a7

File tree

946 files changed

+14917
-4068
lines changed

Some content is hidden

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

946 files changed

+14917
-4068
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: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"useTokenLabels": "node utils/scripts/useTokenLabels.js",
1717
"biggest-files": "find ./projects -name '*.js' -not -path './projects/helper/*' -not -path './projects/curve/*' -not -path './projects/sigmao/*' -exec du -sh {} \\; | sort -rh | head -n 100",
1818
"check-bitcoin-duplicates": "node utils/scripts/checkBTCDupsv2.js",
19+
"string-timestamp": "node utils/scripts/stringTimestamp.js",
1920
"postinstall": "echo 'run \"npm update @defillama/sdk\" if you want lastest sdk changes' "
2021
},
2122
"author": "",

projects/0x0dex/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ const { sumTokensExport, nullAddress } = require('../helper/unwrapLPs');
22
const ETH_POOL_ADDRESS = "0x3d18AD735f949fEbD59BBfcB5864ee0157607616";
33

44
module.exports = {
5-
start: 1685386800, // 19/05/2023 @ 07:00pm UTC
5+
start: '2023-05-29', // 19/05/2023 @ 07:00pm UTC
66
ethereum: { tvl: sumTokensExport({ owner: ETH_POOL_ADDRESS, tokens: [nullAddress]}) },
77
};

projects/0x_nodes/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = {
5050
],
5151
methodology: ` Counts the number of wrapped native tokens in all yield strategies across all the chains the protocol is deployed on
5252
+ staking counts the number of BIOS tokens staked in the kernels across all the chains (PFA: Protocol Fee Accruals by staking assets)`,
53-
start: 1633046400, // Friday 1. October 2021 00:00:00 GMT
53+
start: '2021-10-01', // Friday 1. October 2021 00:00:00 GMT
5454
...tvlExports,
5555
deadFrom: 1659527340,
5656
}

projects/0xacid/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const ACID_STAKING = "0x00a842038a674616f6a97e62f80111a536778282";
44
const ACID_TOKEN = "0x29C1EA5ED7af53094b1a79eF60d20641987c867e";
55

66
module.exports = {
7-
start: 1678417200,
7+
start: '2023-03-10',
88
arbitrum: {
99
tvl: () => ({}),
1010
staking: stakingUnknownPricedLP(ACID_STAKING, ACID_TOKEN, "arbitrum", "0x73474183a94956cd304c6c5a504923d8150bd9ce")

projects/1155Tech/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ const MARKET_1155TECH_CONTRACT = '0x33b77fAf955Ed3eDAf939ae66C4D7a2D78bc30C6';
44

55
module.exports = {
66
methodology: 'Value of all Keys across all art markets is TVL in the protocol',
7-
start: 7280880,
87
canto: {
9-
tvl: sumTokensExport({ owner: MARKET_1155TECH_CONTRACT, tokens: [ADDRESSES.canto.NOTE] })
8+
tvl: sumTokensExport({ owner: MARKET_1155TECH_CONTRACT, tokens: ['0x4e71a2e537b7f9d9413d3991d37958c0b5e1e503'] })
109
}
1110
};

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: [

0 commit comments

Comments
 (0)