Deploying a Wrapper Super Token
Looking to make an Super Token Wrapper for your ERC20 token? You've come to the right place!
Anyone can deploy a Super Token Wrapper for any ERC20 token. The deployer account doesn't receive any control or admin powers, and all Super Token logic upgrades are handled by Superfluid Protocol Governance.
1. Head to Super Token Factory contract for appropriate network 👇
2. Connect wallet.
3. Find the
createERC20Wrapperfunction. Refer to the below image and provide the required parameters with no additional characters.
Writeand confirm through your wallet. Congrats, you've created a new Wrapper Super Token!
Alternatively, search your token in the top right search bar and find it in the drop down
We've created some handy scripts for deploying the ERC20 Wrapper contract.
git clone https://github.com/superfluid-finance/protocol-monorepo/
yarn install --frozen-lockfile
cp .env.template .env
# edit .env file and configure the correct mnemonic and rpc endpoint
# check truffle-config.js for what environment variables are required
Now you can use the
deploy-unlisted-super-token.jsscript to deploy the wrapper:
RELEASE_VERSION=v1 npx truffle --network <xdai or matic> \
exec scripts/deploy-unlisted-super-token.js : \
<Underlying Token Address> \
<SuperToken Name> \
If you are wrapping an existing token, like DAI or USDC, please use suffix "x" in the SuperToken symbol.