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
This is to clarify the current state and security, and document it in a comment or hackMD, of pausing and withdrawals in the current contracts.
Also to review the current functionality wrt to pausing and/or stopping the contracts to ensure it satisfies the following specification:
PAUSING
are there multiple meanings and implementations of 'pausing' across the contracts? define them and their behaviour (allowed/not allowed)?
pausing should not allow recovering the stakes.
emergency stop should exist, & enable everyone to recover their stakes (i.e. withdraw)
if it is paused it can be resumed and therefore the stake should be retained (i.e. no withdrawals unless total stoppage whereby the contracts have been seen to be vulnerable and need replaced to resume)
WHEN PAUSED:
staking off
commit off
claim off
reveal off
set the price to zero
WHEN RESUMING
reset the price to what it was
STOP
should we have a big red button permanently stopping all of the above?
where is the emergency button? PAUSE withdrawal?
we should add a pause but no withdraw situation
Staking contract pausing and withdrawals behaviour to create tests for:
Cannot withdraw too much
Cannot withdraw slashed stakes
Slashed stakes are stuck in contract (or otherwise?)
The text was updated successfully, but these errors were encountered:
This is to clarify the current state and security, and document it in a comment or hackMD, of pausing and withdrawals in the current contracts.
Also to review the current functionality wrt to pausing and/or stopping the contracts to ensure it satisfies the following specification:
PAUSING
WHEN PAUSED:
WHEN RESUMING
STOP
Staking contract pausing and withdrawals behaviour to create tests for:
The text was updated successfully, but these errors were encountered: