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

ERC20 Asset Transactor #7762

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

ERC20 Asset Transactor #7762

wants to merge 1 commit into from

Conversation

franciscoaguirre
Copy link
Contributor

Partially addresses #7523.

In order to interact with ERC20 tokens via XCM (with DepositAsset, WithdrawAsset instructions), we need an Asset Transactor that can match them and call their contracts.

I implemented the fungibles::* family of traits for pallet-revive.

Still a work in progress.

Open questions

  • What about gas? It shouldn't be charged when the impl calls the contract since we assume it has been paid for before by the XCM executor. Same when calling view functions
  • Should we transfer from/to a checking account when we mint/burn fungibles?

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.

1 participant