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

Guide for "creating a wrapper for a token" #21

Open
hems opened this issue May 20, 2021 · 4 comments
Open

Guide for "creating a wrapper for a token" #21

hems opened this issue May 20, 2021 · 4 comments

Comments

@hems
Copy link

hems commented May 20, 2021

From this markdown main/deploy.md i found out if i already have a token deployed i would need to:

Deploy a wrapper for your token that supports mint, burn, Swapin, and Swapout, add this wrapper as a minter role in the ACL. In the wrapper add the MPC address (found below) as a minter

Could you by any chance consider writing or pointing me to a more detailed guide on this topic?


Just to add some context here, i'm trying to deploy The Aluna Token to multiple chains, currently it's only available on Ethereum main net.

Our token was deployed using the Proxy Patter ( standard OpenZeppelin ) so we could update it with the necessary functions to a new implementation, but after having a look at AnyswapV5ERC20.sol it's not very clear what the best approach would be.

There are a few key questions here:

  • Our token isn't ERC20Mintable, but we need to implement it in order to be able to have MPC address as a minter, correct?
  • Our token is already an ERC20Burnable.sol but from reading AnyswapV5ERC20.sol i can tell the burn function works slightly different on AnyswapV5ERC20.sol than on ERC20Burnable.sol, that's the reason why we need a Wrapper for our ERC-20? Is there a Wrapper Example for ERC-20 anywhere?

Thank You

@marcelomorgado
Copy link

It maybe will help you, this is a Wrapper contract example (anyUSDC that holds USDC): https://ftmscan.com/address/0x95bf7e307bc1ab0ba38ae10fc27084bc36fcd605

@nvzvhenry
Copy link

I'm having the same issue as @hems

Anyone with any assistance or solution

@playsnook
Copy link

From this markdown main/deploy.md i found out if i already have a token deployed i would need to:

Deploy a wrapper for your token that supports mint, burn, Swapin, and Swapout, add this wrapper as a minter role in the ACL. In the wrapper add the MPC address (found below) as a minter

Could you by any chance consider writing or pointing me to a more detailed guide on this topic?

Just to add some context here, i'm trying to deploy The Aluna Token to multiple chains, currently it's only available on Ethereum main net.

Our token was deployed using the Proxy Patter ( standard OpenZeppelin ) so we could update it with the necessary functions to a new implementation, but after having a look at AnyswapV5ERC20.sol it's not very clear what the best approach would be.

There are a few key questions here:

  • Our token isn't ERC20Mintable, but we need to implement it in order to be able to have MPC address as a minter, correct?
  • Our token is already an ERC20Burnable.sol but from reading AnyswapV5ERC20.sol i can tell the burn function works slightly different on AnyswapV5ERC20.sol than on ERC20Burnable.sol, that's the reason why we need a Wrapper for our ERC-20? Is there a Wrapper Example for ERC-20 anywhere?

Thank You

Have you solved this problem?

@xcantera
Copy link

I need the solution for this too

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

5 participants