-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Labels
Description
Describe the Issue
Depends on #2713 and https://github.com/zeta-chain/protocol-contracts/issues/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
Reactions are currently unavailable