seize strategy is rly unsafe imo, consider removing. regardless, this line can cause underflow in totalHoldings.
should change to if (lockedProfit() > totalStrategyHoldings - strategyBalance)
|
if (strategyBalance > totalHoldings()) maxLockedProfit = 0; |
seize strategy is rly unsafe imo, consider removing. regardless, this line can cause underflow in totalHoldings.
should change to
if (lockedProfit() > totalStrategyHoldings - strategyBalance)vaults/src/Vault.sol
Line 856 in 2edd5eb