Skip to content
Business logic Audit finding Intermediate

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.

FestiveSRT Follow

Originally disclosed on Immunefi

Informational View original
  • 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

Description

Description

TrancheVault.requestRedeem first computes the owner's maxRequestRedeem and then calls _requireMinimumRedeemSize(shares, maxShares). The minimum-size condition is currently ordered as:

Solidity
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 — requestRedeem
  • src/TrancheVault.sol:510-513 — totalAssets
  • src/TrancheVault.sol:1385-1390 — estimateRedeemAssets
  • src/TrancheVault.sol:1611-1618 — minimum-size condition and operand order
  • src/HousePool.sol:1285-1323 — pending-tranche pricing view
  • src/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:

  1. TrancheVault.sol:606-624 shows requestRedeem computing maxShares and calling _requireMinimumRedeemSize before transferring shares or enqueuing the request.
  2. TrancheVault.sol:1611-1618 shows estimateRedeemAssets(shares) < minimum && shares < maxShares; the external estimate is therefore evaluated before the local full-balance exemption.
  3. TrancheVault.sol:1385-1390 and :510-513 show the estimate reaching POOL.getPendingTrancheState().

Retained differential demonstration:

  • On frozen source, forcing getPendingTrancheState to revert makes an otherwise valid full-balance request bubble that failure.
  • Reordering the condition to shares < maxShares && estimateRedeemAssets(shares) < minimum makes 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.

The original report as published on Immunefi, by FestiveSRT. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

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

  1. Call requestRedeem with shares equal to the owner's maxShares.
  2. The contract computes maxShares and calls the minimum-size check.
  3. The check evaluates estimateRedeemAssets first, which reaches the Pool pricing view.
  4. 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.

More by FestiveSRT

View all

22 more disclosed reports, best first.

More from Plether

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.