generateExponentialChart()
function generateExponentialChart(props): BondingCurveChart
Generates a chart for an exponential bonding curve.
Parameters
Parameter | Type | Description |
---|---|---|
props | GenerateExponentialChartProps | GenerateExponentialChartProps An object containing the parameters a and b for the exponential bonding curve, and the supply of the token. |
Returns
An array of points on the chart, each containing the supply
, price
, tvl
, and marketCap
of the token.
Example
const params = {
a: 0.1,
b: 10,
supply: 100,
}
const res = generateExponentialChart(params)
console.log(res)