Skip to content
Zero-Wait

Zero-Wait

Stake in. Unstake the instant it's yours.

Created on 15th March 2026

•

Zero-Wait

Zero-Wait

Stake in. Unstake the instant it's yours.

The problem Zero-Wait solves

The Problem It Solves
Most DeFi staking protocols have a frustrating UX gap: even after your lock period expires, you still have to manually return to the app, notice it's unlocked, and submit an unstake transaction. During volatile markets, those extra minutes — or hours if you're asleep — can cost real money.

Zero-Wait Unstaking eliminates that gap entirely.

What it does
Instant manual unstake — the moment block.timestamp >= unlockTime, the "Unstake Now" button activates. No artificial delays, no cooldown queues, no extra waiting period beyond what the lock requires.

Fully automated unstaking via bot — users can authorize a delegate bot through the SmartAccountWallet. The bot polls every block (~1s on BSC), detects eligibility the instant it happens, and executes the unstake atomically — even while the user is offline.

Delegated execution without custody risk — the bot never holds user funds. It only has permission to call unstake() on behalf of the wallet. Tokens always go directly back to the staker.

Who benefits
| User type | How it helps | |---|---| | Retail stakers | Never miss the unlock window, even while sleeping | | Active traders | Reclaim liquidity at the exact block it's available | | Protocol builders | Reference architecture for non-custodial auto-execution | | Hackathon devs | Working EIP-7702-inspired delegation pattern on BSC |

Challenges I ran into

1. ethers.js v5 vs v6 API mismatch
The bot was scaffolded using ethers v6 syntax (ethers.JsonRpcProvider, ethers.formatEther(), contract.getAddress(), getFeeData()) but the project's package.json pins ethers v5. The bot crashed immediately on startup with TypeError: ethers.JsonRpcProvider is not a constructor.

Fix: Mapped every v6 call back to its v5 equivalent:
ethers.JsonRpcProvider → ethers.providers.JsonRpcProvider
ethers.formatEther() → ethers.utils.formatEther()
provider.getFeeData().gasPrice * 2n → provider.getGasPrice().mul(2)
contract.getAddress() → contract.address
balance === 0n → balance.eq(0)

2. Block-accurate timing on BSC Testnet
BSC Testnet block times are ~3 seconds, but RPC nodes can lag. Early versions of the bot would sometimes call unstake() one block too early because it was using local system time instead of block.timestamp from the chain.

Fix: The bot now fetches the actual block.timestamp from the latest confirmed block before every eligibility check — not Date.now(). This ensures the on-chain condition matches exactly what the contract will see.

3. Delegated execution authorization flow
The SmartAccountWallet requires the bot address to be explicitly authorized by the wallet owner before it can call execute(). First-time setup was easy to miss, causing silent "Not authorized" failures.

Fix: Added an authorization check during bot initialization that warns the user with the exact wallet.authorize(botAddress, true) call they need to make if the bot isn't yet approved. Also added a fallback that attempts a direct unstake() call if delegation fails.

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio