Deploying a Self Governed Super Token

Self Governed Super Tokens are Super Tokens where logic upgrades are controlled by you. This lets you have the ability to apply token logic upgrades provided by Superfluid governance to your Super Token contract and also apply custom code implementations at your leisure.

Execute createERC20Wrapper

Head to the Protocol Directory and head to the Etherscan page of the SuperTokenFactory on the network of your choosing.

Head to the "Write as Proxy" tab in the "Contract" tab and go to the createERC20Wrapper function that has the admin parameter.

admin is the account that's permitted to call the Super Token logic updates with updateCode.

We are currently in the process of rolling out the createERC20Wrapper function with the admin parameter on more networks. For an example of the function live, see the implementation on Avalanche C-Chain.

Update Logic

Head to the updateCode function.

You can pass in the address of your custom logic contract (documentation on this coming soon!) or just the address of the latest Superfluid token contract.

The address of the latest Superfluid token contract can be found with the getSuperTokenLogic function on the SuperTokenFactory (for example).

After execution, your Super Token logic has been updated.

For more info, check out our Wiki or reach out to us on Discord.

Last updated