Trigger Bots
Executing Transactions on Flamix
Every operation on Flamix - from opening a trade to liquidating a position - utilizes an ecosystem of trigger bots to complete the task. These bots are responsible for providing an updated and reliable price to be used when processing the operation.
Most operations are done in two phases: first, a user signs an on-chain transaction with their request, then, a bot triggers the request. Trigger bots therefore constantly monitor the state of the platform, looking for signed transactions that can be triggered.
The use of these trigger bots offers two main benefits:
Prevent Oracle Front-Running: In systems where a user submits a single transaction, the price is typically fetched before the transaction is signed. Due to the delay between this and on-chain settlement, platforms often accept slightly outdated prices, opening the possibility for opportunistic traders to exploit expected price changes. Flamix avoids this by separating the request and execution transactions. Only after a user submits their requested operation does a trigger bot fetch the current price and complete the trade. This guarantees that the price used reflects market conditions after the user’s intent is recorded — not before.
Provide Up-to-Date Pricing: Prices are retrieved at the exact moment that they're needed, offering the freshest and most reliable prices to the system.
Last updated