You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When divest() is called with slippage set to true, the call can revert. This can happen when a migration is attempted because realisePnl() calls divest() with slippage set to true.
Technical Details
divestAll() is written to avoid a revert condition at all costs because it is intended to be used for the emergency scenario where reverting is not an option. divestAll() is called immediately beforemigratePool(). After the migration, realisePnl() is called which has has divest() calls (1, 2) which offer an opportunity for a revert to happen. This could prevent the migration from happening in some circumstances.
Impact
Informational.
Recommendation
Consider how the strategy owner would proceed with the migration in this revert scenario.
The text was updated successfully, but these errors were encountered:
When
divest()
is called with slippage set to true, the call can revert. This can happen when a migration is attempted becauserealisePnl()
callsdivest()
with slippage set to true.Technical Details
divestAll()
is written to avoid a revert condition at all costs because it is intended to be used for the emergency scenario where reverting is not an option.divestAll()
is called immediately beforemigratePool()
. After the migration,realisePnl()
is called which has hasdivest()
calls (1, 2) which offer an opportunity for a revert to happen. This could prevent the migration from happening in some circumstances.Impact
Informational.
Recommendation
Consider how the strategy owner would proceed with the migration in this revert scenario.
The text was updated successfully, but these errors were encountered: