Skip to content
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

Call a onAbort hook when a CCTX v2 aborts #3168

Open
Tracked by #3211 ...
lumtis opened this issue Nov 15, 2024 · 0 comments
Open
Tracked by #3211 ...

Call a onAbort hook when a CCTX v2 aborts #3168

lumtis opened this issue Nov 15, 2024 · 0 comments

Comments

@lumtis
Copy link
Member

lumtis commented Nov 15, 2024

Describe the Issue

Depends on #2713 and zeta-chain/protocol-contracts#429

When a cctx v2 is being aborted, we can call an onAbort function to allow different type of cleanup.

It is only called if abortAddress is not zero address.

I don't think it is important to add a callOnAbort option, in the protocol we can just try to call the function and ignore it if it fails

Overall workflow is

cctt aborts:
  if abortAddress is 0
    -> lock remaining amount (current behavior)
  if abortAddress defined
    -> send remaining funds to abortAddress
    -> call onAbort to the address, ignore failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant