Reducing liquidity in the hardcoded Curve sDAI/sUSDe pool leads to unnecessary slippage loss
The contract hardcodes a Curve pool for swapping sUSDe to sDAI, and as liquidity in that pool decreases due to users migrating to a newer protocol, redemptions incur unnecessary slippage. An attacker could exploit this by reducing pool liquidity, causing users to lose funds through slippage.
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-06-notional-exponent-judging/issues/677
This issue has been acknowledged by the team but won't be fixed at this time.
Found by
xiaoming90
Summary
Root Cause
Internal Pre-conditions
External Pre-conditions
Attack Path
Maker's Savings DAI (sDAI) is the old version of SKY's Savings USDS (sUSDS). The OG Maker DAI protocol has migrated to the new SKY protocol. sDAI is issued by old Maker DAI while sUSDS is issued by new SKY protocol.
This part of the code, where sUSDe is swapped to sDAI and then swapped to the asset token, is taken from the old Notional code during the period when Maker had not migrated to SKY yet. In the past, the sDAI/sUSDe curve pool has had larger liquidity.
However, eventually, the liquidity in the hardcoded Curve sDAI/sUSDe (0x167478921b907422F8E88B43C4Af2B8BEa278d3A) pool will decrease as users migrate over to the newer sUSDS since the newer SKY protocol is where the majority of the incentives are allocated at the moment. Users will be incentivized to move to sUSDS over time.
The following is the on-chain liquidity data of the Curve sDAI/sUSDe pool, showing that the balance of sDAI steadily decreases over time, aligned with the points mentioned above.
-
12 month ago (Apr-06-2024)(19600000) - 6.4 million sDAI
-
6 month ago (Jan-11-2025)(Block - 21600000) - 6.2 million sDAI
-
3 months ago (Apr-04-2025) 22196000 - 5.6 million sDAI
-
Today (Jul-13-2025) - 5.2 million sDAI
If the liquidity is reduced or decreased to a lower level, the users are still forced to swap with this curve pool due to the hardcoded swap logic here (sUSDe -> sDAI -> assets), incurring unnecessary slippage due to low liquidity in Curve sDAI/sUSDe pool.
File: PendlePT_sUSDe.sol
23: /// @notice The vast majority of the sUSDe liquidity is in an sDAI/sUSDe curve pool.
24: /// sDAI has much greater liquidity once it is unwrapped as DAI so that is done manually
25: /// in this method.
26: function _executeInstantRedemption(
27: uint256 yieldTokensToRedeem,
28: bytes memory redeemData
29: ) internal override virtual returns (uint256 assetsPurchased) {
30: PendleRedeemParams memory params = abi.decode(redeemData, (PendleRedeemParams));
31: uint256 netTokenOut = _redeemPT(yieldTokensToRedeem, params.limitOrderData);
32:
33: Trade memory sDAITrade = Trade({
34: tradeType: TradeType.EXACT_IN_SINGLE,
35: sellToken: address(sUSDe),
36: buyToken: address(sDAI),
37: amount: netTokenOut,
38: limit: 0, // NOTE: no slippage guard is set here, it is enforced in the second leg
39: // of the trade.
40: deadline: block.timestamp,
41: exchangeData: abi.encode(CurveV2SingleData({
42: pool: 0x167478921b907422F8E88B43C4Af2B8BEa278d3A,
43: fromIndex: 1, // sUSDe
44: toIndex: 0 // sDAI
45: }))
46: });
Impact
High. Loss of funds due to unnecessary slippage
PoC
No response
Mitigation
No response
Discussion
T-Woodward
Not a useful comment. The same could be said of any token. The risk is higher here due to a hardcoded dex, but it is a known and understood risk. Furthermore, users can wait until PT maturity to exit via unstaking their sUSDe and avoiding the dex altogether.
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 contract hardcodes a single Curve pool address for the sUSDe to sDAI swap, so it cannot adapt to changing liquidity conditions.
Impact
Users could suffer unnecessary slippage losses when redeeming, especially as pool liquidity decreases; the team acknowledges the risk but notes users can avoid the DEX by waiting for PT maturity.
What the attacker needed
Hardcoded Curve pool used for swaps; pool liquidity decreases over time
The fix
The contract should not hardcode a single DEX pool; it should use a more flexible routing mechanism or allow alternative redemption paths.
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.
This report is about a smart contract that always uses one specific trading pool to convert one token to another. If that pool has little money in it, the conversion gives a worse rate, so users lose value. The author warns that the pool's liquidity is shrinking, making losses more likely.
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.