WStable 1:1 exit path will break with cooldown-enabled ERC4626 vaults like sUSDe
The WStable wrapper calls withdraw() on its underlying ERC4626 vault when users redeem, but the planned sUSDe vault reverts every withdraw() while its cooldown is enabled. Users therefore cannot get their USDe back instantly and must instead take sUSDe tokens and wait out a seven-day unstaking period.
ExtraCaterpillar Follow with aman, curly and 2 others
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-08-usg-tangent-judging/issues/633
This issue has been acknowledged by the team but won't be fixed at this time.
Found by
ExtraCaterpillar, aman, curly, greekfreakxyz, tobi0x18
Summary
The WStable contract has a flaw that makes it incompatible with a large class of ERC4626 vaults that implement withdrawal delays, cooldowns, or queues. For example, the planned deployment of wUSDE WStable contract with sUSDe (and any other similar vault) as the underlying ERC4626 saving account will prevent users from executing instant 1:1 withdrawals as intended. The sUSDe contract enforces a cooldown period (currently 604,800 seconds = 7 days) that causes all withdraw() calls to revert when the cooldown is enabled (which is the default state). This forces users to either receive sUSDe tokens instead of USDe (requiring additional unstaking steps and waiting periods) or be completely unable to withdraw their funds, breaking the core 1:1 withdrawal invariant and violating Sherlock guidelines regarding fund accessibility.
Root Cause
The WStable contract's burn() and redeem() functions attempt to call savingAccount.withdraw() when isSaving = false, but the sUSDe contract's withdraw() function includes an ensureCooldownOff modifier that reverts when cooldown is enabled:
Snippet from sUSDe contract on Etherscan:
function withdraw(uint256 assets, address receiver, address _owner)
public
virtual
override
@> ensureCooldownOff
returns (uint256)
{
return super.withdraw(assets, receiver, _owner);
}
@> modifier ensureCooldownOff() {
if (cooldownDuration != 0) revert OperationNotAllowed();
_;
}
Current sUSDe contract state: cooldownDuration = 604800 -> 7 days. (from etherscan)
And here is the broken redeem and burn function on the WStable contract: https://github.com/sherlock-audit/2025-08-usg-tangent/blob/main/tangent-contracts/src/USG/Tokens/WStable.sol#L102-L105 https://github.com/sherlock-audit/2025-08-usg-tangent/blob/main/tangent-contracts/src/USG/Tokens/WStable.sol#L80-L92
Also a look at the deployment scripts verifies the intent to deploy the USDe and sUSDe pair: https://github.com/sherlock-audit/2025-08-usg-tangent/blob/main/tangent-contracts/test/contexts/WStableContext.sol#L27
Internal Pre-conditions
- wUSDE WStable contract is deployed with sUSDe as the ERC4626 saving account (as planned in test deployment scripts)
- Users hold wUSDE tokens and want to redeem them for USDe
External Pre-conditions
- sUSDe contract has
cooldownDuration != 0
Attack Path
This is not an attack but a systemic failure affecting all legitimate users:
- User calls
redeem(amount, receiver, owner)on wUSDE contract expecting 1:1 USDe withdrawal redeem()callsburn(amount, receiver, false)burn()attemptssavingAccount.withdraw(amount, receiver, address(this))- sUSDe's
withdraw()function reverts due toensureCooldownOffmodifier - User's transaction fails, preventing any withdrawal
Alternative path with degraded user experience:
- User discovers they must call
burn(amount, receiver, true)instead - This gives them sUSDe tokens, not the expected USDe tokens
- User must then separately unstake sUSDe tokens
- User must wait 7+ days for cooldown period to complete
- Finally user can claim their original USDe amount
Impact
User Impact:
- Complete withdrawal failure because the primary
redeem()function becomes unusable for all users - Fund lock-up since users must wait 7+ days to access their deposited funds
- Broken 1:1 invariant because users cannot withdraw their deposits as USDe tokens instantly as promised
- Poor user experience because users must understand complex ERC4626 mechanics and perform multiple transactions
Protocol Impact:
- This Breaks the explicitly stated invariant "Users are always able to withdraw 1:1 their deposits"
- Sherlock guideline violation: Funds being locked for 7+ days
- Design failure: The WStable contract fails to fulfill its core purpose of providing instant stable token access
PoC
No response
Mitigation
Either replace sUSDe with an ERC4626 vault that supports instant withdrawals without cooldown periods or modify the WStable contract to handle cooldown periods in order to support similar vaults in the future
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the wrapper assumes every ERC4626 vault allows instant withdrawals, but sUSDe blocks withdraw() with a cooldown check, so the redeem path always reverts.
Impact
All users are unable to withdraw their deposits as USDe instantly, and funds could be locked for seven or more days if they take the sUSDe route instead.
What the attacker needed
Wrapper deployed with sUSDe as vault; vault cooldown duration is non-zero; user holds wrapper tokens
The fix
The team acknowledged the issue but will not fix it now; the suggested remedy is to use a vault with instant withdrawals or to make the wrapper handle cooldown periods.
How it was found
- A user calls redeem on the wrapper expecting USDe back
- redeem calls the internal burn function with the saving flag off
- burn calls withdraw on the underlying sUSDe vault
- The vault reverts because its cooldown is enabled, so the transaction fails
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A wrapper token lets you deposit a stablecoin and get a receipt token back. The wrapper promises you can swap the receipt back for the stablecoin instantly. Here the savings vault behind the wrapper refuses instant withdrawals while a waiting period is switched on, so the swap-back fails and people are stuck waiting days.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.