Set Documentation
Search…
Creating a Set

Creating a Set:

Creating a Set is the process by which user deployed a SetToken contract. This is facilitated by the SetTokenCreator contract with a simple create interface. The user needs to provide:
    _components: ERC20 token addresses to include as the initial allocation. The allocations may be rebalanced later via module interactions
    _units: the notional amount of each component in the starting allocation. Must be ordered the same as the components array
    _modules: array of initial module addresses to initialize on the SetToken
    _manager: address of the manager of the Set. Only the manager will have access to module interactions
    _name: name of the Set, limited to 32 characters
    _symbol: symbol of the Set, limited to 32 characters
The interface for create is as follows:
1
function create(
2
address[] memory _components,
3
int256[] memory _units,
4
address[] memory _modules,
5
address _manager,
6
string memory _name,
7
string memory _symbol
8
)
9
external
10
returns (address)
Copied!
Before you can start interacting with the modules, you must first call an additional initialize function on each modules and provide the required data to enable the modules. See guide on Adding a Module for further details.

TokenSets

The TokenSets UI now supports creation of new Sets. This can be used to help decide your initial allocations based on a starting Set price you provide
Last modified 8mo ago
Copy link