SDKs@solio/coreUtilscomputeExponentialPrice

computeExponentialPrice()

function computeExponentialPrice(props): number

Computes the price of an exponential bonding curve.

Parameters

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

Returns

number

The current price of the token.

Example

const params = {
  a: 0.1,
  b: 10,
  supply: 10,
}
const res = computeExponentialPrice(params)
console.log(res)