Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion run_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ export STOP_TRADING_IF_STAKING_KPI_MET=true
export RESET_PAUSE_DURATION=45
export MECH_WRAPPED_NATIVE_TOKEN_ADDRESS=$WXDAI_ADDRESS
export MECH_CHAIN_ID=ethereum
export TOOLS_ACCURACY_HASH=QmceqDQixda5tU6BBNTYFqBTqfhVeqeBC4NhsC136WYEvP
export TOOLS_ACCURACY_HASH=QmRnFBtMHTKhASuTiP5B8jCmVGrhEMnsgvADfYdSSvLPnu

if [ -n "$SUBGRAPH_API_KEY" ]; then
export CONDITIONAL_TOKENS_SUBGRAPH_URL="https://gateway-arbitrum.network.thegraph.com/api/$SUBGRAPH_API_KEY/subgraphs/id/7s9rGBffUTL8kDZuxvvpuc46v44iuDarbrADBFw5uVp2"
Expand Down
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