Skip to content

Commit

Permalink
feat: 302 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Mar 5, 2024
1 parent d8abf37 commit 6002022
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ Deployments on new chains can be done permissionlessly by anyone using the inclu
ape run scripts/deploy.py --network YOUR_RPC_URL
```

If the deployments do not end at the same address you can also manually send the calldata used in the previous deployments on other chains.

### To make a contribution please follow the [guidelines](https://github.com/yearn/yearn-vaults-v3/bloc/master/CONTRIBUTING.md)

See the ApeWorx [documentation](https://docs.apeworx.io/ape/stable/) and [github](https://github.com/ApeWorX/ape) for more information.
Expand Down
2 changes: 1 addition & 1 deletion TECH_SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ The DEPOSIT_LIMIT_MANAGER is in charge of setting the deposit_limit or a deposit

On deployment deposit_limit defaults to 0 and will need to be increased to make the vault functional

The deposit_limit will have to be set to MAX_UINT256 in order to set a deposit_limit_module, and the module will have to be address 0 to adjust the deposit_limit.
The deposit_limit will have to be set to MAX_UINT256 in order to set a deposit_limit_module, and the module will have to be address 0 to adjust the deposit_limit. Or the DEPOSIT_LIMIT_MANAGER can use the option `override` flags to do this in one step.

#### Setting the withdraw limit module
The WITHDRAW_LIMIT_MANAGER is in charge of setting the withdraw_limit_module for the vault
Expand Down
10 changes: 10 additions & 0 deletions contracts/interfaces/IVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,20 @@ interface IVault is IERC4626 {

function set_deposit_limit(uint256 deposit_limit) external;

function set_deposit_limit(
uint256 deposit_limit,
bool should_override
) external;

function set_deposit_limit_module(
address new_deposit_limit_module
) external;

function set_deposit_limit_module(
address new_deposit_limit_module,
bool should_override
) external;

function set_withdraw_limit_module(
address new_withdraw_limit_module
) external;
Expand Down
4 changes: 4 additions & 0 deletions contracts/interfaces/IVaultFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ interface IVaultFactory {
view
returns (uint16 fee_bps, address fee_recipient);

function protocol_fee_config(
address vault
) external view returns (uint16 fee_bps, address fee_recipient);

function set_protocol_fee_bps(uint16 new_protocol_fee_bps) external;

function set_protocol_fee_recipient(
Expand Down

0 comments on commit 6002022

Please sign in to comment.