Full-balance redemption exemption is checked after, not before, a fallible Pool pricing view
In TrancheVault.requestRedeem, the minimum-size check evaluates the fallible estimateRedeemAssets call before the local full-balance exemption, so a full-balance redemption reverts if the Pool pricing view reverts. An attacker could not gain anything directly; the issue is that a legitimate full-balance redemption can be blocked by a pricing-view failure.
Originally disclosed on Immunefi
- Disclosed after under an hour
#100049 [SC-Insight] Full-balance redemption exemption is checked after, not before, a fallible Pool pricing view
Submitted on Nov 16th 2026 at 06:42:28 UTC by @FestiveSRT for Audit Competition | Plether
- Report ID: #100049
- Report Type: Smart Contract
- Report severity: Insight
- Target: https://github.com/immunefi-team/audit-comp-plether/blob/a82d4fefb02768e5b3bddcc97dee371eee24fea8/packages/perps/src/TrancheVault.sol
- Impacts:
Description
Description
TrancheVault.requestRedeem first computes the owner's maxRequestRedeem and
then calls _requireMinimumRedeemSize(shares, maxShares). The minimum-size
condition is currently ordered as:
if (estimateRedeemAssets(shares) < POOL.minTrancheDepositAssets() && shares < maxShares) {
revert TrancheVault__WithdrawalTooSmall();
}
The intended full-balance exception is shares == maxShares. However, Solidity
evaluates the left operand first, so even an exempt full-balance request calls
estimateRedeemAssets. That estimate calls totalAssets, which reaches
HousePool.getPendingTrancheState and the Pool's Engine/Terminal-NAV view
dependencies. If that external view graph reverts, the full-balance request also
reverts even though its estimated size is irrelevant to the exemption.
The full-balance exemption is a local value condition and should be decided
before consulting fallible Pool-pricing dependencies. Reordering the operands
isolates an exempt full-balance redemption from a pricing-view failure.
Partial redemptions are unchanged: they still call estimateRedeemAssets,
compare the result with POOL.minTrancheDepositAssets(), and revert when the
estimated value is below the minimum.
References
All source paths are under packages/perps/ at commit
a82d4fefb02768e5b3bddcc97dee371eee24fea8.
src/TrancheVault.sol:606-632—requestRedeemsrc/TrancheVault.sol:510-513—totalAssetssrc/TrancheVault.sol:1385-1390—estimateRedeemAssetssrc/TrancheVault.sol:1611-1618— minimum-size condition and operand ordersrc/HousePool.sol:1285-1323— pending-tranche pricing viewsrc/HousePool.sol:1836-1850— Engine-protocol-lens snapshot dependencies
Proof of Concept
Proof of Concept
Conditions under which this Insight is valuable:
A full-balance redemption reaches _requireMinimumRedeemSize. Whether it is exempt is already known from local values (shares == maxShares), so the function should resolve that exemption before consulting the Pool's fallible pricing view. Partial redemptions continue through the same estimate and minimum-value check.
Read-only source demonstration:
TrancheVault.sol:606-624showsrequestRedeemcomputingmaxSharesand calling_requireMinimumRedeemSizebefore transferring shares or enqueuing the request.TrancheVault.sol:1611-1618showsestimateRedeemAssets(shares) < minimum && shares < maxShares; the external estimate is therefore evaluated before the local full-balance exemption.TrancheVault.sol:1385-1390and:510-513show the estimate reachingPOOL.getPendingTrancheState().
Retained differential demonstration:
- On frozen source, forcing
getPendingTrancheStateto revert makes an otherwise valid full-balance request bubble that failure. - Reordering the condition to
shares < maxShares && estimateRedeemAssets(shares) < minimummakes that full-balance request bypass the view and proceed. - The negative control preserves partial-redemption behavior: a partial
request still propagates the view failure, a full-balance dust request
succeeds, and a below-minimum partial request still reverts
WithdrawalTooSmall.
This differential establishes the value condition directly: the exemption is resolved locally for full-balance redemptions, while every partial redemption retains the existing minimum-value check.
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 boolean operands are ordered so the external, fallible estimateRedeemAssets call is evaluated before the local shares < maxShares exemption.
Impact
A full-balance redemption could revert whenever the Pool pricing view reverts, blocking a legitimate withdrawal; partial redemptions keep their existing minimum-value check.
What the attacker needed
Holder requests full-balance redemption; Pool pricing view reverts
The fix
The condition should be reordered so the local full-balance exemption is decided before the fallible pricing view is consulted.
How it was found
- Call requestRedeem with shares equal to the owner's maxShares.
- The contract computes maxShares and calls the minimum-size check.
- The check evaluates estimateRedeemAssets first, which reaches the Pool pricing view.
- If that view reverts, the full-balance request reverts as well.
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.
When someone asks to withdraw all of their shares, the contract is meant to skip a minimum-size check. But the code checks the estimated value first, and that estimate depends on other contracts that can fail. If those fail, the withdrawal of the full balance fails too, even though the size check should not apply.
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.