diff --git a/diffs/pre_mainnetUSDTCapsIncrease_20240315_post_mainnetUSDTCapsIncrease_20240315.md b/diffs/pre_mainnetUSDTCapsIncrease_20240315_post_mainnetUSDTCapsIncrease_20240315.md new file mode 100644 index 0000000..1f58761 --- /dev/null +++ b/diffs/pre_mainnetUSDTCapsIncrease_20240315_post_mainnetUSDTCapsIncrease_20240315.md @@ -0,0 +1,30 @@ +## Reserve changes + +### Reserves altered + +#### USDT ([0xdAC17F958D2ee523a2206206994597C13D831ec7](https://etherscan.io/address/0xdAC17F958D2ee523a2206206994597C13D831ec7)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 1,000,000,000 USDT | 1,500,000,000 USDT | +| borrowCap | 930,000,000 USDT | 1,400,000,000 USDT | + + +## Raw diff + +```json +{ + "reserves": { + "0xdAC17F958D2ee523a2206206994597C13D831ec7": { + "borrowCap": { + "from": 930000000, + "to": 1400000000 + }, + "supplyCap": { + "from": 1000000000, + "to": 1500000000 + } + } + } +} +``` \ No newline at end of file diff --git a/diffs/pre_polygonUSDTCapsIncrease_20240315_post_polygonUSDTCapsIncrease_20240315.md b/diffs/pre_polygonUSDTCapsIncrease_20240315_post_polygonUSDTCapsIncrease_20240315.md new file mode 100644 index 0000000..444b7d8 --- /dev/null +++ b/diffs/pre_polygonUSDTCapsIncrease_20240315_post_polygonUSDTCapsIncrease_20240315.md @@ -0,0 +1,30 @@ +## Reserve changes + +### Reserves altered + +#### USDT ([0xc2132D05D31c914a87C6611C10748AEb04B58e8F](https://polygonscan.com/address/0xc2132D05D31c914a87C6611C10748AEb04B58e8F)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 45,000,000 USDT | 90,000,000 USDT | +| borrowCap | 45,000,000 USDT | 85,000,000 USDT | + + +## Raw diff + +```json +{ + "reserves": { + "0xc2132D05D31c914a87C6611C10748AEb04B58e8F": { + "borrowCap": { + "from": 45000000, + "to": 85000000 + }, + "supplyCap": { + "from": 45000000, + "to": 90000000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/MainnetUSDTCapsIncrease_20240315.s.sol b/src/MainnetUSDTCapsIncrease_20240315.s.sol new file mode 100644 index 0000000..3de1a21 --- /dev/null +++ b/src/MainnetUSDTCapsIncrease_20240315.s.sol @@ -0,0 +1,36 @@ +// 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 USDT Caps on Ethereum V3 + * @author Chaos Labs + * Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-cap-for-usdt-on-v3-ethereum-and-polygon-03-15-2024/16980 + */ +contract MainnetUSDTCapsIncrease_20240315 is CapsPlusRiskStewardMainnet { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'mainnetUSDTCapsIncrease_20240315'; + } + + /** + * @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed + */ + function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { + IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](1); + + capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3EthereumAssets.USDT_UNDERLYING, + 1_500_000_000, + 1_400_000_000 + ); + + return capUpdates; + } +} diff --git a/src/PolygonUSDTCapsIncrease_20240315.s.sol b/src/PolygonUSDTCapsIncrease_20240315.s.sol new file mode 100644 index 0000000..0701d98 --- /dev/null +++ b/src/PolygonUSDTCapsIncrease_20240315.s.sol @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3PolygonAssets} from 'aave-address-book/AaveV3Polygon.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardPolygon} from '../scripts/CapsPlusRiskStewardPolygon.s.sol'; + +/** + * @title Increase USDT Caps on Polygon V3 + * @author Chaos Labs + * Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-cap-for-usdt-on-v3-ethereum-and-polygon-03-15-2024/16980 + */ +contract PolygonUSDTCapsIncrease_20240315 is CapsPlusRiskStewardPolygon { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'polygonUSDTCapsIncrease_20240315'; + } + + /** + * @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed + */ + function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { + IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](1); + + capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3PolygonAssets.USDT_UNDERLYING, + 90_000_000, + 85_000_000 + ); + + return capUpdates; + } +}