struck and its state changes according to far the current block is, but calculating on the fronend would be more efficient I think, any insight on that?
its a better idea to calc on the frontend in terms of efficiency and network calls. but fetching is better choice in terms of portability. Side note: If you're calc on the frontend make sure to sync with the chain once in a few minutes.
since I have the creation block I can store that and only change the current block every 3 seconds, calculate rewards based on the delta. The contract is doing the same thing
woundn't it change based on any other factors?
Обсуждают сегодня