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

Add clause about not knowing minOutput.recipient at order creation time #9

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

nicholaspai
Copy link
Member

Motivation

Its not always known who the recipient of a minOutput will be, especially when creating an OnchainCrossChainOrder where the user submits their own order and the originData does not contain any reference to an exclusive relayer.

Moreover, even in a GaslessCrossChainOrder, the filler creating the deposit on the origin chain might not always fill their own order on the destination chain if they do not set themselves as an exclusive relayer.

Not all settlement contracts will allow an order to specify an exclusivity clause.

Solution

Explicitly state setting recipient: address(0) as an option when creating the minOutputs.

…time

Its not always known who the recipient of a `minOutput` will be, especially when creating an `OnchainCrossChainOrder` where the user submits their own order and the `originData` does not contain any reference to an exclusive relayer.

Moreover, even in a `GaslessCrossChainOrder`, the filler creating the deposit on the origin chain might not always fill their own order on the destination chain if they do not set themselves as an exclusive relayer.

Not all settlement contracts will allow an order to specify an exclusivity clause.
@nicholaspai nicholaspai requested a review from mrice32 December 5, 2024 14:45
@nicholaspai nicholaspai merged commit f9a2fde into master Dec 20, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant