solana-app-kit


solana-app-kit / components/tokenMill/BondingCurveConfigurator / default

Function: default()

default(__namedParameters): Element

Defined in: src/components/tokenMill/BondingCurveConfigurator.tsx:87

A component for configuring bonding curves with visual feedback

Parameters

__namedParameters

BondingCurveConfiguratorProps

Returns

Element

Component

Description

BondingCurveConfigurator provides an interactive interface for configuring bonding curves with real-time visual feedback. It supports multiple curve types and allows users to adjust various parameters through sliders.

Features:

  • Multiple curve types (linear, power, exponential, logarithmic)
  • Real-time curve visualization
  • Adjustable parameters:
    • Number of points
    • Base price
    • Top price
    • Power (for power curves)
    • Fee percentage
  • Platform-specific optimizations
  • Loading states
  • Customizable styling

Example

<BondingCurveConfigurator
  onCurveChange={(askPrices, bidPrices) => {
    console.log('New curve prices:', {askPrices, bidPrices});
  }}
/>