stakingPool:canDeposit() is broken
When a user deposits asset token to priority pool, it checks canDeposit() of staking pool. it returns the room available to deposit ie totalStaked in strategy & unusedDepositLimit.
The issue is canDeposit() only returns the totalStaked in strategy but not the unusedDepositLimit because getMaxDeposits() only returns the max token that can be deposited into strategy.
unusedDepositLimit of stakingPool will not be fully utilised due to wrong calculation in canDeposit()
VS code
Include unusedDepositLimit while calculating canDeposit()
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.