Post, get taken, settle
Post an offer
Pick a market, a side, a fixed rate, a size (notional) and a term of 1 to 30 days. Your deposit is locked in the contract.
Someone takes it
A counterparty locks the same deposit. The swap starts at the next UTC midnight and runs for whole days.
Anyone settles
After the last day anyone can trigger settlement. The difference between actual and fixed funding moves to whoever was right, capped at the deposit.
10,000 USDC, 7 days, fixed 10% APR
Alice is short a 10,000 USDC HYPE perp and earns funding. She wants a predictable week, so she receives a fixed 10% APR. Bob thinks HYPE funding will run hot and pays fixed. Each deposits 15 USDC.
| Funding averages | Actual leg | Swap payment | Alice's perp earned | Alice's week |
|---|---|---|---|---|
| 15% APR | 28.77 USDC | Alice pays Bob 9.59 | 28.77 | 19.18 USDC |
| 10% APR | 19.18 USDC | nothing moves | 19.18 | 19.18 USDC |
| 5% APR | 9.59 USDC | Bob pays Alice 9.59 | 9.59 | 19.18 USDC |
The payment is capped at the 15 USDC deposit, so a miss of more than about 7.8% APR is not fully covered. A bigger deposit covers a bigger miss.
From offer to payout
- PostThe maker's deposit is locked. They can cancel any time until it is taken; the offer also expires.
- TakenThe taker locks the same deposit. Neither side can back out now.
- StartsAt the next UTC midnight.
- Runs N daysHyperliquid funding accrues every hour; the oracle posts each finished day.
- SettleAnyone can call settle once the last day is posted. The difference moves to the winner.
- RefundIf the oracle has not posted the last day 7 days after the end, both sides get their full deposit back.
Rules you can check
Contracts (source-verified)
- FundingIndexOracle · · Sourcify
- FundingRateSwap · · Sourcify
- No admin keys, no upgrades, no fees.
- Code and tests: github.com/ara-stock/arc-funding-swap
The funding index
- Every value is the sum of Hyperliquid's public hourly funding for that UTC day. Anyone can recompute it (rule).
- The payment stamped at 00:00 UTC belongs to the day that just ended.
- Append-only: a day can be posted once, only after it ends, and never changed.
- Markets: HYPE, SOL, DOGE and BTC perps on Hyperliquid. The app only lists markets whose index is at most 2 days old.
Questions
What if nobody takes my offer?
Cancel it any time and your deposit comes straight back. Offers also expire after the time you set (24 hours by default); you can cancel an expired offer the same way.
What if the oracle stops posting?
If the final day of a swap has not been posted 7 days after the swap ends, either side can call refund and both get their full deposit back.
Who can change the contract?
Nobody. There is no admin key and no upgrade path, and the contract takes no fee. The source is verified on Sourcify.
Do I need a Hyperliquid account?
No. The swap only reads Hyperliquid's funding numbers. To hedge, you would hold the perp there; to predict, you only need USDC on Arc.
What can I lose?
At most your deposit. The payment between the two sides is capped at the deposit, which is itself capped at 100 USDC.