Create a DeFi Rule

Start by ensuring that your Smart Account is set up and you have funded your Smart Account. Then using the Coinrule interface, you can easily create and launch rules to automate trades on the selected blockchain to automate your trading!​

The Guide to Launching Rules on DeFi

From the dashboard, click 'Create Rule', this will take you to the rule editor.

Select the exchange/network you would like the rule to run on, you can check the available balance on the exchange once you have selected one.

Then, you can start specifying the conditions that you would like in place for the rule to trigger.

Once you have selected the condition, it's time to define an action or multiple actions that the bot will execute once the condition is met. ​ When using your smart account, you have the ability to set two additional parameters for actions that are specific to DeFi: 'Max Gas Price' and 'Max Slippage'.

These fields allow you to define the maximum transaction fees you are willing to pay and the acceptable price deviation during execution, for better control over your trades in the more volatile DeFi environment.

Once you have set up the first execution, you can create a more advanced rule by adding an operator. The operator is representative of a logical connection between different blocks within one rule. ​There are five operators that are available to use when using Coinrule, providing versatility and fluidity to create any trading plan desired.​

Lastly, you can set the time you would like to Launch the rule, and how many times you would like the rule to be executed. It is of utmost importance to avoid overtrading by setting a limit of executions within a timeframe.

Token Approvals

If any of the tokens traded or transferred in the rule are not pre-approved, you will be prompted to sign a transaction on your wallet when you click on 'Launch'.

The connected wallet must the signer wallet that your smart account was initialized with.

A pop-up will appear in your EVM wallet extension asking you to connect to sign this transaction. Press 'Sign'.

This signature allows the Coinrule to trade that particular token without further interaction from users. See the image below for an example.

You are now ready to create your first rules!

You may find it useful to have a look at our best-performing templates.

Last updated