computeExponentialTvl()
function computeExponentialTvl(props): number
Computes the total value locked of an exponential bonding curve.
Parameters
Parameter | Type | Description |
---|---|---|
props | ComputeExponentialProps | ComputeExponentialProps 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)