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

feat: sponsored swap and deposits #790

Merged

Conversation

bmzig
Copy link
Contributor

@bmzig bmzig commented Dec 4, 2024

This PR adds an extra signatureOwner and signature argument to the functions which use permit and receiveWithAuthorization so that we no longer have a dependency for the depositor to call these functions. This should mean that as long as the depositor signed off on the input deposit/swapAndBridge arguments for the DepositData and SwapAndDepositData structs respectively, then anybody can call these functions and execute the swap.

Most of the diff for this PR are tests.

bmzig and others added 28 commits November 29, 2024 15:12
Signed-off-by: bennett <[email protected]>
Signed-off-by: bennett <[email protected]>
Signed-off-by: nicholaspai <[email protected]>
Signed-off-by: bennett <[email protected]>
Signed-off-by: bennett <[email protected]>
Base automatically changed from bz/permit2Periphery to spokepool-periphery-multiple-exchanges December 6, 2024 23:33
@bmzig bmzig marked this pull request as ready for review December 18, 2024 16:39
Copy link
Member

@nicholaspai nicholaspai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! just one suggestion

@bmzig bmzig reopened this Dec 18, 2024
@bmzig bmzig closed this Dec 18, 2024
@nicholaspai nicholaspai reopened this Dec 18, 2024
@nicholaspai nicholaspai merged commit c9017ff into spokepool-periphery-multiple-exchanges Dec 18, 2024
15 checks passed
@nicholaspai nicholaspai deleted the bz/gaslessPeriphery branch December 18, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants