Format Inputs
Doing math with inputs
You can perform various mathematical functions with your inputs, such as multiplying an input by a number or adding two inputs together.
Here are a few examples used in NFT related automations:
Automatically Outbidding: Fetch the top bid and place a new bid at the ‘Top Bid + 0.0001’.
Setting a Stop Loss: Fetch the Floor price and your purchase price, then list when ‘Floor - Last purchase price < 0'.
Alert on a Fat Finger Listing: Receive a notification when 'Listing Price is < Floor price * 0.5’.
Here are the steps to perform mathematical operations with inputs:
Click on an input field and select some data from a previous step.
Click on the blue input placeholder you've just added and click format
Pick a function you want to do, for example multiply
Type in or add another input to multiply your original input with.
Tip: You can test your formula by testing your step and looking at the step's outputs.
Note: Domino uses standard LiquidJS formulas for mathematical functions. Learn about all supported LiquidJS functions here.
Tip: Click on Raw to see and edit a variable directly in LiquidJS.
Last updated