When an admin of StakingPool
contract tries to remove a strategy by calling removeStrategy
, it will revert because of minimum deposit logic in strategy contract.
Here's a code snippet of removeStrategy
function:
It calls withdraw
function of the strategy with total deposits.
However, each strategy has minimum deposits amount that should be kept in the contract.
As a result, the withdraw
transaction fails because it tries to withdraw more than allowed.
Admin can not remove a strategy
Manual Review
There should be a dedicated function defined in strategy that is called to withdraw the entire assets without checking minimum deposits.
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.