Skip to content

Commit 08239f8

Browse files
authored
Use string timestamps for start fields (DefiLlama#12453)
1 parent 80942a7 commit 08239f8

File tree

372 files changed

+359
-393
lines changed

Some content is hidden

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

372 files changed

+359
-393
lines changed

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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ 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: {
98
tvl: sumTokensExport({ owner: MARKET_1155TECH_CONTRACT, tokens: [ADDRESSES.canto.NOTE] })
109
}

projects/3xcalibur/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { uniTvlExport } = require("../helper/calculateUniTvl.js");
22

33
module.exports = {
44
misrepresentedTokens: true,
5-
start: 1667689200,
5+
start: '2022-11-06',
66
arbitrum: {
77
tvl: uniTvlExport("0xD158bd9E8b6efd3ca76830B66715Aa2b7Bad2218", "arbitrum", undefined, undefined, { hasStablePools: true, useDefaultCoreAssets: true, }),
88
},

projects/88mph/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,6 @@ tvlExports.ethereum.staking = staking("0x1702F18c1173b791900F81EbaE59B908Da8F689
135135

136136
module.exports = {
137137
methodology: `Using the addresses for the fixed interest rate bonds we are able to find the underlying tokens held in each address. Once we have the underlying token we then get the balances of each of the tokens. For the CRV tokens used "CRV:STETH" for example, the address is replaced with the address of one of the tokens. In the example at hand the address is replaced with the "WETH" address so that the price can be calculated.`,
138-
start: 1606109629, // Monday, November 23, 2020 5:33:49 AM GMT
138+
start: '2020-11-23', // Monday, November 23, 2020 5:33:49 AM GMT
139139
...tvlExports
140140
}

projects/BankOfCronos/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
const ADDRESSES = require('../helper/coreAssets.json')
2-
const { sumTokensExport } = require("../helper/unwrapLPs");
3-
4-
const BOC_TREASURY_ADDRESS = "0xBacF28BF21B374459C738289559EF89978D08102";
5-
const CUSD_ADDRESS = "0x26043Aaa4D982BeEd7750e2D424547F5D76951d4";
6-
const USDC_ADDRESS = ADDRESSES.cronos.USDC;
7-
81
module.exports = {
9-
start: 6949784,
102
cronos: {
11-
// tvl: sumTokensExport({ owner: BOC_TREASURY_ADDRESS, tokens: [CUSD_ADDRESS, USDC_ADDRESS]}),
123
tvl: () => 0
134
},
145
methodology:

projects/BankofCronos-Loans/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ async function tvl(api) {
99
}
1010

1111
module.exports = {
12-
start: 6949784,
1312
cronos: {
1413
tvl,
1514
},

projects/DeNet/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const owners = [
77
]
88

99
module.exports = {
10-
start: 1691761595, // Friday, 11-Aug-23 13:46:35 UTC
10+
start: '2023-08-11', // Friday, 11-Aug-23 13:46:35 UTC
1111
methodology: "Total amount of DE tokens used for DeNet storage payments",
1212

1313
polygon: {

0 commit comments

Comments
 (0)