SDKs@solio/coreUtilsgenerateExponentialChart

generateExponentialChart()

function generateExponentialChart(props): BondingCurveChart

Generates a chart for an exponential bonding curve.

Parameters

ParameterTypeDescription
propsGenerateExponentialChartPropsGenerateExponentialChartProps An object containing the parameters a and b for the exponential bonding curve, and the supply of the token.

Returns

BondingCurveChart

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)