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
Scheduling an optimistic action with an execution delay of several days and finding out that it cannot be executed is a very frustrating experience.
This can have two reasons:
internal contract state, e.g.,
the token balance is too low
a user role is wrong
external contract state, e.g.,
ERC-20 allowances are not set
This can lead to a large delay if one or multiple mitigating actions need to be scheduled and/or, worse, to the loss of the collateral.
The latter happened frequently, and more than 350 ANT are irretrievably lost by the time of writing.
Solution
The action should be checked before sending it.
On failure, It should display a verbose warning. This could be the revert string or, even better, additional information how to fix this issue for common pitfalls such as ERC-20 allowances, insufficient balance, etc.
It should still be allowed to schedule the action because the state could be correct at the time of execution.
The text was updated successfully, but these errors were encountered:
Problem
Scheduling an optimistic action with an execution delay of several days and finding out that it cannot be executed is a very frustrating experience.
This can have two reasons:
This can lead to a large delay if one or multiple mitigating actions need to be scheduled and/or, worse, to the loss of the collateral.
The latter happened frequently, and more than 350 ANT are irretrievably lost by the time of writing.
Solution
The text was updated successfully, but these errors were encountered: