Skip to content

Commit

Permalink
chore: add to interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Sep 19, 2024
1 parent 42afe0c commit ded02b3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions contracts/VaultFactory.vy
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def _unpack_custom_flag(config_data: uint256) -> bool:
"""
return config_data & 1 == 1

@view
@internal
def _pack_protocol_fee_data(recipient: address, fee: uint16, custom: bool) -> uint256:
"""
Expand Down
9 changes: 9 additions & 0 deletions contracts/interfaces/IVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ interface IVault is IERC4626 {
address indexed strategy,
uint256 new_debt
);
event UpdateAutoAllocate(bool auto_allocate);
event UpdateDepositLimit(uint256 deposit_limit);
event UpdateMinimumTotalIdle(uint256 minimum_total_idle);
event UpdateProfitMaxUnlockTime(uint256 profit_max_unlock_time);
Expand All @@ -54,6 +55,8 @@ interface IVault is IERC4626 {

function use_default_queue() external view returns (bool);

function auto_allocate() external view returns (bool);

function minimum_total_idle() external view returns (uint256);

function deposit_limit() external view returns (uint256);
Expand Down Expand Up @@ -82,12 +85,18 @@ interface IVault is IERC4626 {
uint256
) external;

function setName(string memory) external;

function setSymbol(string memory) external;

function set_accountant(address new_accountant) external;

function set_default_queue(address[] memory new_default_queue) external;

function set_use_default_queue(bool) external;

function set_auto_allocate(bool) external;

function set_deposit_limit(uint256 deposit_limit) external;

function set_deposit_limit(
Expand Down
4 changes: 0 additions & 4 deletions contracts/interfaces/IVaultFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ interface IVaultFactory {

function name() external view returns (string memory);

function default_protocol_fee_config() external view returns (uint256);

function custom_protocol_fee(address) external view returns (uint16);

function use_custom_protocol_fee(address) external view returns (bool);

function deploy_new_vault(
Expand Down

0 comments on commit ded02b3

Please sign in to comment.