Skip to content

Commit

Permalink
Review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-stakewise committed Nov 21, 2024
1 parent fa3f8b0 commit ae486d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sw_utils/protocol_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def build_protocol_config(
if validators_threshold and exit_signature_recover_threshold > validators_threshold:
raise ValueError('Invalid exit signature threshold')

os_token_vaults_exit_limit_bps = config_data.get('os_token_vaults_exit_limit_bps') or 0
# default exit limit bps is 100%
os_token_vaults_exit_limit_bps = config_data.get('os_token_vaults_exit_limit_bps') or 10_000

os_token_vaults = [Web3.to_checksum_address(v) for v in config_data.get('os_token_vaults', [])]

return ProtocolConfig(
Expand Down
2 changes: 1 addition & 1 deletion sw_utils/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_mocked_protocol_config(
inactive_validator_balance: Wei = Web3.to_wei(31.75, 'ether'),
validator_min_active_epochs: int = 2250, # 10 days
vault_fee_max_bps: int = 1500, # 15%
os_token_vaults_exit_limit_bps: int = 0,
os_token_vaults_exit_limit_bps: int = 10_000, # 100%
os_token_vaults: list[str] | None = None,
) -> ProtocolConfig:
return ProtocolConfig(
Expand Down

0 comments on commit ae486d9

Please sign in to comment.