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

Public method to transfer native tokens from the contracts #300

Open
akolotov opened this issue Oct 3, 2019 · 1 comment
Open

Public method to transfer native tokens from the contracts #300

akolotov opened this issue Oct 3, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@akolotov
Copy link
Collaborator

akolotov commented Oct 3, 2019

After addressing Alternative receiver in ERC20-to-NATIVE mode and Alternative receiver in NATIVE-to-ERC20 mode it will be more easy to send tokens from a contract on one chain to an EOA on another chain.

But the bridge contracts do not provide such functionality so far - the payable fallback method cannot be used by contracts since only 2300 gas will be provided for its execution whereas it consumes much more.

Currently the only thing that is doing by the fallback method is a call for the internal nativeTransfer method (native-to-erc20, erc20-to-native). In order to allow the contracts to use the bridge it is necessary to make it payable and public.

@akolotov akolotov added the enhancement New feature or request label Oct 3, 2019
@akolotov
Copy link
Collaborator Author

Since the contract will be able to send tokens through the bridge it is required to handle a case when the contract will try to send several requests in one transaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants