🎉 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.
🎉 Description
Togglable
As of its current implementation,
pausable.solworks as a toggle switch toturn_onandturn_offcertain functionalities. If we just want to have a toggle functionality, then we can inherit a different contract with name liketogglable. The namepausableleads to notions of time.Pausable
If we are to have a
pausablecontract, it should have variables likestartTimeandendTimedefined in itself. Then pausable would be able to track duration of how long it was paused and update theendTimewhen it is resumed.