Skip to content

Commit

Permalink
Merge pull request #20 from ChaosLabsInc/chaoslabs/ethereum_caps_incr…
Browse files Browse the repository at this point in the history
…ease_2023070727

Ethereum V3 RPL Cap Increase 20230727
  • Loading branch information
yonikesel authored Jul 27, 2023
2 parents b1ff6b4 + 4956277 commit cdf658c
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Reserve changes

### Reserves altered

#### RPL ([0xD33526068D116cE69F19A9ee46F0bd304F21A51f](https://etherscan.io/address/0xD33526068D116cE69F19A9ee46F0bd304F21A51f))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 105,000 RPL | 210,000 RPL |


## Raw diff

```json
{
"reserves": {
"0xD33526068D116cE69F19A9ee46F0bd304F21A51f": {
"supplyCap": {
"from": 105000,
"to": 210000
}
}
}
}
```
38 changes: 38 additions & 0 deletions src/MainnetCapsIncrease_20230727.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// 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';

/**
* @title Update Supply Caps for RPL on Ethereum V3
* @author @ChaosLabsInc
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-caps-rpl-on-v3-ethereum/14123
*/
contract MainnetCapsIncrease_20230727 is CapsPlusRiskStewardMainnet {
address public constant RPL_UNDERLYING_ADDRESS = 0xD33526068D116cE69F19A9ee46F0bd304F21A51f;

/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'mainnetCapsIncrease_20230727';
}

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

// RPL
capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate(
RPL_UNDERLYING_ADDRESS,
210_000,
EngineFlags.KEEP_CURRENT
);

return capUpdates;
}
}

0 comments on commit cdf658c

Please sign in to comment.