generated from bgd-labs/bgd-forge-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add snapshot diffs and generator (#10)
* fix: update test block and fix remappings * feat: deploy scripts * fix: deploy scripts * feat: add base test * feat: snapshot diffs and base tests * feat: add generator files * fix: examples * fix: generator imports and contracts * feat: add generator for lst and stable price cap adapter updates * feat: add snapshot tests for generator * chore: some cleanup * feat: add etherfi contracts * fix: solc * fix: certora rules remappings * fix: certora rule file path
- Loading branch information
1 parent
7b520b5
commit 959103b
Showing
85 changed files
with
7,889 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# build and cache | ||
cache/ | ||
out/ | ||
reports/ | ||
zkout/ | ||
|
||
# general | ||
.env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "lib/protocol-v3.1-upgrade"] | ||
path = lib/protocol-v3.1-upgrade | ||
url = https://github.com/bgd-labs/protocol-v3.1-upgrade | ||
[submodule "lib/aave-capo"] | ||
path = lib/aave-capo | ||
url = https://github.com/bgd-labs/aave-capo | ||
[submodule "lib/aave-helpers"] | ||
path = lib/aave-helpers | ||
url = https://github.com/bgd-labs/aave-helpers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Reserve changes | ||
|
||
### Reserves altered | ||
|
||
#### wstETH ([0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32](https://scrollscan.com/address/0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 22,000 wstETH | 30,000 wstETH | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32": { | ||
"supplyCap": { | ||
"from": 22000, | ||
"to": 30000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Reserve changes | ||
|
||
### Reserves altered | ||
|
||
#### wstETH ([0x5979D7b546E38E414F7E9822514be443A4800529](https://arbiscan.io/address/0x5979D7b546E38E414F7E9822514be443A4800529)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 69,000 wstETH | 75,600 wstETH | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x5979D7b546E38E414F7E9822514be443A4800529": { | ||
"supplyCap": { | ||
"from": 69000, | ||
"to": 75600 | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Reserve changes | ||
|
||
### Reserves altered | ||
|
||
#### USDC ([0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E](https://snowtrace.io/address/0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 170,000,000 USDC | 200,000,000 USDC | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E": { | ||
"supplyCap": { | ||
"from": 170000000, | ||
"to": 200000000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
## Reserve changes | ||
|
||
### Reserve altered | ||
|
||
#### WETH ([0x4200000000000000000000000000000000000006](https://basescan.org/address/0x4200000000000000000000000000000000000006)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| liquidationThreshold | 83 % [8300] | 84 % [8400] | | ||
|
||
|
||
#### USDC ([0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913](https://basescan.org/address/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 75 % [7500] | 77 % [7700] | | ||
| liquidationThreshold | 78 % [7800] | 79 % [7900] | | ||
| liquidationBonus | 5 % | 6 % | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x4200000000000000000000000000000000000006": { | ||
"liquidationThreshold": { | ||
"from": 8300, | ||
"to": 8400 | ||
} | ||
}, | ||
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913": { | ||
"liquidationBonus": { | ||
"from": 10500, | ||
"to": 10600 | ||
}, | ||
"liquidationThreshold": { | ||
"from": 7800, | ||
"to": 7900 | ||
}, | ||
"ltv": { | ||
"from": 7500, | ||
"to": 7700 | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## Raw diff | ||
|
||
```json | ||
{ | ||
"strategies": { | ||
"0x2170Ed0880ac9A755fd29B2688956BD959F933F8": { | ||
"baseVariableBorrowRate": { | ||
"from": "0", | ||
"to": "10000000000000000000000000" | ||
}, | ||
"maxVariableBorrowRate": { | ||
"from": "827000000000000000000000000", | ||
"to": "940000000000000000000000000" | ||
}, | ||
"optimalUsageRatio": { | ||
"from": "800000000000000000000000000", | ||
"to": "850000000000000000000000000" | ||
}, | ||
"variableRateSlope1": { | ||
"from": "27000000000000000000000000", | ||
"to": "30000000000000000000000000" | ||
}, | ||
"variableRateSlope2": { | ||
"from": "800000000000000000000000000", | ||
"to": "900000000000000000000000000" | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Raw diff | ||
|
||
```json | ||
{} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Reserve changes | ||
|
||
### Reserves altered | ||
|
||
#### wstETH ([0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6](https://gnosisscan.io/address/0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 7,500 wstETH | 8,000 wstETH | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6": { | ||
"supplyCap": { | ||
"from": 7500, | ||
"to": 8000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Reserve changes | ||
|
||
### Reserves altered | ||
|
||
#### WETH ([0x420000000000000000000000000000000000000A](https://explorer.metis.io/address/0x420000000000000000000000000000000000000A)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 2,300 WETH | 3,000 WETH | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x420000000000000000000000000000000000000A": { | ||
"supplyCap": { | ||
"from": 2300, | ||
"to": 3000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Reserve changes | ||
|
||
### Reserves altered | ||
|
||
#### wstETH ([0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb](https://optimistic.etherscan.io/address/0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 34,500 wstETH | 40,000 wstETH | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb": { | ||
"supplyCap": { | ||
"from": 34500, | ||
"to": 40000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
Oops, something went wrong.