# Blocklisted or paused state in staking token can prevent service owner from unstaking

StakingBase.unstake() transfers rewards to the immutable service multisig; if that address is blocklisted or the token pauses, unstake reverts and the service NFT is stuck.

- Payout: Audit contest
- Severity: medium
- Program: Olas
- Found by: EV\_om
- Disclosed: 2024-08-06
- Write-up quality: 6/10
- Original: https://github.com/code-423n4/2024-05-olas-findings/issues/31
- Library page: https://bugbountylibrary.com/r/c4%3A2024-05-olas%3AM-12
- Tags: area:web3 domain:web3 impact:dos kind:contest platform:code4rena sev:medium tech:evm tech:solidity technique:source-review vuln:dos

**Target:** StakingBase staking contract (Solidity)
**Root cause:** unstake() unconditionally calls _withdraw(multisig, reward) before completing, and the multisig address stored in ServiceInfo cannot be changed; a reverting reward transfer (blocklist/pause) reverts the whole unstake.
**Steps:**
1. Owner calls `stake(serviceId)`; StakingBase pulls the service NFT and stores the multisig in ServiceInfo.
2. Reward token blocklists the multisig address (or token transfers are paused).
3. Owner calls `unstake(serviceId)`.
4. unstake() reaches `_withdraw(multisig, reward)` which reverts on the blocklisted/paused transfer.
5. Whole transaction reverts; NFT remains locked in StakingBase.
**How found:** Code reading of unstake() flow: noticed reward is sent to the immutable multisig and that the protocol supports tokens with blocklist/pausable functionality, so a failing transfer reverts the entire unstake.
**Exploitation:** Not an attacker-driven exploit; a griefing/availability scenario where the reward token's blocklist or pause causes unstake() to revert, permanently trapping the service NFT and blocking reward claims.
**Insight:** When a contract bundles an external token transfer with a state-changing exit (NFT return), check whether a reverting/blocklisted/paused transfer can brick the exit; splitting retrieval from reward withdrawal avoids the lock.

