Vingt.io Resource Center
  • Introduction
    • Problem Statement & Solution
    • Introduction to Vingt.io
      • Vingt.io Index and Strategy Protocol (VISP)
  • Vingt.io Products
    • Index Tokens
    • Trading Strategies
    • Leveraged Tokens
  • Vingt.io AI Intelligence Stack
    • AI Smart Agents
      • Market Condition Intelligence
      • Market Health Scoring System
      • User Profiling Engine
      • AI Signal & Alert Engine
      • Execution & UX Layer
  • Tokenomics
    • Token Utility
    • Token Distribution
    • Incentives
    • Economic Sustainability
  • Technical Guide
    • VISP Technical Foundation
      • Contract Functions
        • Set Token
        • SetTokenCreator
        • Controller
        • IntegrationRegistry
        • BasicIssuanceModule
        • DebtIssuanceModuleV3
        • TradeModule
        • StreamingFeeModule
        • AaveV3LeverageModule
      • Index Token Manger Guide
        • Creating a Set
        • Adding a Module
        • Configuring a Set
        • Basic Issuance
        • Trading
          • Via 0x
        • Charging a Streaming Fee
    • Deployed Contracts
    • Multisig Wallets
  • Miscellaneous
    • Roadmap
    • Audit and Security (VISP)
    • FAQs
    • Legal
      • Privacy Policy (Vingt.io)
      • Terms of Service (dApp)
      • Tokens Restricted for Restricted Persons
Powered by GitBook
On this page
  1. Technical Guide
  2. VISP Technical Foundation
  3. Index Token Manger Guide

Creating a Set

PreviousIndex Token Manger GuideNextAdding a Module

Last updated 9 months ago

CtrlK
  • Creating a Set via SetToken contract
  • Creating a Set via BscScan

Creating a Set via SetToken contract

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: BEP20 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:

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 'Adding a Module' for further details.

Creating a Set via BscScan

Navigate to the SetTokenCreator contract on BNB-Chain

  1. Connect your web3 wallet

  2. Fill in details as explained above

function create(
    address[] memory _components,
    int256[] memory _units,
    address[] memory _modules,
    address _manager,
    string memory _name,
    string memory _symbol
)
    external
    returns (address)