BirthdayResearch / defiscan.live

DeFi Scan, everything one-stop location for DeFi Blockchain. Powered by jellyfish & ocean network.
https://defiscan.live
MIT License
45 stars 17 forks source link

Blocks `countdown` enhancement #1313

Open joeldavidw opened 2 years ago

joeldavidw commented 2 years ago

What would you like to be added:

An enhancement to the countdown calculation logic. When the remaining blocks is < 10-15, the remaining time should be calculated using no. of remaining blocks * 30 secs instead.

Why is this needed:

When the number of remaining blocks < 10. It is common for the remaining time to be 0. As the current countdown logic is determined based on the current block's median time. This issue occurs when there are "delays" in the minting of blocks (Not every 30 secs).

Previous PR: https://github.com/DeFiCh/scan/pull/1174.

github-actions[bot] commented 2 years ago

@joeldavidw: Thanks for opening an issue, it is currently awaiting triage.

The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.

Details I am a bot created to help the [DeFiCh](https://github.com/DeFiCh) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/DeFiCh/scan/blob/main/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [BirthdayResearch/oss-governance-bot](https://github.com/BirthdayResearch/oss-governance-bot) repository.