PositionActionPendle
needs predefined amount which cannot be accurately calculated
#117
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate-87
🤖_54_group
AI based duplicate group recommendation
satisfactory
satisfies C4 submission criteria; eligible for awards
sufficient quality report
This report is of sufficient quality
Lines of code
https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/proxy/PositionActionPendle.sol#L61-L65
Vulnerability details
Impact
Transactions can revert/user's can loose assets when performing PositionActionPendle's
_onIncreaseLever
Proof of Concept
PositionActionPendle's
_onIncreaseLever
function adds liquidity to the Pendle pool. The amount of tokens to be added has to be precomputed before the call itselfBut since the actual amount of tokens that will be available is dependent on the slippage of the swap performed earlier, the calculated amount can be incorrect causing either the transaction to revert or any additional tokens to be lost
Tools Used
Manual review
Recommended Mitigation Steps
Use the actual obtained amount similar to the one implemented for balancer's join
Assessed type
Other
The text was updated successfully, but these errors were encountered: