Here is the code that allowed someone to double wirhdraw from nodeless.
Can you spot why this doesn't work?

Here is the code that allowed someone to double wirhdraw from nodeless.
Can you spot why this doesn't work?

I’m not a programmer so this is a guess
Is it because the first “withdrawal” line is related to User ID, but the “withdrawal lock” line relates to User Email?
Again, not trained here but looking for discrepancies…
`withdrawal_lock` wasn't set, or was set to a non-boolean?
It gets set later in the code before the withdrawal happens
The if clause for that env var is empty. It should have returned or thrown an error.
Lol yes but no, didn't want to globally disable withdrawals in this case
`withdrawal_lock` was not set?
In a sense yes, but it was not set due to concurrent requests, not due to the code not setting it