Templates

SynthFi Templates are pre-configured protocol blueprints designed to help users kickstart the development of common DeFi modules or smart contract systems (e.g., staking, vesting, launchpads, etc.) with minimal friction. They serve as structured examples that can be launched immediately or remixed with AI.


đź”§ Key Features

  • Prompt Blueprint: Each template includes a default AI prompt describing the logic (e.g., "Staking Pool with APR and Lockup").

  • Deep Prompt Integration: Automatically enhanced with AI integration details and logic explanation.

  • Inline Customization: Users can configure project-specific inputs before launch (name, symbol, decimals).

  • Preview Modal: View full prompt, explanation, and sample code before using.

  • Launchpad Prefill: Once selected, the template auto-fills deployment fields on the Launchpad.


AI Integration

If supported, templates come with optional AI modules that enhance functionality:

  • Token utility logic

  • AI trading agent config

  • Dynamic behavior customization (e.g., auto rebalancing, custom AI strategies)

Users can toggle the AI section before continuing.


How to Use a Template

  1. Navigate to the Templates page

  2. Click “Use Template”

  3. A modal will appear with:

    • Template details

    • Editable project fields

    • Optional AI integration toggle

  4. Fill in your values

  5. Click “Continue to Launchpad” → fields will be auto-filled


Template Voting System

Community-curated ranking of templates through token-gated voting.

  • Requirement: Must hold ≥100,000 SYNTHFI tokens

  • Vote Actions:

    • One vote per wallet per template

    • Votes are stored and displayed transparently

  • Sorting Options:

    • Most Voted

    • Most Used

    • Newest

Votes are tied to the SynthFi SPL Token: D9mendaps8MaMHtLz2w8Duum3FfamPh2yWX5owKZpump


Technical Notes

  • Voting system reads token balances via Solana RPC (ensure connection is established)

  • All data passed from templates → Launchpad via local/session storage or URL params (never mutates homepage)

  • Backend stores usage counts & vote data for sorting

Last updated