Several Kimia operations are permissionless cranks. Running a keeper bot
requires no whitelist, and you can earn by being first to liquidate or by
layering your own fee structure on funding updates.
Cranks on offer
Minimal Node bot
Finding liquidatable users
Subscribe to program accounts for kimia-perp::UserAccount, read
base_amount, collateral, market_index, and compute health off-chain with
the perps-math model. Then call liquidate:
liquidate touches the orderbook (to cancel the victim’s resting orders)
and reads the oracle. Always prepend a fresh oracle post, a stale price will
revert with StaleOracle.
Rebalance the vault
Operational tips
- RPC quality matters. Liquidation races reward low-latency RPCs and
tightly-controlled transaction priority fees.
- Sync reward_per_share before claiming. For vault integrators, calling
update_rewards before claim_yield maximizes the user’s payout.
- Don’t assume idempotency.
update_funding_rate enforces elapsed ≥ funding_period; wasted calls just fail silently with FundingTooEarly.