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

Draft ERC20 External Bridge Pool Wrapper Token Contract #486

Open
z-j-lin opened this issue Nov 11, 2022 · 0 comments
Open

Draft ERC20 External Bridge Pool Wrapper Token Contract #486

z-j-lin opened this issue Nov 11, 2022 · 0 comments

Comments

@z-j-lin
Copy link
Contributor

z-j-lin commented Nov 11, 2022

Create a erc20 wrapper contract that implements bridge pool base logic

deployment: bridge pool factory, non-upgradeable eip 1167 thin proxy

This contract should Implement the following:

Upgradeable ERC20 logic such that variables will be set with a initializer function that only BridgePoolFactory may call once in the life time of the contract.

A withdraw function only callable by BridgeRouter that calls the base bridgePool withdraw function, on successful validation of proofs, this contract should mint a wrapper token to the user.

A deposit function only callable by BridgeRouter that takes in msgSender address, abi enconded data that describes the deposit, decodes the data to extract token amount and burn the balance from owner, encode the event data and return the data to bridgeRouter so deposit event can be emitted

Acceptance criteria

@z-j-lin z-j-lin changed the title ERC20 External Bridge Pool Wrapper Token Contract Draft ERC20 External Bridge Pool Wrapper Token Contract Nov 11, 2022
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

No branches or pull requests

1 participant