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.
Originally disclosed on Immunefi
- 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
- Report ID: #100060
- 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
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 sentencesrc/TrancheVault.sol:846-870— complete deposit-cancellation predicatesrc/HousePool.sol:768-780— admission-time Senior reservation checksrc/HousePool.sol:929-939— accepted Senior deposit settlementSECURITY.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:
- Read
WHITEPAPER.md:698-700; the second sentence still names a “Senior-capacity escape policy.” - Read
TrancheVault.sol:846-870; the Senior cancellation gate checks epoch rejection, settlement hold, projected terminal wipe and projected impairment, but not capacity. - Read
HousePool.sol:768-780; capacity is checked when a Senior reservation is first accepted. - Read
HousePool.sol:929-939; the accepted Senior deposit phase settles without reapplying the admission-cap check. - 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.
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
- Read the whitepaper section that names a Senior-capacity escape policy.
- Read the cancellation function and note it checks only epoch rejection, settlement hold, terminal wipe and impairment, not capacity.
- Read the reservation function and note capacity is checked only at admission time.
- Read the settlement function and note the admission-cap check is not reapplied.
- 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.