Funding farm
You need: Trading keys on two or more DEXs.
What it does
Every 5 minutes it reads the latest scan of every market on your DEXs and opens hedged positions on the best routes. Each position is a normal bot with every safety check.
A route qualifies when its funding, averaged over the last 24 hours, meets your rate, and that funding pays back the fees and spread of opening and closing within a day. It must also have paid in most of the last 24 hours, so a one-hour spike isn't farmed.
Settings
- DEXs: the DEXs it may use. A DEX another bot holds is taken once it's free.
- Funding it must earn, at least: the APR a route needs to open.
- Most positions at once and the margin per leg.
- Stack positions on a DEX: off, each DEX holds one position. On, a DEX takes another market while its free margin covers one more leg.
- Recycle for volume: once a position's funding has paid for closing and reopening it (with 20% to spare), it does that, at most every 2 hours.
When positions close
- When funding costs more over 24 hours than closing would, on two reads 15 minutes apart. At today's fees that's about −15% APR, so a short dip doesn't churn the position.
- When a guard closes it. The farm then opens the next best route.
- If you stop one position yourself, the farm doesn't reopen that route for 24 hours.
- Stopping or pausing the farm applies to all its positions.