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 swap token to native, directSend fix #140

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

Conversation

grGred
Copy link

@grGred grGred commented Mar 25, 2022

You can't swap token to native token in dst chain. So that's why nativeOut will be needed in TransferWithSwap.

When you execute directSend logic without bridging you send tokens to TransferSwap app contract in source chain, but it has to be message sender.

Dominator008 and others added 2 commits March 25, 2022 19:09
This makes it compatible with OpenZeppelin's burnFrom() if called by
an address that is not a whitelisted bridge.
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.

None yet

3 participants