airswap-protocols icon indicating copy to clipboard operation
airswap-protocols copied to clipboard

Add public order support (Swap)

Open dmosites opened this issue 2 years ago • 0 comments

Relates to @airswap/swap Swap contract in https://github.com/airswap/airswap-protocols/tree/develop/source/swap.

If an order is hashed with a senderWallet value of null (0x000...) the Swap contract should allow the order to be filled by the msg.sender as the senderWallet address.

This could be implemented in the swap function (used by primary web app), which takes recipient as an argument. If that is null, the following line would transfer to msg.sender instead of recipient. https://github.com/airswap/airswap-protocols/blob/develop/source/swap/contracts/Swap.sol#L156

dmosites avatar Jun 29 '22 11:06 dmosites