Closed dwalintukan closed 5 years ago
@dwalintukan
What happens currently is that if the event page is in withdraw, calculateWinnings
and didWithdraw
will be called in initEvent
. And will never be called again unless:
In the two methods, you did add the line if the block number cannot divided by 5 fully, then return. But this line has no effect after we remove all pulling data on new block.
I think this issue can be closed.
Got it. Hm must have been multiple people calling it then. Closing.
This is getting too spammy for the server. Please change the following logic:
calculateWinnings
only once when the user enters the Event detail pagedidWithdraw
. We don't need to repeatedly know that they have already withdrawn.