Skip to content

Commit

Permalink
Merge pull request #49 from bgd-labs/chaoslabs/mainnet_caps_increase_…
Browse files Browse the repository at this point in the history
…20240109

Ethereum FXS, USDT Caps Increase
  • Loading branch information
eyalovadya authored Feb 20, 2024
2 parents c61b300 + c098912 commit a18d4c7
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Reserve changes

### Reserve altered

#### FXS ([0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0](https://etherscan.io/address/0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 800,000 FXS | 1,200,000 FXS |


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

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 600,000,000 USDT | 800,000,000 USDT |
| borrowCap | 550,000,000 USDT | 750,000,000 USDT |


## Raw diff

```json
{
"reserves": {
"0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0": {
"supplyCap": {
"from": 800000,
"to": 1200000
}
},
"0xdAC17F958D2ee523a2206206994597C13D831ec7": {
"borrowCap": {
"from": 550000000,
"to": 750000000
},
"supplyCap": {
"from": 600000000,
"to": 800000000
}
}
}
}
```
42 changes: 42 additions & 0 deletions src/MainnetCapsIncrease_20240109.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 Increase 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-01-05-2024/16072
*/
contract MainnetCapsIncrease_20240109 is CapsPlusRiskStewardMainnet {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'mainnetCapsIncrease_20240109';
}

/**
* @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.FXS_UNDERLYING,
1_200_000,
EngineFlags.KEEP_CURRENT
);

capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3EthereumAssets.USDT_UNDERLYING,
800_000_000,
750_000_000
);

return capUpdates;
}
}

0 comments on commit a18d4c7

Please sign in to comment.