-
Notifications
You must be signed in to change notification settings - Fork 110
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
Refund user on ZetaChain when a CCTX is aborted #1192
Comments
one idea is to introduce a "stuck" terminal state of CCTX, |
What would be the difference between stuck and the aborted status we currently have? |
Is the link of codes changed? Do you mean the codes below? |
Can we think that abort means that the transaction handled the exception normally, for example, the transaction failed but the refund operation was performed correctly, while stuck means that the transaction failed to handle the exception correctly, for example, the refund failed to the user, resulting in The refund steps are not completed. |
As discussed: let's work on a |
@lumtis @brewmaster012 We now need to differentiate between which one we can refund and which we cant Here is a draft list of refundable abort
Adding a list of scenarios in which the CCTX can get into a aborted state , so that it would be easier to review my statement above
|
Is there a single scenario where an aborted CCTX could not be refundable? I would prefer to keep it simple at first |
We currently have this logic when ERC20 cctx can't be reverted (because of non-existing pool for getting gas):
https://github.com/zeta-chain/node/blob/develop/x/crosschain/keeper/keeper_cross_chain_tx_vote_inbound_tx.go#L182
This logic could be generalized for all CCTX types (where the sender address can be compatible) in the idea where we consider that a aborted CCTX is "stuck" on ZetaChain with an amount that can't be recovered.
The text was updated successfully, but these errors were encountered: