Skip to content
Business logic Audit finding Intermediate

Whitepaper documents a Senior-capacity cancellation escape that cancelPendingDeposit does not implement

The project whitepaper describes a 'Senior-capacity escape' that lets an accepted Senior deposit be cancelled after maturity if capacity limits change, but the contract's cancellation function does not implement any capacity check. Users or governance relying on this documented path would find the commitment remains firm and the deposit proceeds to activation instead.

FestiveSRT Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

#100060 [SC-Insight] Whitepaper documents a Senior-capacity cancellation escape that cancelPendingDeposit does not implement

Submitted on Nov 16th 2026 at 07:03:59 UTC by @FestiveSRT for Audit Competition | Plether

Description

Description

packages/perps/WHITEPAPER.md:698-700 says that after maturity, deposit cancellation follows the documented “epoch rejection, terminal-wipe, impairment, and Senior-capacity escape policy.” The named Senior-capacity escape does not exist.

TrancheVault.cancelPendingDeposit permits an accepted Senior request to be recovered only when its epoch is rejected, LP epoch settlement is explicitly held, a terminal wipe is projected, or the Senior tranche is projected to be impaired. The cancellation condition has no test for current Senior capacity or whether accepted reservations still fit the active limits.

That is consistent with the implementation's admission-time reservation model. HousePool.reserveSeniorDeposit enforces capacity when the request is accepted, but later settlement activates the accepted Senior deposit without reapplying the current admission-cap check. SECURITY.md:1392-1395 states the intended rule directly: governance may reduce Senior limits below live exposure, but accepted Senior reservations are grandfathered against later cap or accounting changes.

The whitepaper therefore names an unavailable recovery path. An LP, integrator, or governance team relying on it could expect a cap reduction to unlock an accepted Senior commitment, while the contract instead keeps the commitment firm and proceeds to activation.

Correcting this whitepaper sentence aligns it with SECURITY.md and the implemented four-condition recovery model, and prevents LPs, integrators and governance teams from planning around an unavailable capacity escape.

References

All source paths are under packages/perps/ at commit a82d4fefb02768e5b3bddcc97dee371eee24fea8.

  • WHITEPAPER.md:698-700 — nonexistent Senior-capacity escape sentence
  • src/TrancheVault.sol:846-870 — complete deposit-cancellation predicate
  • src/HousePool.sol:768-780 — admission-time Senior reservation check
  • src/HousePool.sol:929-939 — accepted Senior deposit settlement
  • SECURITY.md:1392-1395 — prospective cap reduction and reservation grandfathering

Proof of Concept

Proof of Concept

Conditions under which this Insight is valuable: an accepted Senior deposit is still pending when governance prospectively lowers a Senior capacity limit, or accounting changes place accepted reservations outside the active limits. This is exactly when the whitepaper's named capacity escape would matter to LPs, frontends, support staff and governance runbooks.

Read-only source demonstration:

  1. Read WHITEPAPER.md:698-700; the second sentence still names a “Senior-capacity escape policy.”
  2. Read TrancheVault.sol:846-870; the Senior cancellation gate checks epoch rejection, settlement hold, projected terminal wipe and projected impairment, but not capacity.
  3. Read HousePool.sol:768-780; capacity is checked when a Senior reservation is first accepted.
  4. Read HousePool.sol:929-939; the accepted Senior deposit phase settles without reapplying the admission-cap check.
  5. Read SECURITY.md:1392-1395; accepted reservations are expressly grandfathered against later cap or accounting changes.

Retained local execution confirms the distinction. After accepting a 10,000.000000-asset Senior request and finalizing a cap below live exposure, the Pool reported zero additional capacity and reported that reservations were outside active limits. Cancellation still reverted TrancheVault__SeniorDepositCommitted before and at maturity. Settlement then succeeded and made all 10,000.000000 assets claimable, with nothing pending or refundable.

Together, the source comparison and retained execution establish the discrepancy: the current whitepaper sentence contradicts both the implemented lifecycle and its observed behavior.

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 whitepaper text was not updated to match the implemented four-condition cancellation model, which deliberately grandfathers accepted reservations against later cap changes.

Impact

LPs, integrators and governance teams could plan around a cancellation path that does not exist, while the accepted Senior commitment remains firm and proceeds to activation.

What the attacker needed

Accepted Senior deposit still pending; governance lowers a Senior cap or changes accounting

The fix

The whitepaper sentence should be corrected to align with the security notes and the implemented four-condition recovery model.

How it was found

  1. Read the whitepaper section that names a Senior-capacity escape policy.
  2. Read the cancellation function and note it checks only epoch rejection, settlement hold, terminal wipe and impairment, not capacity.
  3. Read the reservation function and note capacity is checked only at admission time.
  4. Read the settlement function and note the admission-cap check is not reapplied.
  5. Read the security notes confirming accepted reservations are grandfathered against later cap changes.

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 whitepaper is the project's written description of how it should work. Here the written description promises a way to cancel a pending deposit if the deposit limits change, but the actual code has no such option, so the deposit stays locked in. This is a documentation mismatch rather than a direct theft bug, but it can mislead people planning around it.

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.