mirror of
https://github.com/status-im/codex-contracts-eth.git
synced 2025-03-03 01:20:37 +00:00
Add function `isFinished` that checks whethere the state has been set to `RequestState.Finished` (which is not being set yet) or if the contract was started (`RequestState.Started`) and the contract duration has lapsed. To facilitate `isFinished`, the contract start time (`startedAt`) was added to calculate the contract end time.