omni_bonding_curve_token_mint
Calculate instantaneous token price, minting cost, average purchase price, and reserve backing for linear and polynomial bonding curves using deterministic formulas.
Instructions
Continuous Token Bonding Curve Price & Minting Cost Model. Calculate instantaneous token price, buy/sell minting costs, and reserve pool backing for linear and polynomial bonding curves (Pump.fun, Bancor). Discipline: CRYPTO. Governing mathematical model / formula: Price P(S) = m · Sᵇ | Total Cost to Mint = ∫ P(S) dS = (m / [b + 1]) · S^(b + 1).
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of total_purchase_cost_eth (Total Cost to Mint Tokens), final_token_price (New Token Price After Buy), average_cost_per_token (Average Purchase Price), reserve_pool_balance (Total Collateral Locked in Curve) using current_token_supply (Current Circulating Supply (S) in Tokens), tokens_to_buy (Tokens to Purchase / Mint (ΔS) in Tokens), curve_slope_m (Curve Price Slope Coefficient (m)), curve_exponent_b (Curve Exponent Power (1 = Linear, 2 = Quadratic)). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Continuous Token Bonding Curve Price & Minting Cost Model' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "bonding-curve-token-mint"
category (string): "crypto"
name (string): "Continuous Token Bonding Curve Price & Minting Cost Model"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.total_purchase_cost_eth (Total Cost to Mint Tokens): Formatted display string (e.g. '13.75 SOL / ETH')
metrics.final_token_price (New Token Price After Buy): Formatted display string (e.g. '$0.60 / token')
metrics.average_cost_per_token (Average Purchase Price): Formatted display string (e.g. '$0.55 / token')
metrics.reserve_pool_balance (Total Collateral Locked in Curve): Formatted display string (e.g. '$90.00 Total Reserve')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_bonding_curve_token_mint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| curve_slope_m | No | Curve Price Slope Coefficient (m). Linear price scaling factor. Default: 2e-8. Min: 1e-10. Max: 0.001. | |
| tokens_to_buy | No | Tokens to Purchase / Mint (ΔS) (Tokens). Number of new tokens to mint. Default: 5000000. Min: 1000. Max: 50000000. | |
| curve_exponent_b | No | Curve Exponent Power (1 = Linear, 2 = Quadratic). 1 for linear curve, 2 for exponential steepness. Default: 1. Min: 1. Max: 3. | |
| current_token_supply | No | Current Circulating Supply (S) (Tokens). Tokens minted so far along the curve. Default: 25000000. Min: 10000. Max: 1000000000. |