generated from bgd-labs/bgd-forge-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from bgd-labs/chaoslabs/arbitrum_caps_increase…
…_20240312 Arbitrum Caps Increase 20240312
- Loading branch information
Showing
2 changed files
with
147 additions
and
0 deletions.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
diffs/pre_arbitrum_caps_increase_20240312_post_arbitrum_caps_increase_20240312.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,87 @@ | ||
## Reserve changes | ||
|
||
### Reserve altered | ||
|
||
#### EURS ([0xD22a58f79e9481D1a88e00c343885A588b34b68B](https://arbiscan.io/address/0xD22a58f79e9481D1a88e00c343885A588b34b68B)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 65,000 EURS | 80,000 EURS | | ||
|
||
|
||
#### USDT ([0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9](https://arbiscan.io/address/0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 50,000,000 USDT | 100,000,000 USDT | | ||
| borrowCap | 35,000,000 USDT | 70,000,000 USDT | | ||
|
||
|
||
#### USDC ([0xaf88d065e77c8cC2239327C5EDb3A432268e5831](https://arbiscan.io/address/0xaf88d065e77c8cC2239327C5EDb3A432268e5831)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 128,000,000 USDC | 200,000,000 USDC | | ||
| borrowCap | 120,000,000 USDC | 180,000,000 USDC | | ||
|
||
|
||
#### AAVE ([0xba5DdD1f9d7F570dc94a51479a000E3BCE967196](https://arbiscan.io/address/0xba5DdD1f9d7F570dc94a51479a000E3BCE967196)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 1,850 AAVE | 3,600 AAVE | | ||
|
||
|
||
#### LINK ([0xf97f4df75117a78c1A5a0DBb814Af92458539FB4](https://arbiscan.io/address/0xf97f4df75117a78c1A5a0DBb814Af92458539FB4)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 1,800,000 LINK | 2,000,000 LINK | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0xD22a58f79e9481D1a88e00c343885A588b34b68B": { | ||
"supplyCap": { | ||
"from": 65000, | ||
"to": 80000 | ||
} | ||
}, | ||
"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": { | ||
"borrowCap": { | ||
"from": 35000000, | ||
"to": 70000000 | ||
}, | ||
"supplyCap": { | ||
"from": 50000000, | ||
"to": 100000000 | ||
} | ||
}, | ||
"0xaf88d065e77c8cC2239327C5EDb3A432268e5831": { | ||
"borrowCap": { | ||
"from": 120000000, | ||
"to": 180000000 | ||
}, | ||
"supplyCap": { | ||
"from": 128000000, | ||
"to": 200000000 | ||
} | ||
}, | ||
"0xba5DdD1f9d7F570dc94a51479a000E3BCE967196": { | ||
"supplyCap": { | ||
"from": 1850, | ||
"to": 3600 | ||
} | ||
}, | ||
"0xf97f4df75117a78c1A5a0DBb814Af92458539FB4": { | ||
"supplyCap": { | ||
"from": 1800000, | ||
"to": 2000000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
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 {AaveV3ArbitrumAssets} from 'aave-address-book/AaveV3Arbitrum.sol'; | ||
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; | ||
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; | ||
import {CapsPlusRiskStewardArbitrum} from '../scripts/CapsPlusRiskStewardArbitrum.s.sol'; | ||
|
||
/** | ||
* @title Update Caps on Arbitrum V3 | ||
* @author Chaos Labs | ||
* - Discussion: https://governance.aave.com/t/chaos-labs-risk-stewards-supply-and-borrow-cap-recommendation-on-v3-arbitrum-03-12-24/16936 | ||
*/ | ||
contract ArbitrumCapsIncrease_20240312 is CapsPlusRiskStewardArbitrum { | ||
/** | ||
* @return string name identifier used for the diff | ||
*/ | ||
function name() internal pure override returns (string memory) { | ||
return 'arbitrum_caps_increase_20240312'; | ||
} | ||
|
||
/** | ||
* @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed | ||
*/ | ||
function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { | ||
IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](5); | ||
|
||
capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3ArbitrumAssets.LINK_UNDERLYING, | ||
2_000_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3ArbitrumAssets.AAVE_UNDERLYING, | ||
3_600, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[2] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3ArbitrumAssets.EURS_UNDERLYING, | ||
80_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[3] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3ArbitrumAssets.USDCn_UNDERLYING, | ||
200_000_000, | ||
180_000_000 | ||
); | ||
|
||
capUpdates[4] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3ArbitrumAssets.USDT_UNDERLYING, | ||
100_000_000, | ||
70_000_000 | ||
); | ||
|
||
return capUpdates; | ||
} | ||
} |