Skip to content

Commit

Permalink
Merge pull request #68 from bgd-labs/chaoslabs/usdt_caps_increase_pol…
Browse files Browse the repository at this point in the history
…ygon_mainnet_20240315

Increase USDT Caps on Ethereum and Polygon
  • Loading branch information
eyalovadya authored Mar 30, 2024
2 parents 045d209 + 234beee commit d5f5abc
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}
```
36 changes: 36 additions & 0 deletions src/MainnetUSDTCapsIncrease_20240315.s.sol
Original file line number Diff line number Diff line change
@@ -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;
}
}
36 changes: 36 additions & 0 deletions src/PolygonUSDTCapsIncrease_20240315.s.sol
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit d5f5abc

Please sign in to comment.