forked from bgd-labs/aave-proposals-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bgd-labs:main' into main
- Loading branch information
Showing
16 changed files
with
702 additions
and
1 deletion.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...530_before_AaveV3Arbitrum_ChaosLabsRiskParameterUpdatesAaveV3_20240530_after.md
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 @@ | ||
## Reserve changes | ||
|
||
### Reserves altered | ||
|
||
#### ARB ([0x912CE59144191C1204E64559FE8253a0e49E6548](https://arbiscan.io/address/0x912CE59144191C1204E64559FE8253a0e49E6548)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 50 % | 58 % | | ||
| liquidationThreshold | 60 % | 63 % | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x912CE59144191C1204E64559FE8253a0e49E6548": { | ||
"liquidationThreshold": { | ||
"from": 6000, | ||
"to": 6300 | ||
}, | ||
"ltv": { | ||
"from": 5000, | ||
"to": 5800 | ||
} | ||
} | ||
} | ||
} | ||
``` |
30 changes: 30 additions & 0 deletions
30
...40530_before_AaveV3Gnosis_ChaosLabsRiskParameterUpdatesAaveV3_20240530_after.md
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 @@ | ||
## Reserve changes | ||
|
||
### Reserves altered | ||
|
||
#### GNO ([0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb](https://gnosisscan.io/address/0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 45 % | 48 % | | ||
| liquidationThreshold | 50 % | 53 % | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb": { | ||
"liquidationThreshold": { | ||
"from": 5000, | ||
"to": 5300 | ||
}, | ||
"ltv": { | ||
"from": 4500, | ||
"to": 4800 | ||
} | ||
} | ||
} | ||
} | ||
``` |
30 changes: 30 additions & 0 deletions
30
...530_before_AaveV3Optimism_ChaosLabsRiskParameterUpdatesAaveV3_20240530_after.md
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 @@ | ||
## Reserve changes | ||
|
||
### Reserves altered | ||
|
||
#### OP ([0x4200000000000000000000000000000000000042](https://optimistic.etherscan.io/address/0x4200000000000000000000000000000000000042)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 50 % | 58 % | | ||
| liquidationThreshold | 60 % | 63 % | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x4200000000000000000000000000000000000042": { | ||
"liquidationThreshold": { | ||
"from": 6000, | ||
"to": 6300 | ||
}, | ||
"ltv": { | ||
"from": 5000, | ||
"to": 5800 | ||
} | ||
} | ||
} | ||
} | ||
``` |
48 changes: 48 additions & 0 deletions
48
...0530_before_AaveV3Polygon_ChaosLabsRiskParameterUpdatesAaveV3_20240530_after.md
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 | ||
|
||
#### stMATIC ([0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4](https://polygonscan.com/address/0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 45 % | 48 % | | ||
| liquidationThreshold | 56 % | 58 % | | ||
|
||
|
||
#### MaticX ([0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6](https://polygonscan.com/address/0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 45 % | 50 % | | ||
| liquidationThreshold | 58 % | 60 % | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4": { | ||
"liquidationThreshold": { | ||
"from": 5600, | ||
"to": 5800 | ||
}, | ||
"ltv": { | ||
"from": 4500, | ||
"to": 4800 | ||
} | ||
}, | ||
"0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6": { | ||
"liquidationThreshold": { | ||
"from": 5800, | ||
"to": 6000 | ||
}, | ||
"ltv": { | ||
"from": 4500, | ||
"to": 5000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
Submodule aave-helpers
updated
5 files
35 changes: 35 additions & 0 deletions
35
...iskParameterUpdatesAaveV3/AaveV3Arbitrum_ChaosLabsRiskParameterUpdatesAaveV3_20240530.sol
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,35 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveV3ArbitrumAssets} from 'aave-address-book/AaveV3Arbitrum.sol'; | ||
import {AaveV3PayloadArbitrum} from 'aave-helpers/v3-config-engine/AaveV3PayloadArbitrum.sol'; | ||
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; | ||
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; | ||
/** | ||
* @title Chaos Labs Risk Parameter Updates AaveV3 | ||
* @author Chaos Labs | ||
* - Snapshot: https://snapshot.org/#/aave.eth/proposal/0x9674191acdb3cae244e010069df7637d6b7b3e30849f91570f0349323c5330d9 | ||
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-parameter-updates-aave-v3-05-24-2024/17788 | ||
*/ | ||
contract AaveV3Arbitrum_ChaosLabsRiskParameterUpdatesAaveV3_20240530 is AaveV3PayloadArbitrum { | ||
function collateralsUpdates() | ||
public | ||
pure | ||
override | ||
returns (IAaveV3ConfigEngine.CollateralUpdate[] memory) | ||
{ | ||
IAaveV3ConfigEngine.CollateralUpdate[] | ||
memory collateralUpdate = new IAaveV3ConfigEngine.CollateralUpdate[](1); | ||
|
||
collateralUpdate[0] = IAaveV3ConfigEngine.CollateralUpdate({ | ||
asset: AaveV3ArbitrumAssets.ARB_UNDERLYING, | ||
ltv: 58_00, | ||
liqThreshold: 63_00, | ||
liqBonus: EngineFlags.KEEP_CURRENT, | ||
debtCeiling: EngineFlags.KEEP_CURRENT, | ||
liqProtocolFee: EngineFlags.KEEP_CURRENT | ||
}); | ||
|
||
return collateralUpdate; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...kParameterUpdatesAaveV3/AaveV3Arbitrum_ChaosLabsRiskParameterUpdatesAaveV3_20240530.t.sol
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,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveV3Arbitrum} from 'aave-address-book/AaveV3Arbitrum.sol'; | ||
|
||
import 'forge-std/Test.sol'; | ||
import {ProtocolV3TestBase, ReserveConfig} from 'aave-helpers/ProtocolV3TestBase.sol'; | ||
import {AaveV3Arbitrum_ChaosLabsRiskParameterUpdatesAaveV3_20240530} from './AaveV3Arbitrum_ChaosLabsRiskParameterUpdatesAaveV3_20240530.sol'; | ||
|
||
/** | ||
* @dev Test for AaveV3Arbitrum_ChaosLabsRiskParameterUpdatesAaveV3_20240530 | ||
* command: FOUNDRY_PROFILE=arbitrum forge test --match-path=src/20240530_Multi_ChaosLabsRiskParameterUpdatesAaveV3/AaveV3Arbitrum_ChaosLabsRiskParameterUpdatesAaveV3_20240530.t.sol -vv | ||
*/ | ||
contract AaveV3Arbitrum_ChaosLabsRiskParameterUpdatesAaveV3_20240530_Test is ProtocolV3TestBase { | ||
AaveV3Arbitrum_ChaosLabsRiskParameterUpdatesAaveV3_20240530 internal proposal; | ||
|
||
function setUp() public { | ||
vm.createSelectFork(vm.rpcUrl('arbitrum'), 216612699); | ||
proposal = new AaveV3Arbitrum_ChaosLabsRiskParameterUpdatesAaveV3_20240530(); | ||
} | ||
|
||
/** | ||
* @dev executes the generic test suite including e2e and config snapshots | ||
*/ | ||
function test_defaultProposalExecution() public { | ||
defaultTest( | ||
'AaveV3Arbitrum_ChaosLabsRiskParameterUpdatesAaveV3_20240530', | ||
AaveV3Arbitrum.POOL, | ||
address(proposal) | ||
); | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...sRiskParameterUpdatesAaveV3/AaveV3Gnosis_ChaosLabsRiskParameterUpdatesAaveV3_20240530.sol
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,35 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveV3GnosisAssets} from 'aave-address-book/AaveV3Gnosis.sol'; | ||
import {AaveV3PayloadGnosis} from 'aave-helpers/v3-config-engine/AaveV3PayloadGnosis.sol'; | ||
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; | ||
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; | ||
/** | ||
* @title Chaos Labs Risk Parameter Updates AaveV3 | ||
* @author Chaos Labs | ||
* - Snapshot: https://snapshot.org/#/aave.eth/proposal/0x9674191acdb3cae244e010069df7637d6b7b3e30849f91570f0349323c5330d9 | ||
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-parameter-updates-aave-v3-05-24-2024/17788 | ||
*/ | ||
contract AaveV3Gnosis_ChaosLabsRiskParameterUpdatesAaveV3_20240530 is AaveV3PayloadGnosis { | ||
function collateralsUpdates() | ||
public | ||
pure | ||
override | ||
returns (IAaveV3ConfigEngine.CollateralUpdate[] memory) | ||
{ | ||
IAaveV3ConfigEngine.CollateralUpdate[] | ||
memory collateralUpdate = new IAaveV3ConfigEngine.CollateralUpdate[](1); | ||
|
||
collateralUpdate[0] = IAaveV3ConfigEngine.CollateralUpdate({ | ||
asset: AaveV3GnosisAssets.GNO_UNDERLYING, | ||
ltv: 48_00, | ||
liqThreshold: 53_00, | ||
liqBonus: EngineFlags.KEEP_CURRENT, | ||
debtCeiling: EngineFlags.KEEP_CURRENT, | ||
liqProtocolFee: EngineFlags.KEEP_CURRENT | ||
}); | ||
|
||
return collateralUpdate; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...iskParameterUpdatesAaveV3/AaveV3Gnosis_ChaosLabsRiskParameterUpdatesAaveV3_20240530.t.sol
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,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveV3Gnosis} from 'aave-address-book/AaveV3Gnosis.sol'; | ||
|
||
import 'forge-std/Test.sol'; | ||
import {ProtocolV3TestBase, ReserveConfig} from 'aave-helpers/ProtocolV3TestBase.sol'; | ||
import {AaveV3Gnosis_ChaosLabsRiskParameterUpdatesAaveV3_20240530} from './AaveV3Gnosis_ChaosLabsRiskParameterUpdatesAaveV3_20240530.sol'; | ||
|
||
/** | ||
* @dev Test for AaveV3Gnosis_ChaosLabsRiskParameterUpdatesAaveV3_20240530 | ||
* command: FOUNDRY_PROFILE=gnosis forge test --match-path=src/20240530_Multi_ChaosLabsRiskParameterUpdatesAaveV3/AaveV3Gnosis_ChaosLabsRiskParameterUpdatesAaveV3_20240530.t.sol -vv | ||
*/ | ||
contract AaveV3Gnosis_ChaosLabsRiskParameterUpdatesAaveV3_20240530_Test is ProtocolV3TestBase { | ||
AaveV3Gnosis_ChaosLabsRiskParameterUpdatesAaveV3_20240530 internal proposal; | ||
|
||
function setUp() public { | ||
vm.createSelectFork(vm.rpcUrl('gnosis'), 34209835); | ||
proposal = new AaveV3Gnosis_ChaosLabsRiskParameterUpdatesAaveV3_20240530(); | ||
} | ||
|
||
/** | ||
* @dev executes the generic test suite including e2e and config snapshots | ||
*/ | ||
function test_defaultProposalExecution() public { | ||
defaultTest( | ||
'AaveV3Gnosis_ChaosLabsRiskParameterUpdatesAaveV3_20240530', | ||
AaveV3Gnosis.POOL, | ||
address(proposal) | ||
); | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...iskParameterUpdatesAaveV3/AaveV3Optimism_ChaosLabsRiskParameterUpdatesAaveV3_20240530.sol
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,35 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveV3OptimismAssets} from 'aave-address-book/AaveV3Optimism.sol'; | ||
import {AaveV3PayloadOptimism} from 'aave-helpers/v3-config-engine/AaveV3PayloadOptimism.sol'; | ||
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; | ||
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; | ||
/** | ||
* @title Chaos Labs Risk Parameter Updates AaveV3 | ||
* @author Chaos Labs | ||
* - Snapshot: https://snapshot.org/#/aave.eth/proposal/0x9674191acdb3cae244e010069df7637d6b7b3e30849f91570f0349323c5330d9 | ||
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-parameter-updates-aave-v3-05-24-2024/17788 | ||
*/ | ||
contract AaveV3Optimism_ChaosLabsRiskParameterUpdatesAaveV3_20240530 is AaveV3PayloadOptimism { | ||
function collateralsUpdates() | ||
public | ||
pure | ||
override | ||
returns (IAaveV3ConfigEngine.CollateralUpdate[] memory) | ||
{ | ||
IAaveV3ConfigEngine.CollateralUpdate[] | ||
memory collateralUpdate = new IAaveV3ConfigEngine.CollateralUpdate[](1); | ||
|
||
collateralUpdate[0] = IAaveV3ConfigEngine.CollateralUpdate({ | ||
asset: AaveV3OptimismAssets.OP_UNDERLYING, | ||
ltv: 58_00, | ||
liqThreshold: 63_00, | ||
liqBonus: EngineFlags.KEEP_CURRENT, | ||
debtCeiling: EngineFlags.KEEP_CURRENT, | ||
liqProtocolFee: EngineFlags.KEEP_CURRENT | ||
}); | ||
|
||
return collateralUpdate; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...kParameterUpdatesAaveV3/AaveV3Optimism_ChaosLabsRiskParameterUpdatesAaveV3_20240530.t.sol
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,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveV3Optimism} from 'aave-address-book/AaveV3Optimism.sol'; | ||
|
||
import 'forge-std/Test.sol'; | ||
import {ProtocolV3TestBase, ReserveConfig} from 'aave-helpers/ProtocolV3TestBase.sol'; | ||
import {AaveV3Optimism_ChaosLabsRiskParameterUpdatesAaveV3_20240530} from './AaveV3Optimism_ChaosLabsRiskParameterUpdatesAaveV3_20240530.sol'; | ||
|
||
/** | ||
* @dev Test for AaveV3Optimism_ChaosLabsRiskParameterUpdatesAaveV3_20240530 | ||
* command: FOUNDRY_PROFILE=optimism forge test --match-path=src/20240530_Multi_ChaosLabsRiskParameterUpdatesAaveV3/AaveV3Optimism_ChaosLabsRiskParameterUpdatesAaveV3_20240530.t.sol -vv | ||
*/ | ||
contract AaveV3Optimism_ChaosLabsRiskParameterUpdatesAaveV3_20240530_Test is ProtocolV3TestBase { | ||
AaveV3Optimism_ChaosLabsRiskParameterUpdatesAaveV3_20240530 internal proposal; | ||
|
||
function setUp() public { | ||
vm.createSelectFork(vm.rpcUrl('optimism'), 120739105); | ||
proposal = new AaveV3Optimism_ChaosLabsRiskParameterUpdatesAaveV3_20240530(); | ||
} | ||
|
||
/** | ||
* @dev executes the generic test suite including e2e and config snapshots | ||
*/ | ||
function test_defaultProposalExecution() public { | ||
defaultTest( | ||
'AaveV3Optimism_ChaosLabsRiskParameterUpdatesAaveV3_20240530', | ||
AaveV3Optimism.POOL, | ||
address(proposal) | ||
); | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
...RiskParameterUpdatesAaveV3/AaveV3Polygon_ChaosLabsRiskParameterUpdatesAaveV3_20240530.sol
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,43 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveV3PolygonAssets} from 'aave-address-book/AaveV3Polygon.sol'; | ||
import {AaveV3PayloadPolygon} from 'aave-helpers/v3-config-engine/AaveV3PayloadPolygon.sol'; | ||
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; | ||
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; | ||
/** | ||
* @title Chaos Labs Risk Parameter Updates AaveV3 | ||
* @author Chaos Labs | ||
* - Snapshot: https://snapshot.org/#/aave.eth/proposal/0x9674191acdb3cae244e010069df7637d6b7b3e30849f91570f0349323c5330d9 | ||
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-parameter-updates-aave-v3-05-24-2024/17788 | ||
*/ | ||
contract AaveV3Polygon_ChaosLabsRiskParameterUpdatesAaveV3_20240530 is AaveV3PayloadPolygon { | ||
function collateralsUpdates() | ||
public | ||
pure | ||
override | ||
returns (IAaveV3ConfigEngine.CollateralUpdate[] memory) | ||
{ | ||
IAaveV3ConfigEngine.CollateralUpdate[] | ||
memory collateralUpdate = new IAaveV3ConfigEngine.CollateralUpdate[](2); | ||
|
||
collateralUpdate[0] = IAaveV3ConfigEngine.CollateralUpdate({ | ||
asset: AaveV3PolygonAssets.stMATIC_UNDERLYING, | ||
ltv: 48_00, | ||
liqThreshold: 58_00, | ||
liqBonus: EngineFlags.KEEP_CURRENT, | ||
debtCeiling: EngineFlags.KEEP_CURRENT, | ||
liqProtocolFee: EngineFlags.KEEP_CURRENT | ||
}); | ||
collateralUpdate[1] = IAaveV3ConfigEngine.CollateralUpdate({ | ||
asset: AaveV3PolygonAssets.MaticX_UNDERLYING, | ||
ltv: 50_00, | ||
liqThreshold: 60_00, | ||
liqBonus: EngineFlags.KEEP_CURRENT, | ||
debtCeiling: EngineFlags.KEEP_CURRENT, | ||
liqProtocolFee: EngineFlags.KEEP_CURRENT | ||
}); | ||
|
||
return collateralUpdate; | ||
} | ||
} |
Oops, something went wrong.