Install Crowdfunding Module
XDAO TON is built on a modular principle: additional smart contracts — plugins that extend its capabilities — can be attached to the base DAO contract. A proposal of type Install Plugin (install_plugin) is the general mechanism for installing such a plugin in a DAO.
Currently, this proposal type installs a single plugin — the Crowdfunding Module: it deploys an LP Manager contract in the DAO, which issues LP tokens (jetton) to crowdfunding campaign contributors and stores the fundraising rules.
Use Install Plugin when:
- you want to launch crowdfunding in your DAO for the first time and haven't installed an LP Manager yet;
- you want to issue a separate LP token for a new, parallel campaign — the proposal can be created repeatedly, deploying a new LP Manager each time.
Install Plugin is only available after the DAO has already gone through a one-time Upgrade — a proposal that enables crowdfunding support (enable_crowdfunding_support). Until the upgrade is carried out, the Install Plugin type will not appear in the list of available proposals.
To install the Crowdfunding Module:
Open your DAO, go to the Votes tab, and click Create Proposal.
From the list of proposal types, select Install Crowdfunding Module.
Fill in the parameters of the future LP token that will back the crowdfunding campaign:
- LP Token Name — the LP token's name (required, up to 64 characters; defaults to "DAO Name LP Token");
- LP Token Symbol — the LP token's symbol (ticker) (required, up to 16 characters, uppercase Latin letters, digits, and hyphens only; defaults to "SYMBOL-DAO-LP");
- the LP token's avatar — optional; you can upload an image, otherwise the default TON logo is used;
- the LP token's description — optional, up to 256 characters.
The proposal's own title and description are pre-filled by default and usually don't need to be changed.
Set the Voting Duration — the period during which GPs can vote (2 days by default).
Click Create Proposal to submit the proposal for voting.
GPs vote on the proposal. Once general consensus is reached, the proposal is executed on-chain: a new LP Manager contract is deployed and appears on the DAO page's Plugins tab with the type "LP Manager".
The XDAO platform fee — 5% of the amount raised in a crowdfunding campaign — is only charged when a campaign completes successfully, not when the plugin is installed.
Once the LP Manager is installed, you can launch crowdfunding campaigns — see Enable Crowdfunding Support and Create Crowdfunding Campaign.