Closed
Description
🎉 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.