Skip to content

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.
}

if (_dstChainId == chainId) {
_directSend(_receiver, _amountIn, chainId, _srcSwap, _nonce, srcTokenOut, srcAmtOut);
Copy link

Choose a reason for hiding this comment

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

Speaking spire

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.

4 participants