keeper
main
keeper.ts
import { getDrift } from "./drift"import { rebalance } from "./rebalance"
const LIMIT = 0.02
export async function run(index: string) {  // only rebalance when drift is above the limit  const drift = await getDrift(index)  if (drift < LIMIT) return { status: "skipped", drift }  const tx = await rebalance(index, { slippage: 0.01 })  return { status: "ok", drift, tx }}
Terminal
$ bun run test

RUN  v2.1.4 /app

 ✓ tests/drift.test.ts (4)
 ✗ tests/keeper.test.ts (3)
   → expected 0.02 to be less than 0.02

Test Files  1 failed | 1 passed