Processor Calculate
This processor performs addition, subtraction, multiplication, or division on numbers and stores the result in a variable.
For instance, when swapping ETH to USDT (selling ETH), you might want to retain some ETH - either to avoid selling the entire balance or to cover gas fees. This processor handles that calculation for you.

Configuration meanings:
Field name
Required?
Detail
Variable name for storing result
Yes
The processor outputs the computed value; assign a variable name to store it. For example, NATIVE_BALANCE_MINUS.
Decimal part
No
Represents the decimal portion of the result. For example, with 2 decimal places the output might be 1.34 or 2.54; with 1 decimal place, you’d see 1.3 or 2.5.
Last updated