Contact
Reports

Smart Contract Security Assessment

Twyne liquidation incentive

Protocol
Twyne
Timeline
Dec 15, 2025 - Dec 15, 2025
Audit Team
Adriro, HHK
Contents

Protocol Overview

Twyne is a credit delegation protocol that lets borrowers rent unused borrowing power from other lenders to boost their Liquidation LTV. Lenders earn additional yield while borrowers get to ramp up their leverage or insulate their debt.
This audit covers 2 pull requests totaling approximately 250~ lines of code across 1 day of review.

Severity Classification

SeverityDescriptionPotential Impact
CriticalImmediate threat to user funds or protocol integrityDirect loss of funds, protocol compromise
HighSignificant security risk requiring urgent attentionPotential fund loss, major functionality disruption
MediumImportant issue that should be addressedLimited fund risk, functionality concerns
LowMinor issue with minimal impactBest practice violations, minor inefficiencies
UndeterminedFindings whose impact could not be fully assessed within the time constraints of the engagement. These issues may range from low to critical severity, and although their exact consequences remain uncertain, they present a sufficient potential risk to warrant attention and remediation.Varies based on actual severity
GasFindings that can improve the gas efficiency of the contracts.Increased transaction costs
InformationalCode quality and best practice recommendationsReduced maintainability and readability

Key Findings

0
Critical
0
High
0
Medium
1
Low
1
Informational
0
Gas

Findings Summary

L-1Finding

L-1: Missing slippage protection for liquidators

Low

Description:

PR#187 introduces partial refunds for borrowers during liquidation. The refund amount depends on position health: closer to external liquidation means lower refunds, while liquidator incentives increase as positions become riskier for intermediate vault LPs.

Liquidators must now refund borrowers part of the collateral, but there is no function argument allowing liquidators to set a maximum acceptable refund amount.

Impact:

Low. Liquidators cannot protect against potentially unfavourable refund amounts.

Recommendation:

Add a uint256 maxBorrowerRefund argument to liquidate() and revert if the computed refund exceeds it.

Developer Response:

Acknowledged. We expect the liquidator to do these checks outside Twyne core protocol.

I-1Finding

I-1: Use `_getExtLiqLTV()` in `EulerCollateralVault::_invariantCollateralAmount()`

Informational

Description:

The implementation of _invariantCollateralAmount() can call _getExtLiqLTV() instead of repeating the expression.

Impact:

Informational.

Recommendation:

Use _getExtLiqLTV() to retrieve the liquidation LTV of Euler's target vault.

Developer Response:

Acknowledged.

Final Remarks

This review focused on PR#187 of the Twyne codebase. The PR updates the collateral vaults to modify the incentive for liquidators: instead of receiving the full collateral of the borrower, they now receive an amount based on how dangerous the state of the vault is. The closer to external liquidation, the higher the reward following a specific equation described inside the whitepaper. The review did not result in any medium or above severity findings, highlighting the seriousness of the Twyne team.