Skip to main content

PowTask

Round the current running result to an exponential power.

Input: The current running numerical result.

Returns: The input raised to an exponential power.

Example: Raise 2 to the power of 3, 2^3

{
"tasks": [
{
"valueTask": {
"value": 2
}
},
{
"powTask": {
"scalar": 3
}
}
]
}

See the PowTask typescript definition in @switchboard-xyz/common

Fields

NameTypeDescription
 scalar

double

Take the working value to the exponent of value.

 aggregatorPubkey

string

Take the working value to the exponent of the aggregators value.

 big

string

A stringified big.js. Accepts variable expansion syntax.