How to set named bases and constants in the composer
Bases are the named values formulas may use (for example participation_amount); constants are fixed values such as rates. Nothing is assumed, including conversion rates.
Have questions or need step-by-step guidance on this topic?
Step-by-Step Procedure
Open "Bases & constants"
Two cards appear: "Named bases" and "Constants".
Add a base
Type a "base name" and click "Add". Choose its unit (money, num, bool or str) and, for money, its Asset. A percentage reward must always name its base.
Add a constant
Type a "constant name" and click "Add" (new constants start at 0). Edit the value; true, false and numbers are recognised, anything else stays text.
Remove what is not needed
Use the red x beside an entry, then click "Save draft".
Formulas and rewards can reference the bases and constants you defined, with values that you entered.
Troubleshooting & Failure Modes
Was this guide helpful?
Help us refine our platform documentation