Skip to content

Commit

Permalink
Merge pull request #57 from bgd-labs/chaoslabs/bnb_fdusd_caps_increas…
Browse files Browse the repository at this point in the history
…e_20240229

BNB FDUSD Caps Increase 20240229
  • Loading branch information
eyalovadya authored Mar 12, 2024
2 parents a9e70d5 + e95600d commit 9619257
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ metis-contract:; forge script ${contract_path} --rpc-url metis --sig "run(bool)"
base-contract:; forge script ${contract_path} --rpc-url base --sig "run(bool)" false -vv
gnosis-contract:; forge script ${contract_path} --rpc-url gnosis --sig "run(bool)" false -vv
scroll-contract:; forge script ${contract_path} --rpc-url scroll --sig "run(bool)" false -vv
bnb-contract:; forge script ${contract_path} --rpc-url bnb --sig "run(bool)" false -vv

# only emit
mainnet-example:; forge script src/MainnetExample.s.sol:MainnetExample --rpc-url mainnet --sig "run(bool)" false -vv
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Reserve changes

### Reserves altered

#### FDUSD ([0xc5f0f7b66764F6ec8C8Dff7BA683102295E16409](https://bscscan.com/address/0xc5f0f7b66764F6ec8C8Dff7BA683102295E16409))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 8,000,000 FDUSD | 12,000,000 FDUSD |
| borrowCap | 7,500,000 FDUSD | 10,800,000 FDUSD |


## Raw diff

```json
{
"reserves": {
"0xc5f0f7b66764F6ec8C8Dff7BA683102295E16409": {
"borrowCap": {
"from": 7500000,
"to": 10800000
},
"supplyCap": {
"from": 8000000,
"to": 12000000
}
}
}
}
```
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ metis = "${RPC_METIS}"
base = "${RPC_BASE}"
gnosis = "${RPC_GNOSIS}"
scroll = "${RPC_SCROLL}"
bnb = "${RPC_BNB}"

[etherscan]
mainnet = { key="${ETHERSCAN_API_KEY_MAINNET}", chainId=1 }
Expand Down
10 changes: 10 additions & 0 deletions scripts/CapsPlusRiskStewardBNB.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {AaveGovernanceV2} from 'aave-address-book/AaveGovernanceV2.sol';
import {AaveV3BNB} from 'aave-address-book/AaveV3BNB.sol';
import {CapsPlusRiskStewardBase} from './CapsPlusRiskStewardBase.s.sol';

abstract contract CapsPlusRiskStewardBNB is CapsPlusRiskStewardBase {
constructor() CapsPlusRiskStewardBase(AaveV3BNB.POOL, AaveV3BNB.CAPS_PLUS_RISK_STEWARD) {}
}
36 changes: 36 additions & 0 deletions src/BnbFDUSDCapsIncrease_20240229.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 {AaveV3BNBAssets} from 'aave-address-book/AaveV3BNB.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {CapsPlusRiskStewardBNB} from '../scripts/CapsPlusRiskStewardBNB.s.sol';

/**
* @title Update FDUSD Caps on BNB V3
* @author Chaos Labs - eyalovadya
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-fdusd-supply-and-borrow-cap-on-v3-bnbchain-03-01-2024/16801
*/
contract BnbFDUSDCapsIncrease_20240229 is CapsPlusRiskStewardBNB {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'bnb_fdusd_caps_increase_20240229';
}

/**
* @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(
AaveV3BNBAssets.FDUSD_UNDERLYING,
12_000_000,
10_800_000
);

return capUpdates;
}
}

0 comments on commit 9619257

Please sign in to comment.