SDKs@solio/coreUtilscomputeExponentialTvl

computeExponentialTvl()

function computeExponentialTvl(props): number

Computes the total value locked 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 total value locked in the bonding curve.

Example

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