-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic swap refund bot #15
Conversation
NOTE: This PR updates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is just that one missing return statement is all that needs to be changed.
Rest of feedback is just comments and code style stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Introduces RefundBot, a swap refund process that scans Kava and Binance Chain for refundable swaps and automatically processes them. Works on testnet.
Once approved, I'll launch a server for RefundBot and put it live on mainnet.Edit: RefundBot is live on mainnet.Example testnet refund cron routine output:
The RefundBot waits 3 seconds between posting refund txs to Binance Chain, otherwise, an account sequence error is thrown. I've created #14 for upstreaming this to the binance-chain/javascript-sdk.
Every hour the query offsets are printed. Binance Chain uses a different swap querying strategy and this monitoring allows for debugging and future optimization: