The function setDepositCap can be DoS'd by front-running when setting the deposit cap to a lower value.
Vulnerability Details
The function setDepositCap implements a check that ensures the depositCap is always >= IERC20(myt).balanceOf(address(this)));
This makes the function vulnerable to a front-running/griefing attack where the attacker can simply front-run the admin, depositing a huge amount of tokens into the contract so it hits the deposit cap.
Now when the admin tx completes, it will revert, because the input value is lower than the contract's MYT balance. After that, the attacker can freely withdraw the tokens immediately without any restrictions or fees. Increasing likelihood of this griefing attack and creating ideal conditions.
Impact Details
The impact is partial Denial of Service. The admin would be only able to increase the deposit cap, not decrease.