Skip to content

Commit e8a29a1

Browse files
committed
cleanuP. remove deprecated things
1 parent 4be5b94 commit e8a29a1

File tree

6 files changed

+0
-553
lines changed

6 files changed

+0
-553
lines changed

src/reports/__snapshots__/diff-report.spec.ts.snap

Lines changed: 0 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -296,150 +296,6 @@ exports[`report > should generate a well formatted report 1`] = `
296296
\`\`\`"
297297
`;
298298

299-
exports[`report > should generate a well formatted report for 3.0 to 3.1 1`] = `
300-
"## Reserve changes
301-
302-
### Reserve altered
303-
304-
#### WBTC (0x3C8Ca53ee5661D29d3d3C0732689a4b86947EAF0)
305-
306-
| description | value before | value after |
307-
| --- | --- | --- |
308-
| address | null | 0xF9514C867b37D36a5affB003582b1818dA3870eb |
309-
| baseVariableBorrowRate | null | 0 |
310-
| maxVariableBorrowRate | null | 640000000000000000000000000 |
311-
| optimalUsageRatio | null | 450000000000000000000000000 |
312-
| variableRateSlope1 | null | 40000000000000000000000000 |
313-
| variableRateSlope2 | null | 600000000000000000000000000 |
314-
315-
316-
#### WETH (0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f)
317-
318-
| description | value before | value after |
319-
| --- | --- | --- |
320-
| address | null | 0xF9514C867b37D36a5affB003582b1818dA3870eb |
321-
| baseVariableBorrowRate | null | 0 |
322-
| maxVariableBorrowRate | null | 640000000000000000000000000 |
323-
| optimalUsageRatio | null | 450000000000000000000000000 |
324-
| variableRateSlope1 | null | 40000000000000000000000000 |
325-
| variableRateSlope2 | null | 600000000000000000000000000 |
326-
327-
328-
#### USDX (0xffD4505B3452Dc22f8473616d50503bA9E1710Ac)
329-
330-
| description | value before | value after |
331-
| --- | --- | --- |
332-
| ltv | 82.5 % [8250] | 62 % [6200] |
333-
| liquidationThreshold | 86 % [8600] | 90 % [9000] |
334-
| liquidationBonus | 5 % | 11 % |
335-
| address | null | 0xF9514C867b37D36a5affB003582b1818dA3870eb |
336-
| baseVariableBorrowRate | null | 0 |
337-
| maxVariableBorrowRate | null | 640000000000000000000000000 |
338-
| optimalUsageRatio | null | 450000000000000000000000000 |
339-
| variableRateSlope1 | null | 40000000000000000000000000 |
340-
| variableRateSlope2 | null | 600000000000000000000000000 |
341-
342-
343-
## Raw diff
344-
345-
\`\`\`json
346-
{
347-
"reserves": {
348-
"0x3C8Ca53ee5661D29d3d3C0732689a4b86947EAF0": {
349-
"address": {
350-
"from": null,
351-
"to": "0xF9514C867b37D36a5affB003582b1818dA3870eb"
352-
},
353-
"baseVariableBorrowRate": {
354-
"from": null,
355-
"to": "0"
356-
},
357-
"maxVariableBorrowRate": {
358-
"from": null,
359-
"to": "640000000000000000000000000"
360-
},
361-
"optimalUsageRatio": {
362-
"from": null,
363-
"to": "450000000000000000000000000"
364-
},
365-
"variableRateSlope1": {
366-
"from": null,
367-
"to": "40000000000000000000000000"
368-
},
369-
"variableRateSlope2": {
370-
"from": null,
371-
"to": "600000000000000000000000000"
372-
}
373-
},
374-
"0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f": {
375-
"address": {
376-
"from": null,
377-
"to": "0xF9514C867b37D36a5affB003582b1818dA3870eb"
378-
},
379-
"baseVariableBorrowRate": {
380-
"from": null,
381-
"to": "0"
382-
},
383-
"maxVariableBorrowRate": {
384-
"from": null,
385-
"to": "640000000000000000000000000"
386-
},
387-
"optimalUsageRatio": {
388-
"from": null,
389-
"to": "450000000000000000000000000"
390-
},
391-
"variableRateSlope1": {
392-
"from": null,
393-
"to": "40000000000000000000000000"
394-
},
395-
"variableRateSlope2": {
396-
"from": null,
397-
"to": "600000000000000000000000000"
398-
}
399-
},
400-
"0xffD4505B3452Dc22f8473616d50503bA9E1710Ac": {
401-
"liquidationBonus": {
402-
"from": 10500,
403-
"to": 11100
404-
},
405-
"liquidationThreshold": {
406-
"from": 8600,
407-
"to": 9000
408-
},
409-
"ltv": {
410-
"from": 8250,
411-
"to": 6200
412-
},
413-
"address": {
414-
"from": null,
415-
"to": "0xF9514C867b37D36a5affB003582b1818dA3870eb"
416-
},
417-
"baseVariableBorrowRate": {
418-
"from": null,
419-
"to": "0"
420-
},
421-
"maxVariableBorrowRate": {
422-
"from": null,
423-
"to": "640000000000000000000000000"
424-
},
425-
"optimalUsageRatio": {
426-
"from": null,
427-
"to": "450000000000000000000000000"
428-
},
429-
"variableRateSlope1": {
430-
"from": null,
431-
"to": "40000000000000000000000000"
432-
},
433-
"variableRateSlope2": {
434-
"from": null,
435-
"to": "600000000000000000000000000"
436-
}
437-
}
438-
}
439-
}
440-
\`\`\`"
441-
`;
442-
443299
exports[`report > should generate a well formatted report for 3.1 1`] = `
444300
"## Reserve changes
445301

src/reports/__snapshots__/reserve.spec.ts.snap

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -50,47 +50,6 @@ exports[`reserve > renderReserve > should properly render new reserve 1`] = `
5050
"
5151
`;
5252

53-
exports[`reserve > renderReserve > should properly render new reserve with local chain id 1`] = `
54-
"#### WBTC (0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f)
55-
56-
| description | value |
57-
| --- | --- |
58-
| decimals | 8 |
59-
| isActive | true |
60-
| isFrozen | false |
61-
| supplyCap | 2,100 WBTC |
62-
| borrowCap | 1,115 WBTC |
63-
| debtCeiling | 1,000 $ [100000] |
64-
| isSiloed | false |
65-
| isFlashloanable | false |
66-
| eModeCategory | 0 |
67-
| oracle | 0x6ce185860a4963106506C203335A2910413708e9 |
68-
| oracleDecimals | 8 |
69-
| oracleDescription | BTC / USD |
70-
| oracleName | BTC / USD |
71-
| oracleLatestAnswer | 22519.04551524 |
72-
| usageAsCollateralEnabled | true |
73-
| ltv | 70 % [7000] |
74-
| liquidationThreshold | 75.55 % [7555] |
75-
| liquidationBonus | 10 % |
76-
| liquidationProtocolFee | 10 % [1000] |
77-
| reserveFactor | 20 % [2000] |
78-
| aToken | 0x078f358208685046a11C85e8ad32895DED33A249 |
79-
| aTokenImpl | 0xa5ba6E5EC19a1Bf23C857991c857dB62b2Aa187B |
80-
| variableDebtToken | 0x92b42c66840C7AD907b4BF74879FF3eF7c529473 |
81-
| variableDebtTokenImpl | 0x81387c40EB75acB02757C1Ae55D5936E78c9dEd3 |
82-
| stableDebtToken | 0x633b207Dd676331c413D4C013a6294B0FE47cD0e |
83-
| stableDebtTokenImpl | 0x52A1CeB68Ee6b7B5D13E0376A1E0E4423A8cE26e |
84-
| borrowingEnabled | true |
85-
| stableBorrowRateEnabled | false |
86-
| isBorrowableInIsolation | false |
87-
| interestRateStrategy | 0x9b34E3e183c9b0d1a08fF57a8fb59c821616295f |
88-
| aTokenUnderlyingBalance | 0 WBTC [0] |
89-
| virtualAccountingActive | true |
90-
| virtualBalance | 0 WBTC [0] |
91-
"
92-
`;
93-
9453
exports[`reserve > renderReserve > should render decimals 1`] = `
9554
"#### WBTC ([0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f](https://etherscan.io/address/0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f))
9655

src/reports/diff-report.spec.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@ describe('report', () => {
1313
},
1414
{timeout: 30000},
1515
);
16-
it(
17-
'should generate a well formatted report for 3.0 to 3.1',
18-
async () => {
19-
const from = readJsonFile('/src/reports/mocks/pre3-1.json');
20-
const to = readJsonFile('/src/reports/mocks/post3-1.json');
21-
const content = await diffReports(from, to);
22-
expect(content).toMatchSnapshot();
23-
},
24-
{timeout: 30000},
25-
);
2616
it(
2717
'should generate a well formatted report for 3.1',
2818
async () => {

0 commit comments

Comments
 (0)