Withdrawing in stakingPool with different _data
length to strategies
arrays lengths will revert the withdraw.
In stakingPool.sol
when priority pools calls withdraw function, if user passes the _data
array which is less than the strategies length and then while accessing _data[_data.length]
we will get index out of bound error. This will eventually fail the transaction
suppose there are 3 strategies and user passes _data[]
array of length 2 to deposit
the transaction will fail with the index out of bound error while accessing _data[2]
if the first two strategies are max withdrawn already in _withdrawLiquidity
function.
The transaction will get failed with index out of bound error. if strategies
length if greater than _data[]
and if first strategies are already fully withdrawn
Manual Inspection
add this below check
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.