PoolAction.sol#_balancerJoin
does not support native ETH as input token.
#69
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-70
🤖_primary
AI based primary recommendation
🤖_121_group
AI based duplicate group recommendation
satisfactory
satisfies C4 submission criteria; eligible for awards
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
sufficient quality report
This report is of sufficient quality
Lines of code
https://github.com/code-423n4/2024-07-loopfi/blob/main/src/proxy/PoolAction.sol#L142-L152
Vulnerability details
Impact
PoolAction.sol#_balancerJoin
does not support native ETH as input token.Bug Description
PoolAction is used to join a Balancer or Pendle pool. Both Balancer and Pendle accepts native ETH as input token.
We can check that the PoolAction contract also supports passing native ETH as input token, because 1)
join()
function, which serves as the entry function, is payable; 2)_pendleJoin()
passes msg.value along when callingpendleRouter.addLiquiditySingleToken()
.However, the issue is that when joining balancer pool, the msg.value is not passed along.
Proof of Concept
N/A
Tools Used
Manual Review
Recommended Mitigation Steps
Assessed type
Other
The text was updated successfully, but these errors were encountered: