@1delta/margin-fetcher 0.0.40 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compoundV3.d.ts","sourceRoot":"","sources":["../../../src/lending/addresses/compoundV3.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAGhD,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,EACf,MAAM,SAA2B,GAChC,MAAM,GAAG,SAAS,CAEpB;AAED,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,MAAM,OAG/D;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,OAGrD;
|
|
1
|
+
{"version":3,"file":"compoundV3.d.ts","sourceRoot":"","sources":["../../../src/lending/addresses/compoundV3.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAGhD,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,EACf,MAAM,SAA2B,GAChC,MAAM,GAAG,SAAS,CAEpB;AAED,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,MAAM,OAG/D;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,OAGrD;AA0BD,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,OAAO,EAAE,MAAM;;;EAGhB"}
|
|
@@ -22,6 +22,7 @@ const addressesCompoundV3 = {
|
|
|
22
22
|
[Chain.ETHEREUM_MAINNET]: '0xCe434378adacC51d54312c872113D687Ac19B516',
|
|
23
23
|
[Chain.UNICHAIN]: '0x0bd7473CbBf81d9dD936c61117eD230d95006CA2',
|
|
24
24
|
[Chain.LINEA]: '0x7a59ddbB76521E8982Fa3A08598C9a83b14A6C07',
|
|
25
|
+
[Chain.SCROLL]: '0x32198Ee619fAd24169fa94A149Cb5205701C6AB1',
|
|
25
26
|
},
|
|
26
27
|
cometRewards: {
|
|
27
28
|
[Chain.POLYGON_MAINNET]: '0x45939657d1CA34A8FA39A924B71D28Fe8431e581',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1delta/margin-fetcher",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@types/async-retry": "^1.4.9",
|
|
18
18
|
"async-retry": "^1.3.3",
|
|
19
19
|
"typescript": "^5.9.2",
|
|
20
|
-
"@1delta/providers": "0.0.
|
|
20
|
+
"@1delta/providers": "0.0.15"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsc",
|
|
@@ -29,6 +29,7 @@ const addressesCompoundV3 = {
|
|
|
29
29
|
[Chain.ETHEREUM_MAINNET]: '0xCe434378adacC51d54312c872113D687Ac19B516',
|
|
30
30
|
[Chain.UNICHAIN]: '0x0bd7473CbBf81d9dD936c61117eD230d95006CA2',
|
|
31
31
|
[Chain.LINEA]: '0x7a59ddbB76521E8982Fa3A08598C9a83b14A6C07',
|
|
32
|
+
[Chain.SCROLL]: '0x32198Ee619fAd24169fa94A149Cb5205701C6AB1',
|
|
32
33
|
},
|
|
33
34
|
cometRewards: {
|
|
34
35
|
[Chain.POLYGON_MAINNET]: '0x45939657d1CA34A8FA39A924B71D28Fe8431e581',
|
package/test/lenderData.test.ts
CHANGED
|
@@ -20,7 +20,7 @@ describe(
|
|
|
20
20
|
it.only('should return lender data', async () => {
|
|
21
21
|
await fetchLenderMetaFromDirAndInitialize()
|
|
22
22
|
|
|
23
|
-
const chainId = Chain.
|
|
23
|
+
const chainId = Chain.SCROLL
|
|
24
24
|
const list = await getDeltaTokenList(chainId)
|
|
25
25
|
const ps = [
|
|
26
26
|
fetchMainPrices([chainId], undefined, { [chainId]: { list } }),
|
|
@@ -32,7 +32,7 @@ describe(
|
|
|
32
32
|
// console.log("yields", yields)
|
|
33
33
|
// console.log("prices", prices)
|
|
34
34
|
|
|
35
|
-
const lenders =
|
|
35
|
+
const lenders = getLendersForChain(chainId) as any
|
|
36
36
|
console.log('lenders', lenders)
|
|
37
37
|
const lendingData = await getLenderPublicData(
|
|
38
38
|
chainId,
|