Loops HouseBallast

NEAR HACKATHON
Links
Team
1 member- OLOwner
Ollie Chapman
Overview
Ballast makes your staked NEAR pay for your AI, and never more than it needs to. NEAR AI lets you stake NEAR for inference: the staking rewards go to NEAR AI and come back as AI credits you can't cash out. Stake too much and you lose yield. Stake too little and your requests get throttled. Unstaking takes about 4 epochs, so nobody can tune this by hand. Ballast is a non-custodial vault contract plus an agent. You set a weekly AI budget and guard rails on-chain. The vault splits your NEAR between NEAR AI's stake-for-inference farm and an ordinary staking pool. The agent forecasts your burn from real usage, shifts stake before credits run low, and, if a spike outruns the unbond, buys a capped top-up paid only from yield the vault has earned. It signs with a function-call key limited to rebalance, step and sync, and the vault only lets funds move toward the target, so a faulty agent can stall the vault but never drain it. After exit anyone can unwind it, and only the owner can withdraw. In a 30-day simulation with a usage spike, Ballast had 0 throttled hours (set-and-forget had 116) and still earned 110.6 NEAR of yield (all-in on AI earned 0). How NEAR fits: the vault stakes into NEAR AI's own staking-contract from a contract sub-account, uses function-call access keys as the agent's permission boundary, and uses NEAR's staking pool interface for yield. On mainnet, a Ballast vault staked into NEAR AI's real farm and NEAR AI Cloud shows its credits. On testnet, the agent has rebalanced across epochs, three attack attempts were rejected, and a stranger account completed a full exit. Play the harbour game at near-ballast.vercel.app, or open the dashboard at /app.html to watch the live vault or sign in with a NEAR wallet. Our goal: get this built into near.com's staking flow.