Keepers enables smart contracts to automate key functions and event-driven tasks in a highly reliable, decentralized, and cost-efficient manner.
Synthetix perps require keepers to automate 2 core area of functionality: delayed off-chain order executions, and liquidations. Keepers are rewarded for performing these duties in the form of sUSD. To find the exact values, refer to on-chain market parameters in PerpsV2MarketSettings.
Running a Keeper
In the spirit and ethos of decentralisation, we recommend members of the community and partners to execute your own keeper. Running your own keeper improves network stability, reliability, and thus gives users an overall better experience.
Running a keeper can be tricky without understanding the minute details. To alleviate this, we provide and maintain a perps-keeper, which you can run, fork, or use as inspiration for your own custom keeper.
Refer to the README for documentation, structure, and contribution.
Synthetix maintains and runs perps-keepers for the primary purpose of being a backstop if/when community keepers aren't timely during times of high volatility and/or new markets.
Keepers are rewarded for executing orders and liquidations. minKeeperFee specifies the minimum amount (in sUSD) a keeper will receive for performing any of the above operations. This is also a static amount (although configurable via SCCP) keepers receive for executing orders.
As for liquidations, sUSD is also rewarded upon liquidation. The amount received is proportional to size, fractionalised via liquidationFeeRatio. Remaining amounts post liquidation is sent to the fee pool for stakers.
Stale order cancellations also reward sUSD, determined using the same minKeeperFee parameter.