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

Make Initiate Function Compatible with Mayan Forwarder #18

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

mizdler
Copy link

@mizdler mizdler commented Nov 25, 2024

Re-order the initiate function of Swap Layer to make it compatible with Mayan Forwarder contract:

MayanForwarder.sol

When a source chain swap is involved, we need to replace the input amount with the output amount of the swap. The forwarder contract expects the input amount to be located at byte 36. To achieve this, we have reordered the input parameters of the initiate function and added an amountIn parameter that will replace the current amount in the parameters.

@panoel
Copy link

panoel commented Jan 31, 2025

What is the status of this PR? Is it necessary? Does the deployed Mayan forwarder contract on mainnet require these changes? Is there a release plan?

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