Skip to content

Commit

Permalink
Merge pull request #27 from ChaosLabsInc/chaos/mainnet_caps_increase_…
Browse files Browse the repository at this point in the history
…20230928

Mainnet Caps Increase 20230928
  • Loading branch information
yonikesel authored Oct 18, 2023
2 parents 19f45f2 + b1a2ce3 commit d4f1f79
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ mainnet-contract:; forge script ${contract_path} --rpc-url mainnet --sig "run(bo
optimism-contract:; forge script ${contract_path} --rpc-url optimism --sig "run(bool)" false -vv
arbitrum-contract:; forge script ${contract_path} --rpc-url arbitrum --sig "run(bool)" false -vv
metis-contract:; forge script ${contract_path} --rpc-url metis --sig "run(bool)" false -vv
base-contract:; forge script ${contract_path} --rpc-url base --sig "run(bool)" false -vv

# only emit
mainnet-example:; forge script src/MainnetExample.s.sol:MainnetExample --rpc-url mainnet --sig "run(bool)" false -vv
Expand All @@ -28,9 +29,6 @@ optimism-example:; forge script src/OptimismExample.s.sol:OptimismExample --rpc-
arbitrum-example:; forge script src/ArbitrumExample.s.sol:ArbitrumExample --rpc-url arbitrum --sig "run(bool)" false -vv
avalanche-example:; forge script src/AvalancheExample.s.sol:AvalancheExample --rpc-url avalanche --sig "run(bool)" false -vv

mainnet-contract:; forge script ${contract_path} --rpc-url mainnet --sig "run(bool)" false -vv
arbitrum-contract:; forge script ${contract_path} --rpc-url arbitrum --sig "run(bool)" false -vv
base-contract:; forge script ${contract_path} --rpc-url base --sig "run(bool)" false -vv

# Broadcast to safe backend
safe-mainnet-example:; forge script src/MainnetExample.s.sol:MainnetExample --rpc-url mainnet --sig "run(bool)" true -vv
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Reserve changes

### Reserve altered

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

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 12,000,000 LUSD | 18,000,000 LUSD |


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

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 300,000,000 USDT | 600,000,000 USDT |
| borrowCap | 250,000,000 USDT | 500,000,000 USDT |


## Raw diff

```json
{
"reserves": {
"0x5f98805A4E8be255a32880FDeC7F6728C6568bA0": {
"supplyCap": {
"from": 12000000,
"to": 18000000
}
},
"0xdAC17F958D2ee523a2206206994597C13D831ec7": {
"borrowCap": {
"from": 250000000,
"to": 500000000
},
"supplyCap": {
"from": 300000000,
"to": 600000000
}
}
}
}
```
42 changes: 42 additions & 0 deletions src/MainnetCapsIncrease_20230928.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {CapsPlusRiskStewardMainnet} from '../scripts/CapsPlusRiskStewardMainnet.s.sol';
import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol';

/**
* @title Update Borrow Caps on Ethereum V3
* @author @ChaosLabsInc
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-v3-ethereum-09-25-2023/14950
*/
contract MainnetCapsIncrease_20230928 is CapsPlusRiskStewardMainnet {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'mainnetCapsIncrease_20230928';
}

/**
* @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed
*/
function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) {
IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](2);

capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3EthereumAssets.LUSD_UNDERLYING,
18_000_000,
EngineFlags.KEEP_CURRENT
);

capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3EthereumAssets.USDT_UNDERLYING,
600_000_000,
500_000_000
);

return capUpdates;
}
}

0 comments on commit d4f1f79

Please sign in to comment.