Submitted by pkqs90, also found by ZanyBonzy and Bauchibred
When performing withdraws on PositionActionPendle and exiting Pendle pools, users may lose funds due to not setting slippage.
Note: This is a new issue that was introduced by the latest code diff.
The dataflow for withdrawing on PositionActionPendle is:
The issue is in step 2; since minOut is set to 0, users may receive less output tokens than expected.
Also note that this is similar to the 2024-07 Loopfi audit finding M-39, which also talks about slippage in ERC4626. However, this Pendle withdraw exit pool code is new, and not existant in the last audit. Thus this should be considered a new bug.
Allow user to set a minOut parameter for withdraw functions, especially for Pendle position and ERC4626 position.
amarcu (LoopFi) confirmed
