Skip to content

Commit

Permalink
fix: update aave-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Mar 14, 2024
1 parent ea29ef4 commit f5ab314
Show file tree
Hide file tree
Showing 7 changed files with 219 additions and 16 deletions.
2 changes: 1 addition & 1 deletion cache/bookKeeping/lastFetchedBlocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"governance": "19432603",
"137/payloads": "54644510",
"43114/payloads": "42884539",
"1/payloads": "19432609",
"1/payloads": "19433126",
"10/payloads": "117406398",
"42161/payloads": "190252280",
"8453/payloads": "11811123",
Expand Down
2 changes: 1 addition & 1 deletion lib/aave-helpers
Submodule aave-helpers updated 65 files
+4 −1 .gitignore
+8 −8 diffs/preTestEngineAvaV3Gauntlet_postTestEngineAvaV3Gauntlet.md
+1 −1 diffs/preTestEngineCollateralEdgeBonus_postTestEngineCollateralEdgeBonus.md
+1 −1 diffs/preTestEngineCollateral_postTestEngineCollateral.md
+8 −0 diffs/preTestEngineListingCustom_postTestEngineListingCustom.md
+8 −0 diffs/preTestEngineListing_postTestEngineListing.md
+1 −1 package.json
+0 −947 reports/AMMTEST_after.json
+0 −947 reports/AMMTEST_before.json
+0 −1,455 reports/default_after.json
+0 −1,455 reports/default_before.json
+0 −830 reports/postTestEngineArbV3.json
+0 −512 reports/postTestEngineArbV3Gauntlet.json
+0 −1,349 reports/postTestEngineAssetEModeUpdate.json
+0 −669 reports/postTestEngineAvaV3.json
+0 −669 reports/postTestEngineAvaV3Gauntlet.json
+0 −1,103 reports/postTestEngineBorrow.json
+0 −1,103 reports/postTestEngineBorrowNoChange.json
+0 −1,349 reports/postTestEngineCaps.json
+0 −669 reports/postTestEngineCollateral.json
+0 −669 reports/postTestEngineCollateralEdgeBonus.json
+0 −669 reports/postTestEngineCollateralNoChange.json
+0 −729 reports/postTestEngineEModeAssetUpdate.json
+0 −669 reports/postTestEngineEModeCategoryNoChange.json
+0 −1,103 reports/postTestEngineEModeCategoryUpdate.json
+0 −1,156 reports/postTestEngineListing.json
+0 −1,402 reports/postTestEngineListingCustom.json
+0 −777 reports/postTestEngineOptV3.json
+0 −557 reports/postTestEngineOptV3Gauntlet.json
+0 −1,103 reports/postTestEnginePolV3.json
+0 −1,042 reports/postTestEnginePolV3Gauntlet.json
+0 −1,103 reports/postTestEnginePriceFeed.json
+0 −777 reports/postTestEngineRates.json
+0 −1,563 reports/postTestV2RatesUpdates.json
+0 −698 reports/pre-x.json
+0 −830 reports/preTestEngineArbV3.json
+0 −512 reports/preTestEngineArbV3Gauntlet.json
+0 −1,349 reports/preTestEngineAssetEModeUpdate.json
+0 −669 reports/preTestEngineAvaV3.json
+0 −669 reports/preTestEngineAvaV3Gauntlet.json
+0 −1,103 reports/preTestEngineBorrow.json
+0 −1,103 reports/preTestEngineBorrowNoChange.json
+0 −1,349 reports/preTestEngineCaps.json
+0 −669 reports/preTestEngineCollateral.json
+0 −669 reports/preTestEngineCollateralEdgeBonus.json
+0 −669 reports/preTestEngineCollateralNoChange.json
+0 −669 reports/preTestEngineEModeCategoryNoChange.json
+0 −1,103 reports/preTestEngineEModeCategoryUpdate.json
+0 −1,103 reports/preTestEngineListing.json
+0 −1,349 reports/preTestEngineListingCustom.json
+0 −777 reports/preTestEngineOptV3.json
+0 −557 reports/preTestEngineOptV3Gauntlet.json
+0 −1,103 reports/preTestEnginePolV3.json
+0 −1,042 reports/preTestEnginePolV3Gauntlet.json
+0 −1,103 reports/preTestEnginePriceFeed.json
+0 −777 reports/preTestEngineRates.json
+0 −1,563 reports/preTestV2RatesUpdates.json
+0 −485 reports/snapshot.json
+0 −1,294 reports/v2-report.json
+1 −1 src/CommonTestBase.sol
+2 −2 src/GovV3Helpers.sol
+1 −1 src/IpfsUtils.sol
+5 −0 src/ProtocolV3TestBase.sol
+2 −2 tests/ProtocolV3TestBase.t.sol
+14 −145 yarn.lock
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "MIT",
"dependencies": {
"@bgd-labs/aave-address-book": "^2.24.0",
"@bgd-labs/aave-cli": "0.9.0",
"@bgd-labs/aave-cli": "0.9.1",
"@bgd-labs/js-utils": "^1.3.0",
"commander": "^11.1.0",
"dotenv": "^16.3.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Payload 73 on Ethereum

- Simulation: [https://dashboard.tenderly.co/me/simulator/a8129eb3-b767-415f-bdc2-f5568385909b](https://dashboard.tenderly.co/me/simulator/a8129eb3-b767-415f-bdc2-f5568385909b)
- Simulation: [https://dashboard.tenderly.co/me/simulator/6229c9a9-2963-482d-b7d7-1c8b84bcca3c](https://dashboard.tenderly.co/me/simulator/6229c9a9-2963-482d-b7d7-1c8b84bcca3c)
- creator: 0x57ab7ee15cE5ECacB1aB84EE42D5A9d0d8112922
- maximumAccessLevelRequired: 1
- state: 3(Executed)
Expand Down Expand Up @@ -199,8 +199,8 @@ Dai (Dai) at `0x6B175474E89094C44Da98b954EedeAC495271d0F`[:ghost:](https://githu
InitializableImmutableAdminUpgradeabilityProxy at `0x6F634c6135D2EBD550000ac92F494F9CB8183dAe`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV2Ethereum.ASSETS.DPI.A_TOKEN") with implementation AToken at `0x00c92Eb9eba1e4F90233B5e4c846A97dDACE0F5B`
```diff
@@ `_totalSupply` key `_totalSupply` @@
- 2360330690897598100189
+ 1995510911479925273498
- 2,360.330690897598100189[2360330690897598100189]
+ 1,995.510911479925273498[1995510911479925273498]
@@ `_balances` key `0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c` @@
- 380.063210727473770693[380063210727473770693]
+ 15.243431309800944002[15243431309800944002]
Expand Down Expand Up @@ -594,8 +594,8 @@ WETH9 (WETH) at `0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`[:ghost:](https://gi
InitializableImmutableAdminUpgradeabilityProxy at `0xce1871f791548600cb59efbefFC9c38719142079`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV2Ethereum.ASSETS.LUSD.A_TOKEN") with implementation AToken at `0x893E606358205AD994e610ad48e8aEF98aEadDbe`
```diff
@@ `_totalSupply` key `_totalSupply` @@
- 382640588041151908577090
+ 376235797001532950325614
- 382,640.58804115190857709[382640588041151908577090]
+ 376,235.797001532950325614[376235797001532950325614]
@@ `_balances` key `0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c` @@
- 6,429.801267207969195777[6429801267207969195777]
+ 25.010227589010944301[25010227589010944301]
Expand All @@ -604,8 +604,8 @@ InitializableImmutableAdminUpgradeabilityProxy at `0xce1871f791548600cb59efbefFC
InitializableImmutableAdminUpgradeabilityProxy at `0xd4937682df3C8aEF4FE912A96A74121C0829E664`[:ghost:](https://github.com/bgd-labs/aave-address-book "AaveV2Ethereum.ASSETS.FRAX.A_TOKEN") with implementation AToken at `0xB5AE2299c71aFFDc2dAd3B53974D56d5651FDD35`
```diff
@@ `_totalSupply` key `_totalSupply` @@
- 814225156953383184988524
+ 787560693286802442171845
- 814,225.156953383184988524[814225156953383184988524]
+ 787,560.693286802442171845[787560693286802442171845]
@@ `_balances` key `0x464c71f6c2f760dda6093dcb91c24c39e5d6e18c` @@
- 26,983.1134461648726797[26983113446164872679700]
+ 318.649779584129863021[318649779584129863021]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,208 @@
## Reserve changes

### Reserve altered

#### WBTC ([0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599](https://etherscan.io/address/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599))

| description | value before | value after |
| --- | --- | --- |
| liquidityIndex | 1.002 | 1.002 |
| variableBorrowIndex | 1.014 | 1.014 |
| currentLiquidityRate | 0.082 % | 0.082 % |
| currentVariableBorrowRate | 0.953 % | 0.952 % |


#### LUSD ([0x5f98805A4E8be255a32880FDeC7F6728C6568bA0](https://etherscan.io/address/0x5f98805A4E8be255a32880FDeC7F6728C6568bA0))

| description | value before | value after |
| --- | --- | --- |
| liquidityIndex | 1.046 | 1.046 |
| variableBorrowIndex | 1.066 | 1.066 |
| currentLiquidityRate | 31.658 % | 32.943 % |
| currentVariableBorrowRate | 40.05 % | 41.517 % |


#### USDC ([0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48](https://etherscan.io/address/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48))

| description | value before | value after |
| --- | --- | --- |
| liquidityIndex | 1.05 | 1.05 |
| variableBorrowIndex | 1.064 | 1.064 |
| currentLiquidityRate | 11.802 % | 12.223 % |
| currentVariableBorrowRate | 14.348 % | 14.847 % |


#### WETH ([0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2](https://etherscan.io/address/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2))

| description | value before | value after |
| --- | --- | --- |
| liquidityIndex | 1.021 | 1.021 |
| variableBorrowIndex | 1.038 | 1.038 |
| currentLiquidityRate | 1.606 % | 1.605 % |
| currentVariableBorrowRate | 2.424 % | 2.424 % |


#### CRV ([0xD533a949740bb3306d119CC777fa900bA034cd52](https://etherscan.io/address/0xD533a949740bb3306d119CC777fa900bA034cd52))

| description | value before | value after |
| --- | --- | --- |
| liquidityIndex | 1.026 | 1.026 |
| variableBorrowIndex | 1.102 | 1.102 |
| currentLiquidityRate | 0.233 % | 0.233 % |
| currentVariableBorrowRate | 4.569 % | 4.57 % |


#### BAL ([0xba100000625a3754423978a60c9317c58a424e3D](https://etherscan.io/address/0xba100000625a3754423978a60c9317c58a424e3D))

| description | value before | value after |
| --- | --- | --- |
| liquidityIndex | 1.043 | 1.043 |
| variableBorrowIndex | 1.14 | 1.14 |
| currentLiquidityRate | 1.382 % | 1.387 % |
| currentVariableBorrowRate | 9.832 % | 9.843 % |


#### USDT ([0xdAC17F958D2ee523a2206206994597C13D831ec7](https://etherscan.io/address/0xdAC17F958D2ee523a2206206994597C13D831ec7))

| description | value before | value after |
| --- | --- | --- |
| liquidityIndex | 1.053 | 1.053 |
| variableBorrowIndex | 1.071 | 1.071 |
| currentLiquidityRate | 4.858 % | 5.193 % |
| currentVariableBorrowRate | 5.999 % | 6.407 % |


## Raw diff

```json
{}
{
"reserves": {
"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599": {
"currentLiquidityRate": {
"from": "817076847369644217101749",
"to": "816236131946878414474793"
},
"currentVariableBorrowRate": {
"from": "9528185366291155075372093",
"to": "9523282183661952015778731"
},
"liquidityIndex": {
"from": "1001924727054964882640535669",
"to": "1001924778142680847076214993"
},
"variableBorrowIndex": {
"from": "1013726520303347573794516686",
"to": "1013727123070561760297714077"
}
},
"0x5f98805A4E8be255a32880FDeC7F6728C6568bA0": {
"currentLiquidityRate": {
"from": "316575952637883235980384850",
"to": "329429451057244375741357704"
},
"currentVariableBorrowRate": {
"from": "400501623883866060592610332",
"to": "415168780774054460939662856"
},
"liquidityIndex": {
"from": "1046366961099356474749174086",
"to": "1046438178321159420777503160"
},
"variableBorrowIndex": {
"from": "1066244491561283955220759046",
"to": "1066336304283354752306569357"
}
},
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": {
"currentLiquidityRate": {
"from": "118018819163216150353224568",
"to": "122227869890909403629963025"
},
"currentVariableBorrowRate": {
"from": "143483983916520242697282408",
"to": "148466332234500193445057238"
},
"liquidityIndex": {
"from": "1050276486369635530193562578",
"to": "1050278608842079301359104455"
},
"variableBorrowIndex": {
"from": "1064452388466693791473811045",
"to": "1064455003741636670920138666"
}
},
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2": {
"currentLiquidityRate": {
"from": "16055705029987146804512419",
"to": "16050666574318776438776531"
},
"currentVariableBorrowRate": {
"from": "24241695319165323890877710",
"to": "24237891366279432584221679"
},
"liquidityIndex": {
"from": "1021472928067726725344769744",
"to": "1021473495968255893805807260"
},
"variableBorrowIndex": {
"from": "1038040353211834891032822855",
"to": "1038041224563446622299066835"
}
},
"0xD533a949740bb3306d119CC777fa900bA034cd52": {
"currentLiquidityRate": {
"from": "2329374599226373442870772",
"to": "2330946230156252965285765"
},
"currentVariableBorrowRate": {
"from": "45687630177578183483980281",
"to": "45695508216406231231382483"
},
"liquidityIndex": {
"from": "1026129908564495038241181788",
"to": "1026130206889848843967970458"
},
"variableBorrowIndex": {
"from": "1101823800515042072491825905",
"to": "1101830083420168756874149434"
}
},
"0xba100000625a3754423978a60c9317c58a424e3D": {
"currentLiquidityRate": {
"from": "13819345774964207109843558",
"to": "13866624826727606665714222"
},
"currentVariableBorrowRate": {
"from": "98317120170830129203286969",
"to": "98427871303665168905188121"
},
"liquidityIndex": {
"from": "1043264561470115303645997879",
"to": "1043322499219433558304320297"
},
"variableBorrowIndex": {
"from": "1139896626971129800900216490",
"to": "1140347090979083938989937430"
}
},
"0xdAC17F958D2ee523a2206206994597C13D831ec7": {
"currentLiquidityRate": {
"from": "48583463123538656803393574",
"to": "51926532764508447510421995"
},
"currentVariableBorrowRate": {
"from": "59989791183067545764490906",
"to": "64068216737662134348644978"
},
"liquidityIndex": {
"from": "1053101283101393084968044915",
"to": "1053102314933695103275515146"
},
"variableBorrowIndex": {
"from": "1070514355191487915862088231",
"to": "1070515650343118396371833909"
}
}
}
}
```
2 changes: 1 addition & 1 deletion script/E2EPayload.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ contract E2EPayload is Script, ProtocolV3TestBase {

string[] memory inputs = new string[](7);
inputs[0] = 'npx';
inputs[1] = '@bgd-labs/aave-cli@^0.9.0';
inputs[1] = '@bgd-labs/aave-cli@^0.9.1';
inputs[2] = 'diff-snapshots';
inputs[3] = beforePath;
inputs[4] = afterPath;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-2.24.1.tgz#e88e2de8f734e9a19b0766b8082bcdff3564276c"
integrity sha512-1myxGPBOJiyJUBD7SoCYMm38NQSZwUgHeOEw5e7XXy+G0BurZ68gGXKv0q26/JfEE0Biwt2yjg41mOq0cZxc+g==

"@bgd-labs/aave-cli@0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-cli/-/aave-cli-0.9.0.tgz#522cc95d91eeb5ed6b40929ccd20c629bba91f5e"
integrity sha512-qM5Qd5NSwylzAp0mRqM/Gg0lCk2oCgRjOMzCFfoomy6hu6CHYfxCh1CNeaOSyC99HqmGZR/WVOTFGCWtWHdUOw==
"@bgd-labs/aave-cli@0.9.1":
version "0.9.1"
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-cli/-/aave-cli-0.9.1.tgz#b64fca6c871f964596692d48578ada97e22961ee"
integrity sha512-95cd1gm+Zlsj9eILoL5pfIxetSmO535cONATdRlMcA7EOf+Jii4tr1h5cV/a/sC/X48GlmlLX9cjVluk+w64Gg==
dependencies:
"@bgd-labs/aave-address-book" "^2.24.1"
"@bgd-labs/js-utils" "^1.3.0"
Expand Down

0 comments on commit f5ab314

Please sign in to comment.