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 deposit/withdraw wETH functions to balances ERC20 precompile #1106

Merged
merged 10 commits into from
Jan 4, 2022

Conversation

nanocryk
Copy link
Contributor

What does it do?

Add functions expected by many contracts interacting with an ERC20 contract representing the native currency.
While on Ethereum it actually creates new tokens (wETH, 1 wETH = 1 ETH), in our case it interacts directly with the native balance. We thus just provide functions that keeps the amount intact.

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@nanocryk nanocryk added A0-pleasereview Pull request needs code review. B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes labels Dec 20, 2021
@nanocryk nanocryk changed the title Add deposit/withdraw wETH functions to baances ERC20 precompile Add deposit/withdraw wETH functions to balances ERC20 precompile Dec 21, 2021
precompiles/balances-erc20/src/lib.rs Outdated Show resolved Hide resolved
@nanocryk nanocryk merged commit 4f1e702 into master Jan 4, 2022
@nanocryk nanocryk deleted the jeremy-native-erc20-weth branch January 4, 2022 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-pleasereview Pull request needs code review. B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants