Skip to content

Commit

Permalink
Merge pull request #60 from bgd-labs/chaoslabs/mainnet_pyusd_caps_inc…
Browse files Browse the repository at this point in the history
…rease_20240301

Mainnet pyUSD Caps Increase 20240301
  • Loading branch information
eyalovadya authored Mar 12, 2024
2 parents 56d2a2f + f784863 commit 5506505
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Reserve changes

### Reserves altered

#### PYUSD ([0x6c3ea9036406852006290770BEdFcAbA0e23A0e8](https://etherscan.io/address/0x6c3ea9036406852006290770BEdFcAbA0e23A0e8))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 20,000,000 PYUSD | 40,000,000 PYUSD |
| borrowCap | 9,000,000 PYUSD | 18,000,000 PYUSD |


## Raw diff

```json
{
"reserves": {
"0x6c3ea9036406852006290770BEdFcAbA0e23A0e8": {
"borrowCap": {
"from": 9000000,
"to": 18000000
},
"supplyCap": {
"from": 20000000,
"to": 40000000
}
}
}
}
```
35 changes: 35 additions & 0 deletions src/MainnetPyUSDCapsIncrease_20240301.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// 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 pyUSD Caps on Ethereum V3
* @author @ChaosLabsInc
*/
contract MainnetPyUSDCapsIncrease_20240301 is CapsPlusRiskStewardMainnet {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'mainnetPyUSDCapsIncrease_20240301';
}

/**
* @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.PYUSD_UNDERLYING,
40_000_000,
18_000_000
);

return capUpdates;
}
}

0 comments on commit 5506505

Please sign in to comment.