StakingPool contract owner can unknowingly deposit more than the available deposit room of the strategy via StakingPool:strategyDeposit
The function strategyDeposit in the StakingPool contract allows the owner to manually deposit asset tokens into the specified strategy.
But the strategies are intended to take deposits of a certain number of tokens as per available deposit room.
As there is no IStrategy(strategies[_index]).canDeposit() check, it allows the StakingPool contract owner to unknowingly deposit more than the available deposit room of the contract.
Strategy contracts like CommunityVCS, OperatorVCS and others (including future strategy contracts) will hold a risk of getting deposited more tokens than intended.
Manual review
It is recommended to add a IStrategy(strategies[_index]).canDeposit() check before depositing.
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.