generated from bgd-labs/bgd-forge-template
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: sUSD ltv to 0 * Update src/20250220_AaveV3Optimism_SUSDRiskParameterAdjustment/SUSDRiskParameterAdjustment.md Co-authored-by: Harsh Pandey <[email protected]> --------- Co-authored-by: Harsh Pandey <[email protected]>
- Loading branch information
1 parent
686acc8
commit eb25966
Showing
6 changed files
with
393 additions
and
0 deletions.
There are no files selected for viewing
124 changes: 124 additions & 0 deletions
124
...nt_20250220_before_AaveV3Optimism_SUSDRiskParameterAdjustment_20250220_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,124 @@ | ||
## Reserve changes | ||
|
||
### Reserves altered | ||
|
||
#### sUSD ([0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9](https://optimistic.etherscan.io/address/0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| ltv | 60 % [6000] | 0 % [0] | | ||
|
||
|
||
## Emodes changed | ||
|
||
### EMode: Stablecoins(id: 1) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| eMode.label (unchanged) | Stablecoins | Stablecoins | | ||
| eMode.ltv | 90 % | 0.01 % | | ||
| eMode.liquidationThreshold | 93 % | 87 % | | ||
| eMode.liquidationBonus (unchanged) | 1 % | 1 % | | ||
| eMode.borrowableBitmap (unchanged) | DAI, USDC, USDT, sUSD, USDC | DAI, USDC, USDT, sUSD, USDC | | ||
| eMode.collateralBitmap (unchanged) | DAI, USDC, USDT, sUSD, USDC | DAI, USDC, USDT, sUSD, USDC | | ||
|
||
|
||
### EMode: ETH correlated(id: 2) | ||
|
||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"eModes": { | ||
"1": { | ||
"liquidationThreshold": { | ||
"from": 9300, | ||
"to": 8700 | ||
}, | ||
"ltv": { | ||
"from": 9000, | ||
"to": 1 | ||
} | ||
} | ||
}, | ||
"reserves": { | ||
"0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9": { | ||
"ltv": { | ||
"from": 6000, | ||
"to": 0 | ||
} | ||
} | ||
}, | ||
"raw": { | ||
"0x0e1a3af1f9cc76a62ed31ededca291e63632e7c4": { | ||
"label": null, | ||
"balanceDiff": null, | ||
"stateDiff": {} | ||
}, | ||
"0x4816b2c2895f97fb918f1ae7da403750a0ee372e": { | ||
"label": null, | ||
"balanceDiff": null, | ||
"stateDiff": {} | ||
}, | ||
"0x746c675dab49bcd5bb9dc85161f2d7eb435009bf": { | ||
"label": null, | ||
"balanceDiff": null, | ||
"stateDiff": {} | ||
}, | ||
"0x794a61358d6845594f94dc1db02a252b5b4814ad": { | ||
"label": null, | ||
"balanceDiff": null, | ||
"stateDiff": {} | ||
}, | ||
"0x7a7ef57479123f26db6a0e3efbf8a3562edd65be": { | ||
"label": null, | ||
"balanceDiff": null, | ||
"stateDiff": { | ||
"0x8e0cc0f1f0504b4cb44a23b328568106915b169e79003737a7b094503cdbeeb0": { | ||
"previousValue": "0x00000000000000000000000000000000000000000000000020a5277424542328", | ||
"newValue": "0x00000000000000000000000000000000000000000000000020a5277421fc0001" | ||
}, | ||
"0x8e0cc0f1f0504b4cb44a23b328568106915b169e79003737a7b094503cdbeeb1": { | ||
"previousValue": "0x537461626c65636f696e73000000000000000000000000000000000000000016", | ||
"newValue": "0x537461626c65636f696e73000000000000000000000000000000000000000016" | ||
}, | ||
"0xa982d1cb7d68220294ac63c5092ec5248aee8c7ea585ba78b39b5d7ef7f89cb2": { | ||
"previousValue": "0x100000000000000000000103e800098968000000000107d08512292c1b581770", | ||
"newValue": "0x100000000000000000000103e800098968000000000107d08512292c1b580000" | ||
} | ||
} | ||
}, | ||
"0x8145edddf43f50276641b55bd3ad95944510021e": { | ||
"label": null, | ||
"balanceDiff": null, | ||
"stateDiff": {} | ||
}, | ||
"0xa72636cbcaa8f5ff95b2cc47f3cdee83f3294a0b": { | ||
"label": null, | ||
"balanceDiff": null, | ||
"stateDiff": {} | ||
}, | ||
"0xa97684ead0e402dc232d5a977953df7ecbab3cdb": { | ||
"label": null, | ||
"balanceDiff": null, | ||
"stateDiff": {} | ||
}, | ||
"0xff1137243698caa18ee364cc966cf0e02a4e6327": { | ||
"label": null, | ||
"balanceDiff": null, | ||
"stateDiff": { | ||
"0x682542400590cecd25f82cad25103b4dc125cd3511d319539197c8bb9765a74f": { | ||
"previousValue": "0x0067b6ed9a000000000002000000000000000000000000000000000000000000", | ||
"newValue": "0x0067b6ed9a000000000003000000000000000000000000000000000000000000" | ||
}, | ||
"0x682542400590cecd25f82cad25103b4dc125cd3511d319539197c8bb9765a750": { | ||
"previousValue": "0x000000000000000000093a8000000000000067e5121b00000000000000000000", | ||
"newValue": "0x000000000000000000093a8000000000000067e5121b00000000000067b6ed9b" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` |
54 changes: 54 additions & 0 deletions
54
...imism_SUSDRiskParameterAdjustment/AaveV3Optimism_SUSDRiskParameterAdjustment_20250220.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,54 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveV3OptimismAssets, AaveV3OptimismEModes} from 'aave-address-book/AaveV3Optimism.sol'; | ||
import {AaveV3PayloadOptimism} from 'aave-helpers/src/v3-config-engine/AaveV3PayloadOptimism.sol'; | ||
import {EngineFlags} from 'aave-v3-origin/contracts/extensions/v3-config-engine/EngineFlags.sol'; | ||
import {IAaveV3ConfigEngine} from 'aave-v3-origin/contracts/extensions/v3-config-engine/IAaveV3ConfigEngine.sol'; | ||
/** | ||
* @title sUSD Risk Parameter Adjustment | ||
* @author Aave-Chan Initiative | ||
* - Snapshot: https://snapshot.box/#/s:aave.eth/proposal/0x5c744451272991c7fdf8b3830fa2a51fc18dd0e417d95d9c16da765b27f602ff | ||
* - Discussion: https://governance.aave.com/t/arfc-susd-risk-parameter-adjustment/20793 | ||
*/ | ||
contract AaveV3Optimism_SUSDRiskParameterAdjustment_20250220 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.sUSD_UNDERLYING, | ||
ltv: 0, | ||
liqThreshold: EngineFlags.KEEP_CURRENT, | ||
liqBonus: EngineFlags.KEEP_CURRENT, | ||
debtCeiling: EngineFlags.KEEP_CURRENT, | ||
liqProtocolFee: EngineFlags.KEEP_CURRENT | ||
}); | ||
|
||
return collateralUpdate; | ||
} | ||
function eModeCategoriesUpdates() | ||
public | ||
pure | ||
override | ||
returns (IAaveV3ConfigEngine.EModeCategoryUpdate[] memory) | ||
{ | ||
IAaveV3ConfigEngine.EModeCategoryUpdate[] | ||
memory eModeUpdates = new IAaveV3ConfigEngine.EModeCategoryUpdate[](1); | ||
|
||
eModeUpdates[0] = IAaveV3ConfigEngine.EModeCategoryUpdate({ | ||
eModeCategory: AaveV3OptimismEModes.STABLECOINS, | ||
ltv: 1, | ||
liqThreshold: 87_00, | ||
liqBonus: EngineFlags.KEEP_CURRENT, | ||
label: EngineFlags.KEEP_CURRENT_STRING | ||
}); | ||
|
||
return eModeUpdates; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...ism_SUSDRiskParameterAdjustment/AaveV3Optimism_SUSDRiskParameterAdjustment_20250220.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/src/ProtocolV3TestBase.sol'; | ||
import {AaveV3Optimism_SUSDRiskParameterAdjustment_20250220} from './AaveV3Optimism_SUSDRiskParameterAdjustment_20250220.sol'; | ||
|
||
/** | ||
* @dev Test for AaveV3Optimism_SUSDRiskParameterAdjustment_20250220 | ||
* command: FOUNDRY_PROFILE=optimism forge test --match-path=src/20250220_AaveV3Optimism_SUSDRiskParameterAdjustment/AaveV3Optimism_SUSDRiskParameterAdjustment_20250220.t.sol -vv | ||
*/ | ||
contract AaveV3Optimism_SUSDRiskParameterAdjustment_20250220_Test is ProtocolV3TestBase { | ||
AaveV3Optimism_SUSDRiskParameterAdjustment_20250220 internal proposal; | ||
|
||
function setUp() public { | ||
vm.createSelectFork(vm.rpcUrl('optimism'), 132221425); | ||
proposal = new AaveV3Optimism_SUSDRiskParameterAdjustment_20250220(); | ||
} | ||
|
||
/** | ||
* @dev executes the generic test suite including e2e and config snapshots | ||
*/ | ||
function test_defaultProposalExecution() public { | ||
defaultTest( | ||
'AaveV3Optimism_SUSDRiskParameterAdjustment_20250220', | ||
AaveV3Optimism.POOL, | ||
address(proposal) | ||
); | ||
} | ||
} |
83 changes: 83 additions & 0 deletions
83
...50220_AaveV3Optimism_SUSDRiskParameterAdjustment/SUSDRiskParameterAdjustment.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,83 @@ | ||
--- | ||
title: "sUSD Risk Parameter Adjustment" | ||
author: "Aave-Chan Initiative" | ||
discussions: "https://governance.aave.com/t/arfc-susd-risk-parameter-adjustment/20793" | ||
snapshot: "https://snapshot.box/#/s:aave.eth/proposal/0x5c744451272991c7fdf8b3830fa2a51fc18dd0e417d95d9c16da765b27f602ff" | ||
--- | ||
|
||
## Simple Summary | ||
|
||
This proposal continues on the proposed steps from [this post](https://governance.aave.com/t/susd-depeg-update-05-16-2024/17719) by recommending the removal of sUSD as collateral on Aave V3’s Optimism. Additionally, we recommend reducing the LT and LTV of the Stablecoin E-Mode on Optimism, which sUSD is part of, and setting sUSD LTV to 0. | ||
|
||
## Motivation | ||
|
||
This recommendation follows the recent proposal to reduce the supply and borrow cap of sUSD to 10m and 1, respectively; that adjustment follows a period of reduced sUSD DEX liquidity, which dropped to a buy-side low of $2M before recovering after the introduction of token incentives. | ||
|
||
During this period, shorting activity on sUSD was observed between January 9th and January 15th. Following the implementation of token incentives on January 16th, as detailed in [this announcement](https://x.com/synthetix_io/status/1878944713446924552), these short positions were closed, and new borrowing demand primarily originated from users farming the newly introduced incentives. | ||
|
||
Below, we present a table of the current sUSD borrows on Aave and the associated strategy exposure. The distribution of such strategies seems to be quite dispersed, with the recent incentive structure leading to demand to create perpetual positions on Synthetix coupled with liquidity pool growth rather than short positions. | ||
|
||
| User | Action | Size | Date | | ||
| ------------------------------------------ | ------- | ---- | --------------- | | ||
| 0xD8b88C185e06eBF8C58B7dc8b7AFf18304CdD888 | Short | 350k | Jan 9 to Jan 15 | | ||
| 0x49bf093277bf4dde49c48c6aa55a3bda3eedef68 | LP | 150k | 16th | | ||
| 0x407cff84eeaacda390fe302c99fa5dd32521bc53 | Holding | 400k | 16th | | ||
| 0xe31deacee1770dfa56f8849724bcb7f8e5f76ef2 | LP | 130k | 16th | | ||
| 0xf7ca1f0ff0995c84fef530f7c74c69fb80331e81 | Perp | 200k | 16th | | ||
| 0x9644a6920bd0a1923c2c6c1dddf691b7a42e8a65 | Perp+LP | 750k | 16th | | ||
| 0xfd81b27d9796a1ba7d7171ea70010c9befb2a62a | Perp | 380k | 17th | | ||
|
||
### Peg Dynamics and Mechanism Design | ||
|
||
An analysis of the peg and utilization dynamics revealed that the price deviation of sUSD can be attributed to a combination of multiple factors, including traders profiting from the Synthetix Perpetual platform, the lack of interest rate on sUSD debt in an environment of heightened rates, and the ongoing migration to Synthetix V3, which reduces demand for sUSD. This created an imbalance as this excess supply was not met with proportional demand, putting downward pressure on the price of sUSD. This conclusion is supported by the increase in sUSD’s market cap, which closely followed the downward price deviation and the growth in interest rates. | ||
|
||
While this behavior does not pose a risk to sUSD’s fundamental backing, the exit of sUSD’s price from its concentrated liquidity range reduced buy-side liquidity, thereby increasing Aave’s risk to sUSD positions. This liquidity constraint underpinned the recommendation to reduce caps, aiming to mitigate Aave’s risk. | ||
|
||
### Removing sUSD as Collateral | ||
|
||
With the recent deterrence of the creation of new sUSD debt on Aave and continued minimized supply exposure, the majority of outstanding debt is fundamentally leveraged to explicitly contribute to the recent sUSD incentive programs by minimizing effective peg exposure. However, while highly overcollateralized, the current economics associated with the soft peg mechanism is fundamentally shaky; minimizing the usage of sUSD as collateral is recommended to be performed as a preventive measure. The current distribution of such sUSD-collateralized stablecoin debt positions is highly conservative, as can be seen below, thereby requiring a significant depeg to start contributing negatively to the Aave protocol, and the expectation is such that exposure will continue to be minimized over time, as has been the case with a 3M reduction in supply on Aave (25%) over the last 7 days. | ||
|
||
Moreover, during a swift depeg event 7 months ago, we proposed an immediate LTV0 change due to the deprecation of their spot synths contributing to significant downward pressure, as can be seen [here](https://governance.aave.com/t/susd-depeg-update-05-16-2024/17719). The fundamental characteristics of the asset eventually improved once more through mechanical changes on Synthetix’s side in the redemption process, leading to the unfreezing of the asset, as seen in [this](https://governance.aave.com/t/arfc-chaos-labs-parameter-recommendations-susd-on-v3-optimism-05-23-2024/17779) post. However, we continued to reduce exposure significantly in the form of decreasing caps, coupled with decreasing LTV/LTs in both the general market and E-Mode configuration, leading to a more conservative state. As such, a significant buffer of 6% price movement already exists between the collateral value at the LT and the bad debt threshold of 1/(1+LB) in e-mode itself. | ||
|
||
## Recommendation | ||
|
||
To further improve this safety buffer and given the conservative distribution of collateralized debt positions throughout the stablecoin E-Mode config on Optimism, we recommend decreasing the LTV/LT in Stablecoins E-Mode while minimizing induced liquidations. | ||
|
||
Considering the current positioning within the E-Mode, we estimate the optimal LT reduction to be 87%. While we intend to deprecate the E-Mode and remove sUSD from it progressively, this change poses an initial step in that direction. Chaos Labs will monitor the market and introduce additional Liquid E-Modes if demand for a stablecoin-correlated E-Mode remains. | ||
|
||
The change to 87% LT is expected to cause the liquidation of $95K of collateral. | ||
|
||
The liquidations caused at the recommended LT are primarily stablecoins with significant liquidity to support the minimal liquidation size, with sUSD liquidations only representing $2.4K, or 3.2%. | ||
|
||
Additionally, we recommend setting the LTV of sUSD outside of the Stablecoin Correlated E-Mode to 0; this measure will prevent additional borrowing from being performed using sUSD as collateral, hence limiting the future risk posed by an sUSD downward deviation. | ||
|
||
This measure will simultaneously apply to both sUSD parameters within and outside of the E-Mode, hence limiting the opening of new positions. | ||
|
||
Following an improvement of the sUSD peg and a reduction in sUSD-denominated collateral, Chaos Labs will reinstate the borrow cap to a defined value determined by our methodology. | ||
|
||
## Specification | ||
|
||
For the sUSD asset on Aave V3 Optimism instance, we recommend the following: | ||
|
||
| Asset | Deployment | Current LTV | Rec. LTV | | ||
| ----- | ---------- | ----------- | -------- | | ||
| sUSD | Optimism | 60.00% | 0.00% | | ||
|
||
For the Stablecoin E-Mode on Aave V3 Optimism instance, we recommend the following: | ||
|
||
| Parameter | Current Value | Rec. Value | | ||
| ------------------- | ------------- | ---------- | | ||
| LTV | 90.00% | 0.01% | | ||
| LT | 93.00% | 87.00% | | ||
| Liquidation Penalty | 1.00% | 1.00% | | ||
|
||
## References | ||
|
||
- Implementation: [AaveV3Optimism](https://github.com/bgd-labs/aave-proposals-v3/blob/main/src/20250220_AaveV3Optimism_SUSDRiskParameterAdjustment/AaveV3Optimism_SUSDRiskParameterAdjustment_20250220.sol) | ||
- Tests: [AaveV3Optimism](https://github.com/bgd-labs/aave-proposals-v3/blob/main/src/20250220_AaveV3Optimism_SUSDRiskParameterAdjustment/AaveV3Optimism_SUSDRiskParameterAdjustment_20250220.t.sol) | ||
- [Snapshot](https://snapshot.box/#/s:aave.eth/proposal/0x5c744451272991c7fdf8b3830fa2a51fc18dd0e417d95d9c16da765b27f602ff) | ||
- [Discussion](https://governance.aave.com/t/arfc-susd-risk-parameter-adjustment/20793) | ||
|
||
## Copyright | ||
|
||
Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). |
60 changes: 60 additions & 0 deletions
60
...220_AaveV3Optimism_SUSDRiskParameterAdjustment/SUSDRiskParameterAdjustment_20250220.s.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,60 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {GovV3Helpers, IPayloadsControllerCore, PayloadsControllerUtils} from 'aave-helpers/src/GovV3Helpers.sol'; | ||
import {GovernanceV3Ethereum} from 'aave-address-book/GovernanceV3Ethereum.sol'; | ||
import {EthereumScript, OptimismScript} from 'solidity-utils/contracts/utils/ScriptUtils.sol'; | ||
import {AaveV3Optimism_SUSDRiskParameterAdjustment_20250220} from './AaveV3Optimism_SUSDRiskParameterAdjustment_20250220.sol'; | ||
|
||
/** | ||
* @dev Deploy Optimism | ||
* deploy-command: make deploy-ledger contract=src/20250220_AaveV3Optimism_SUSDRiskParameterAdjustment/SUSDRiskParameterAdjustment_20250220.s.sol:DeployOptimism chain=optimism | ||
* verify-command: FOUNDRY_PROFILE=optimism npx catapulta-verify -b broadcast/SUSDRiskParameterAdjustment_20250220.s.sol/10/run-latest.json | ||
*/ | ||
contract DeployOptimism is OptimismScript { | ||
function run() external broadcast { | ||
// deploy payloads | ||
address payload0 = GovV3Helpers.deployDeterministic( | ||
type(AaveV3Optimism_SUSDRiskParameterAdjustment_20250220).creationCode | ||
); | ||
|
||
// compose action | ||
IPayloadsControllerCore.ExecutionAction[] | ||
memory actions = new IPayloadsControllerCore.ExecutionAction[](1); | ||
actions[0] = GovV3Helpers.buildAction(payload0); | ||
|
||
// register action at payloadsController | ||
GovV3Helpers.createPayload(actions); | ||
} | ||
} | ||
|
||
/** | ||
* @dev Create Proposal | ||
* command: make deploy-ledger contract=src/20250220_AaveV3Optimism_SUSDRiskParameterAdjustment/SUSDRiskParameterAdjustment_20250220.s.sol:CreateProposal chain=mainnet | ||
*/ | ||
contract CreateProposal is EthereumScript { | ||
function run() external { | ||
// create payloads | ||
PayloadsControllerUtils.Payload[] memory payloads = new PayloadsControllerUtils.Payload[](1); | ||
|
||
// compose actions for validation | ||
IPayloadsControllerCore.ExecutionAction[] | ||
memory actionsOptimism = new IPayloadsControllerCore.ExecutionAction[](1); | ||
actionsOptimism[0] = GovV3Helpers.buildAction( | ||
type(AaveV3Optimism_SUSDRiskParameterAdjustment_20250220).creationCode | ||
); | ||
payloads[0] = GovV3Helpers.buildOptimismPayload(vm, actionsOptimism); | ||
|
||
// create proposal | ||
vm.startBroadcast(); | ||
GovV3Helpers.createProposal( | ||
vm, | ||
payloads, | ||
GovernanceV3Ethereum.VOTING_PORTAL_ETH_POL, | ||
GovV3Helpers.ipfsHashFile( | ||
vm, | ||
'src/20250220_AaveV3Optimism_SUSDRiskParameterAdjustment/SUSDRiskParameterAdjustment.md' | ||
) | ||
); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
src/20250220_AaveV3Optimism_SUSDRiskParameterAdjustment/config.ts
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,40 @@ | ||
import {ConfigFile} from '../../generator/types'; | ||
export const config: ConfigFile = { | ||
rootOptions: { | ||
author: 'Aave-Chan Initiative', | ||
pools: ['AaveV3Optimism'], | ||
title: 'sUSD Risk Parameter Adjustment', | ||
shortName: 'SUSDRiskParameterAdjustment', | ||
date: '20250220', | ||
discussion: 'https://governance.aave.com/t/arfc-susd-risk-parameter-adjustment/20793', | ||
snapshot: | ||
'https://snapshot.box/#/s:aave.eth/proposal/0x5c744451272991c7fdf8b3830fa2a51fc18dd0e417d95d9c16da765b27f602ff', | ||
votingNetwork: 'POLYGON', | ||
}, | ||
poolOptions: { | ||
AaveV3Optimism: { | ||
configs: { | ||
COLLATERALS_UPDATE: [ | ||
{ | ||
asset: 'sUSD', | ||
ltv: '0', | ||
liqThreshold: '', | ||
liqBonus: '', | ||
debtCeiling: '', | ||
liqProtocolFee: '', | ||
}, | ||
], | ||
EMODES_UPDATES: [ | ||
{ | ||
eModeCategory: 'AaveV3OptimismEModes.STABLECOINS', | ||
ltv: '0.01', | ||
liqThreshold: '87', | ||
liqBonus: '', | ||
label: '', | ||
}, | ||
], | ||
}, | ||
cache: {blockNumber: 132221425}, | ||
}, | ||
}, | ||
}; |
eb25966
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌈Test Results
Compiling 332 files with Solc 0.8.22 Solc 0.8.22 finished in 164.63s Compiler run successful! 2025-02-26T08:08:24.450088Z ERROR cheatcodes: non-empty stderr input=["npx", "@bgd-labs/aave-cli@^1.1.17", "diff-snapshots", "./reports/AaveV3Optimism_SUSDRiskParameterAdjustment_20250220_before.json", "./reports/AaveV3Optimism_SUSDRiskParameterAdjustment_20250220_after.json", "-o", "./diffs/AaveV3Optimism_SUSDRiskParameterAdjustment_20250220_before_AaveV3Optimism_SUSDRiskParameterAdjustment_20250220_after.md"] stderr="npm warn exec The following package was not found and will be installed: @bgd-labs/[email protected]\nfile:///home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/@bgd-labs/aave-cli/dist/cli.js:948\n address: bytes32ToAddress(raw[contract].stateDiff[erc1967ImplSlot].previousValue)\n ^\n\nTypeError: Cannot read properties of undefined (reading 'previousValue')\n at file:///home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/@bgd-labs/aave-cli/dist/cli.js:948:82\n at Array.map ()\n at diffRawStorage (file:///home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/@bgd-labs/aave-cli/dist/cli.js:929:22)\n at diffReports (file:///home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/@bgd-labs/aave-cli/dist/cli.js:1084:5)\n at Command. (file:///home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/@bgd-labs/aave-cli/dist/cli.js:1133:27)\n at Command.listener [as _actionHandler] (/home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/commander/lib/command.js:542:17)\n at /home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/commander/lib/command.js:1502:14\n at Command._chainOrCall (/home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/commander/lib/command.js:1386:12)\n at Command._parseCommand (/home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/commander/lib/command.js:1501:27)\n at /home/runner/.npm/_npx/bde9fde5cd15b9c3/node_modules/commander/lib/command.js:1265:27\n\nNode.js v20.18.3\n"Ran 1 test for src/20250220_AaveV3Optimism_SUSDRiskParameterAdjustment/AaveV3Optimism_SUSDRiskParameterAdjustment_20250220.t.sol:AaveV3Optimism_SUSDRiskParameterAdjustment_20250220_Test
[PASS] test_defaultProposalExecution() (gas: 47164352)
Logs:
0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1
0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6
0x7F5c764cBc14f9669B88837ca1490cCa17c31607
0x68f180fcCe6836688e9084f035309E29Bf0A2095
0x4200000000000000000000000000000000000006
0x94b008aA00579c1307B0EF2c499aD98a8ce58e58
0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9
0x4200000000000000000000000000000000000042
0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb
0xc40F949F8a4e094D1b49a23ea9241D289B7b2819
0xdFA46478F9e5EA86d57387849598dbFB2e964b02
0x9Bcef72be871e61ED4fBbc7630889beE758eb81D
0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85
E2E: Collateral DAI, TestAsset DAI
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: DAI, Amount: 10000480223060311356151
WITHDRAW: DAI, Amount: 5000240111530155678075
WITHDRAW: DAI, Amount: 5000240111530155678077
BORROW: DAI, Amount 10000480223060311356151
REPAY: DAI, Amount: 10000480223060311356151
REPAY: DAI, Amount: 10000480223060311356151
BORROW: DAI, Amount 10000480223060311356151
LIQUIDATE: DAI, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10000480223060311356150
LIQUIDATE: DAI, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10000480223060311356150
E2E: Collateral DAI, TestAsset LINK
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: LINK, Amount: 552139346719767748105
WITHDRAW: LINK, Amount: 276069673359883874052
WITHDRAW: LINK, Amount: 276069673359883874052
BORROW: LINK, Amount 552139346719767748105
REPAY: LINK, Amount: 552139346719767748105
REPAY: LINK, Amount: 552139346719767748105
BORROW: LINK, Amount 552139346719767748105
LIQUIDATE: LINK, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 552139346719767748106
LIQUIDATE: LINK, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 552139346719767748106
E2E: Collateral DAI, TestAsset USDC
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: USDC, Amount: 10000865674
WITHDRAW: USDC, Amount: 5000432837
WITHDRAW: USDC, Amount: 5000432836
BORROW: USDC, Amount 10000865674
REPAY: USDC, Amount: 10000865674
REPAY: USDC, Amount: 10000865674
BORROW: USDC, Amount 10000865674
LIQUIDATE: USDC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10000865674
LIQUIDATE: USDC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10000865674
E2E: Collateral DAI, TestAsset WBTC
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: WBTC, Amount: 10304641
WITHDRAW: WBTC, Amount: 5152320
WITHDRAW: WBTC, Amount: 5152321
BORROW: WBTC, Amount 10304641
REPAY: WBTC, Amount: 10304641
REPAY: WBTC, Amount: 10304641
BORROW: WBTC, Amount 10304641
LIQUIDATE: WBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10304641
LIQUIDATE: WBTC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10304641
E2E: Collateral DAI, TestAsset WETH
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: WETH, Amount: 3658105821099895846
WITHDRAW: WETH, Amount: 1829052910549947923
WITHDRAW: WETH, Amount: 1829052910549947923
BORROW: WETH, Amount 3658105821099895846
REPAY: WETH, Amount: 3658105821099895846
REPAY: WETH, Amount: 3658105821099895846
BORROW: WETH, Amount 3658105821099895846
LIQUIDATE: WETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3658105821099895845
LIQUIDATE: WETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3658105821099895845
E2E: Collateral DAI, TestAsset USDT
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: USDT, Amount: 10001766211
WITHDRAW: USDT, Amount: 5000883105
WITHDRAW: USDT, Amount: 5000883107
BORROW: USDT, Amount 10001766211
REPAY: USDT, Amount: 10001766211
REPAY: USDT, Amount: 10001766211
BORROW: USDT, Amount 10001766211
LIQUIDATE: USDT, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10001766211
LIQUIDATE: USDT, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10001766211
E2E: Collateral DAI, TestAsset AAVE
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: AAVE, Amount: 39078281536550725504
WITHDRAW: AAVE, Amount: 19539140768275362752
WITHDRAW: AAVE, Amount: 19539140768275362751
E2E: Collateral DAI, TestAsset sUSD
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: sUSD, Amount: 10256069754894393916378
WITHDRAW: sUSD, Amount: 5128034877447196958189
WITHDRAW: sUSD, Amount: 5128034877447196958190
BORROW: sUSD, Amount 10256069754894393916378
REPAY: sUSD, Amount: 10256069754894393916378
REPAY: sUSD, Amount: 10256069754894393916378
BORROW: sUSD, Amount 10256069754894393916378
LIQUIDATE: sUSD, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10256069754894393916378
LIQUIDATE: sUSD, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10256069754894393916378
E2E: Collateral DAI, TestAsset OP
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: OP, Amount: 8718091784070302692146
WITHDRAW: OP, Amount: 4359045892035151346073
WITHDRAW: OP, Amount: 4359045892035151346074
BORROW: OP, Amount 8718091784070302692146
REPAY: OP, Amount: 8718091784070302692146
REPAY: OP, Amount: 8718091784070302692146
BORROW: OP, Amount 8718091784070302692146
LIQUIDATE: OP, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 8718091784070302692146
LIQUIDATE: OP, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 8718091784070302692146
E2E: Collateral DAI, TestAsset wstETH
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: wstETH, Amount: 3062722507258366023
WITHDRAW: wstETH, Amount: 1531361253629183011
WITHDRAW: wstETH, Amount: 1531361253629183013
BORROW: wstETH, Amount 3062722507258366023
REPAY: wstETH, Amount: 3062722507258366023
REPAY: wstETH, Amount: 3062722507258366023
BORROW: wstETH, Amount 3062722507258366023
LIQUIDATE: wstETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3062722507258366023
LIQUIDATE: wstETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3062722507258366023
E2E: Collateral DAI, TestAsset LUSD
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: LUSD, Amount: 10011901347369645244695
WITHDRAW: LUSD, Amount: 5005950673684822622347
WITHDRAW: LUSD, Amount: 5005950673684822622347
BORROW: LUSD, Amount 10011901347369645244695
REPAY: LUSD, Amount: 10011901347369645244695
REPAY: LUSD, Amount: 10011901347369645244695
BORROW: LUSD, Amount 10011901347369645244695
LIQUIDATE: LUSD, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10011901347369645244696
LIQUIDATE: LUSD, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10011901347369645244696
E2E: TestAsset MAI SKIPPED
E2E: Collateral DAI, TestAsset rETH
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: rETH, Amount: 3240051359940464318
WITHDRAW: rETH, Amount: 1620025679970232159
WITHDRAW: rETH, Amount: 1620025679970232160
BORROW: rETH, Amount 3240051359940464318
REPAY: rETH, Amount: 3240051359940464318
REPAY: rETH, Amount: 3240051359940464318
BORROW: rETH, Amount 3240051359940464318
LIQUIDATE: rETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3240051359940464318
LIQUIDATE: rETH, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 3240051359940464318
E2E: Collateral DAI, TestAsset USDC
SUPPLY: DAI, Amount: 100004802230603113561513
SUPPLY: USDC, Amount: 10000865674
WITHDRAW: USDC, Amount: 5000432837
WITHDRAW: USDC, Amount: 5000432837
BORROW: USDC, Amount 10000865674
REPAY: USDC, Amount: 10000865674
REPAY: USDC, Amount: 10000865674
BORROW: USDC, Amount 10000865674
LIQUIDATE: USDC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10000865674
LIQUIDATE: USDC, Amount: 115792089237316195423570985008687907853269984665640564039457584007913129639935, Debt Amount: 10000865674
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 82.62s (81.99s CPU time)
Ran 1 test suite in 82.63s (82.62s CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests)