✧ Accepting
AcceptSwap
function acceptSwap(uint256 swapId, address receiver) external payable returns (bool)Accepts a Swap. Once the Swap is accepted, the expiry is set to zero to avoid reutilization.
Requirements:
allowedmust be the zero address or match the caller's address.expirymust be bigger than the timestamp.bidingassets must be allowed to transfer.askingassets must be allowed to transfer.
Emits a {SwapAccepted} event.
Parameters
Name
Type
Description
swapId
uint256
is the ID of the Swap to be accepted.
receiver
address
is the address that will receive the trading assets.
Name
Type
Description
swapId
uint256
is the ID of the Swap to be accepted.
receiver
address
is the address that will receive the trading assets.
Last updated