Skip to content

feat(StakeManager): add function to owner enable emergency exit #148

Description

@3esmit

In case something goes wrong with contract, and it gets unable to continue working properly, the owner should be able to enable a emergency exit, which allows StakeVaults to leave without any processing inside of the contract.

StakeManager would have a new global boolean emergencyExit = false which can be set by setEmergencyExit(true) by only owner. StakeVault would have a emergencyExit() function which would read StakeManager 'emergencyExit' flag and if true, allow withdraw.

Also consider using error handling on StakeVault.emergencyExit() to allow withdraw if reading flag gives an error different than out of gas.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions