ExocoreNetwork / exocore-contracts

5 stars 5 forks source link

Refactor repeated time check logic into a private function in Bootstrap.sol #21

Closed coderabbitai[bot] closed 3 months ago

coderabbitai[bot] commented 5 months ago

In the Bootstrap.sol contract, the logic for checking spawn times and lock times is repeated multiple times. This logic can be refactored into a private function to reduce redundancy and improve maintainability. This issue tracks the suggested optimization for future implementation.

Related pull request: https://github.com/ExocoreNetwork/exocore-contracts/pull/17 Comment for context: https://github.com/ExocoreNetwork/exocore-contracts/pull/17#discussion_r1624704003