SDKs@solio/coreUtilsencodeExponentialParam

encodeExponentialParam()

function encodeExponentialParam(param): `0x${string}`

Encodes the parameters for an exponential bonding curve.

Parameters

ParameterTypeDescription
paramEncodeExponentialParamEncodeExponentialParam An object containing the parameters a and b for the exponential bonding curve.

Returns

`0x${string}`

A hash representing the encoded ABI parameters.

Example

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