✧ Canceling
cancelSwap
function cancelSwap(uint256 swapId) externalCancels an active Swap by setting the expiry to zero.
Expiry with 0 seconds means that the Swap doesn't exist or is already canceled.
Requirements:
ownermust be the caller's address.expirymust be bigger than the timestamp.
Emits a {SwapCanceled} event.
Parameters
Name
Type
Description
swapId
uint256
is the ID of the Swap to be canceled.
Last updated