Discuss: Automatic refund on failed transaction
Summary
Occasionally, transactions fail going into Ethereum. On withdrawals, this means that off-chain balance is debited when the transaction is made, and never returned when the fail happens.
@edgebal has been working on a withdrawal queue for the admins to manage; I think it would be a good idea to rework the existing system to check for transaction failure here, and refund pending balance if not.
Steps to reproduce
(How one can reproduce the issue - this is very important)
Platform information
Cross-platform web.
What is the current bug behavior?
User loses off-chain tokens due to failed withdrawal transactions.
What is the expected correct behavior?
User should be refunded if the transaction fails without Mark having to manually credit it.
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)