vaults
vaults copied to clipboard
🔒 Seize strategy can create underflow
seize strategy is rly unsafe imo, consider removing. regardless, this line can cause underflow in totalHoldings.
should change to if (lockedProfit() > totalStrategyHoldings - strategyBalance)
https://github.com/Rari-Capital/vaults/blob/2edd5eb011553af0a9de78d18132fe07c8d841e8/src/Vault.sol#L856