Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions scripts/staking.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ def _check_unstaking_availability(
staking_contract_address: str,
staking_program: str,
) -> bool:

if is_service_evicted(
ledger_api, service_id, staking_contract_address
):
return True
"""Service can only be unstaked if one of these conditions occur:
- No rewards available
- Staked for longer than > minimum_staking_durtion.
A service can NOT be unstaked if evicted but has been staked for < minimum_staking_duration
"""

now = time.time()
ts_start = get_service_info(
Expand Down