Skip to content

An improvement in pausable.sol #723

Closed
@AyushyaChitransh

Description

@AyushyaChitransh

🎉 Description

Togglable

As of its current implementation, pausable.sol works as a toggle switch to turn_on and turn_off certain functionalities. If we just want to have a toggle functionality, then we can inherit a different contract with name like togglable. The name pausable leads to notions of time.

Pausable

If we are to have a pausable contract, it should have variables like startTime and endTime defined in itself. Then pausable would be able to track duration of how long it was paused and update the endTime when it is resumed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew contracts, functions, or helpers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions