Closed zviadm closed 1 year ago
assigning based on git blame: @asaj
This issue is stale and will be closed in 30 days without activity
It is really sad that this issue is just closed like this. This is a real, very clear and easy to fix bug. PendingWithdrawals aren't guaranteed to be sorted by timestamp at all. Here is code that deletes pending withdrawals:
You can easily see that it makes no effort to keep things sorted. So it is very easy for pending withdrawals to end up being not sorted.
Hi Zviadm. I'm very sorry for such a delay. I have forwarded this on and I have replied on Discord with more details.
It is possible for pending withdrawals to not be sorted by timestamp, and trigger this assert: "Pending withdrawals not sorted by timestamp".
https://github.com/celo-org/celo-monorepo/blob/8e21a5d970c69917deda5f587e07276273cfb19f/packages/sdk/contractkit/src/wrappers/LockedGold.ts#L118