Loops HouseGimbal

NEAR HACKATHON
Team
1 member- NIOwner
Nick Oxman
Overview
Gimbal is an automated funding arbitrage desk on NEAR. It trades perps on Hyperliquid, Phoenix (Solana) and Orderly, and moves its own money between them through NEAR Intents.
The problem: a funding trade needs margin on two exchanges at once. Normally a bot holds the keys to both accounts, and when one leg gets close to liquidation someone has to move money across chains by hand.
How NEAR fits in:
- Chain Signatures. One NEAR contract owns every exchange account, and no private key for them exists. The contract checks each order against the owner's rules (price band, size cap per order and per hour, reduce-only once paused), and only then NEAR's MPC network signs it.
- NEAR Intents. Money goes between exchanges and chains through 1Click. The contract verifies the quote's signature and pays only the desk's own accounts.
- NEAR AI. A model in a secure enclave reviews every entry before it is sent.
What works on mainnet today (contract gimbal_dex.near, locked, no access keys):
- three real pairs, opened from the owner console: XLM, held 27 hours and closed by the engine; MON, held 18 hours; and a second MON pair opened on 2026-11-10, which is the one in the demo video and is still open
- three payments into the exchanges through NEAR Intents
- a mispriced order refused on chain (E_PRICE_BAND)
- on testnet, 8 of 8 scripted attacks refused, 0 USDC moved
What has not happened yet: the desk has not had to rescue a leg on mainnet, and at today's size (about 38 USDC) it does not make money. It shows that the controls hold with real funds.
Live desk, read-only: https://gimbal-production-1b10.up.railway.app Every claim above has a transaction link in the README.