Skip to content

Commit

Permalink
feat: 302 release (#199)
Browse files Browse the repository at this point in the history
* feat: 302 release

* chore: update branch

* fix: foundry remapping
  • Loading branch information
Schlagonia authored Mar 6, 2024
1 parent d8abf37 commit cb9be33
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
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
4 changes: 2 additions & 2 deletions ape-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ dependencies:
ref: 4.9.5
- name: tokenized-strategy
github: yearn/tokenized-strategy
ref: master
ref: v3.0.2
contracts_folder: src

solidity:
import_remapping:
- "@openzeppelin/contracts=openzeppelin/v4.9.5"
- "@tokenized-strategy=tokenized-strategy/master"
- "@tokenized-strategy=tokenized-strategy/v3.0.2"

ethereum:
local:
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
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ libs = ['lib']
remappings = [
'forge-std/=lib/forge-std/src/',
'erc4626-tests/=lib/erc4626-tests/',
"@tokenized-strategy=contracts/.cache/tokenized-strategy/master",
"@tokenized-strategy=contracts/.cache/tokenized-strategy/v3.0.2",
'@openzeppelin/contracts=contracts/.cache/openzeppelin/v4.9.5/',
]
fs_permissions = [{ access = "read", path = "./"}]
Expand Down

0 comments on commit cb9be33

Please sign in to comment.