FXED Labs Co. LLC, Delaware · Protocol operator · Not a broker-dealerFXED Labs Co. LLC · Delaware · Not a broker-dealer

FXED Labs

PDF · 24 Nov 2026

FXED Protocol · Specification v3.0

Non-custodial perpetual FX. Counterparty: ERC-4626 USDC vault.

This paper is the protocol specification for the FXED venue on Arbitrum One: five live contracts, one quote asset (USDC, 6 decimals), two users (trader and LP). It states invariants, state transitions, PnL, failure modes, and how to verify bytecode. It is not a marketing note and not an offering document. On-chain parameters after deployment supersede constructor defaults. The public interface may quote a tighter fee than the contract cap; settlement follows the contracts.

  • Doc · FXED-WP-3.0
  • Date · 16 Sep 2026
  • Chain · Arbitrum One
  • Quote · USDC (6 dp)
  • Share · vFX (ERC-4626)
  • Operator · FXED Labs Co. LLC, Delaware

Classification: public technical paper. Not an offer of securities, not a prospectus, not investment advice. FXED Labs Co. LLC is not a broker-dealer, FCM, bank, or registered exchange. The interface is not offered to US persons. Perpetuals can liquidate posted margin in full.

1. Scope and definitions

FXED is a perpetual-futures venue. The trader’s margin and the LP’s capital sit in the same Vault contract. Positions are isolated or cross, one key per trader × pair × side. Size is quote-normalized in USDC. Marks are a push oracle. Execution is operator-submitted: the engine does not pull the oracle inside openOrUpdatePosition.

TermMeaning in this paper
QuoteUSDC, 6 decimals. Sole margin and LP asset.
vFXERC-4626 vault share. Represents LP residual, not trader margin.
IMInitial margin. Interface IM% = 100 / max leverage for that pair.
MM / thresholdMaintenance: equity must stay above margin × liquidationThresholdBps.
OIOpen interest as entry notional per side, per pair.
OperatorPrivileged key that submits trades, funding settles, hedge records.
UpdaterPrivileged key that pushes oracle mid, spread, epoch.

2. Thesis

A retail CFD desk combines three things the client cannot inspect: custody of cash, the mark, and the other side of the ticket. FXED splits them.

Custody

USDC remains in the Vault contract. FXED Labs Co. LLC does not take those tokens onto its balance sheet. Withdrawal is a contract call, subject to IM lock, pause, and solvency.

Mark

Bid/ask are derived from a pushed mid and a spread in bps. There is no last-look window in the contract. There is an updater. That is a different trust model, not the absence of trust.

Book

The counterparty to a trader is LP capital in the vault, not an internal B-book. Trader gains are paid from vault cash if solvency tests pass. Trader losses credit LP residual.

Night

Overnight swap is not charged. Funding is a skew index, trader-to-trader. The interface displays an 8-hour epoch; the contract accrues a per-hour rate.

3. System map

Five live contracts, read on chain. Writers on PositionStorage are the engine. Users never write positions directly.

ContractHolds / decidesCalled byArbitrum One
VaultUSDC, vFX, margin sleeves, insurance, solvency, pauseUser, engine, owner0xf01737A20468b8e05990dCC1CfCF16AE3efa2979
PerpEngineOpen, increase, close, liquidateOperator, liquidator0x793d062b53331Fa02A2397b1E72e3D7e8Bb77aA0
PositionStorageRecords keyed by user, pair, sideEngine only0x84e8a3Db7ff8A4a5A4f8CfC142b203EA62180F35
FeeManagerOpen / close / withdrawal bps; protocol–LP splitEngine, vault, owner0x02F49ca022fC6B6b945540a7B5f5124C28647eCe
OracleMid, spread bps, bid, ask, epoch idUpdater0x98b18259D37bDC6Af63e82287B0299131498d814

Addresses read on chain 42161 on 24 November 2026: Vault.perpEngine is the PerpEngine in this table, and that engine’s vault(), oracle(), posStorage() and feeManager() are the rows above. Quote asset is Circle native USDC, 0xaf88d065e77c8cC2239327C5EDb3A432268e5831. The live engine exposes no hedger or funding-manager address, so Hedger, FundingManager and RiskEngine are not listed here. Read the address the interface will call before you deposit.

Trader cash path: Vault.depositMargin → operator submits PerpEngine.openOrUpdatePosition with executePrice and spread → engine locks margin and writes PositionStorage. LP cash path: Vault.deposit (ERC-4626) → vFX, subject to lock.

4. Vault

ERC-4626 over USDC. Share token vFX, 6 decimals. LP residual is not the USDC balance of the contract:

totalAssets = token.balanceOf(vault) − totalMarginLiability

If liabilities exceed cash, LP assets read as zero. Paying a trader credit additionally requires that cash / liabilities ≥ 110% after the credit (constructor). Daily net LP loss when traders are net winners is capped at min(10% of LP TVL, 500,000 USDC), owner-settable.

LPs

Deposit and redeem via ERC-4626. Each deposit restarts a lock (constructor: 4 days). Redeem and share transfer are blocked until unlock. Performance above a high-water mark may mint fee shares: 20% of the gain, of which 30% to the fee recipient. Crystallisation cooldown: 1 hour.

Insurance

2% of collected trading fees accrues to insuranceFund. Owner may cover a vault deficit from that sleeve only. It is not a guaranteed make-whole.

Pause is an owner/pauser function. Emergency withdraw moves only cash in excess of liabilities. That is operator power, not a user right. Read the roles before you deposit.

5. Margin

Two sleeves on the trader: available and locked / used IM. Isolated and cross cannot coexist on the same active position.

  • Isolated. lockMargin on open. PnL and liquidation are confined to that lock. Unused available is not in the liquidation set.
  • Cross. Increases usedInitialMargin against available collateral. Equity for liquidation includes available minus used IM, plus position PnL.
  • Withdraw. Only from available. Subject to withdrawal fee, pause, and leaving used IM covered.

notional = margin × leverage

size = notional × 1e6 / price

isolated equity = lockedMargin + tradePnL

cross equity = available + lockedMargin + sum(tradePnL) − usedIM

Leverage must be in (0, maxLeverage] for the pair. Posted margin at least minMargin. Isolated equity ignores unused available. Cross equity includes it.

6. Perpetual engine

One position key: trader × pair × side. A long and a short on the same pair may coexist. Size is quote-normalized.

  • Open. Long fills on the ask; short on the bid. Open fee is taken from posted margin; size is computed on the remainder. Operator supplies executePrice and spread — the engine does not read the oracle on this path.
  • Increase. Same side. New margin added; entry is size-weighted; leverage recomputed. Resulting notional must remain within max leverage.
  • Close. Opposite side of the spread. Dust below pair epsilon (default 10 USDC notional) is a full close. Partial close releases pro-rata margin and realized PnL.

Open interest is stored as entry notional per side and read by FundingManager as getOpenInterest(pair).

Position lifecycle

A position is unique on (trader, pair, side). Isolated and cross are incompatible on that key while Active. Long and short are different keys. Cleared keys may be opened again. Dust below epsilon is a full close.

7. Markets

Leverage is by book, not one number for the whole engine. Nineteen markets: forex EUR/USD, GBP/USD, USD/JPY, USD/CHF, AUD/USD, USD/CAD, NZD/USD; metals XAU, XAG; crypto BTC, ETH; equities and indices COIN, NVDA, TSLA, AAPL, SPY, QQQ, SpaceX, Anthropic. Forex is 200×. Metals are 200×. Crypto is 50×. Equities and indices, SpaceX and Anthropic included, are 20×. Owner can disable a pair. Initial margin is 100 / leverage. Minimum posted margin is 10 USDC.

BookMax lev.IMHours
Forex200×0.50%24/5: Sun 21:05 → Fri 21:00 UTC. 24/7 planned.
Metals200×0.50%24/7 on Stork 24/7 feeds
Crypto50×2.00%24/7 on Stork 24/7 feeds
Equities and indices20×5.00%24/7 on Stork 24/7 feeds
COIN20×5.00%24/5, as forex. 24/7 planned.

8. Fees

FeeManager stores three schedules in bps, owner-set, each capped at 10,000. Protocol share of a collected fee is a second bps (constructor 3,000 = 30%); residual to LPs. 2% of the collected fee is sleeved to insurance before that split.

BaseConstructorRead 24 Nov 2026
OpenPosted margin10 bps10 bps
CloseExit notional10 bps10 bps
WithdrawalAmount withdrawn10 bps10 bps
Protocol shareOf the fee3,000 bps3,000 bps (30%)
Opening spreadStork mid—0.10%
Overnight swap—None0%
Inactivity—NoneNone

Reading is the §3 FeeManager: 10 / 10 / 10 bps, protocol share 3,000 bps. There is no 5 bps schedule. The interface opens at the Stork mid plus a 0.10% spread. Owner can change the bps inside the 10,000 cap. Settlement is the value at the call.

9. Funding

No swap. Funding is a continuous index per pair. Hourly rate is open-interest skew, clamped to a per-pair max:

rate = (longOI − shortOI) / (longOI + shortOI) × maxRatePerHour

The cumulative index advances by rate × elapsed hours. On settle, notional × Δindex is credited to shorts and debited to longs when the index has risen (reverse when it has fallen). The operator registers and settles. A disabled pair pays zero. If PerpEngine is unset, the dynamic rate is zero. Price for the notional uses the primary oracle, then a secondary if the primary reverts or returns zero.

The interface groups display into 8-hour epochs (crypto-perp convention). That is presentation. Accrual on-chain is the hourly index above.

10. Oracle and execution

The live price feed is Stork Network. The interface and the desk marks read Stork. Settlement is still a push oracle: a single updater publishes mid, spread in bps, and epoch id — one pair or a batch. Bid and ask = mid ± half the spread. latestPrice reverts if no print exists. The engine does not call Stork inside the fill. The operator submits executePrice and spread. If Stork and the on-chain print diverge, liquidations use the contract.

Execution path is not an AMM. The operator submits executePrice and spread into the engine. Integrity of that submission, and liveness of the updater, are protocol risk. A stale or wrong print can move PnL and liquidations. A pause or sequencer halt can leave positions unmarkable.

Marketing language “no last-look” means the contract does not implement a dealer reject window. It does not mean a permissionless price. Read this section before you size a ticket.

11. Liquidation

Callers: addresses flagged as liquidators, plus operator and owner. Equity = locked margin ± trade PnL; on cross, plus available collateral minus used IM.

healthy iff equity exceeds margin × liquidationThresholdBps / 10_000

If healthy, the call reverts. If not, the position is cleared, OI reduced, remaining equity (if any) charged a fee; if equity is negative the locked margin is taken. The liquidator supplies liquidationPrice. Oracle unavailability reverts — it is not a free option for the trader.

12. Hedger

On-chain exposure ledger, not an exchange account. Per pair the owner sets mode: none, partial (bps of size), or full. Operator opens, adjusts and closes hedge records as the book moves. Net size = long − short. Any actual hedge is an off-chain policy that reads this ledger. LPs should assume the book can remain unhedged.

13. Roles

RoleAuthority
OwnerParameters, pairs, pauser, fee recipient, emergency excess, operators
OperatorSubmit trades, register/settle funding, hedge records, crystallise
Oracle updaterPush mid, spread, epoch
Liquidatorliquidate() only
Position writerSet and clear positions (engine)
UserdepositMargin / withdrawMargin; deposit / redeem vFX subject to lock

Privileged keys are the trust model. A compromised owner or updater is not “on-chain safety.” Verify roles on Arbitrum One before depositing.

14. Market hours

BookOpenClosed
FX majors and COIN (24/5; 24/7 planned)Sun 21:05 UTC → Fri 21:00 UTCFri 21:00 UTC → Sun 21:05 UTC
Metals, BTC, ETH, equities and indices incl. SpaceX and Anthropic (Stork 24/7 feeds)Continuous, if oracle printsWhen the updater is silent or the pair is disabled

Hours are an interface and oracle policy. Positions may remain open through an FX weekend; FX pairs and COIN are not marked while their feed is down. Funding on a disabled pair is zero.

15. Audit and disclosure

Core contracts are in scope for ZeroDrift. An Immunefi programme is live. Scope, severity, and paid reports are the programme page — not this paper. A completed audit is not a warranty. Constructor defaults:

ParameterCompiled default
Open / close / withdrawal fee10 / 10 / 10 bps
FeeManager protocol share30%
Insurance sleeve of collected fee2%
LP lock4 days
Performance fee above HWM20% of gain (30% of that to recipient)
Daily LP loss capmin(10% TVL, 500,000 USDC)
Min solvency to pay trader gain110%
Dust epsilon10 USDC notional
Vault / vFX decimals6

16. Risk register

RiskWho bears itNote
Leverage / liquidationTraderPosted margin can go to zero.
Trader net gainsLPNAV falls. Daily cap may stop paying traders.
Solvency below 110%Trader (receivable)Gains can be delayed or unpaid.
Oracle / operatorBothTrusted marks and execution.
Pause / lockLP and trader4-day LP lock. Owner pause.
Unhedged bookLPHedger is a ledger, not a fill.
Chain / USDC / sequencerBothArbitrum One and the quote token.
Legal accessUserNot offered to US persons. Not a broker-dealer.

17. Worked example (illustrative)

Numbers below are a forex ticket at the desk cap: leverage 200× (initial margin 0.50%), open and close 10 bps, liquidationThresholdBps 1,500 (equity must exceed 15% of margin). They are a worked ticket, not a quote. Assume EURUSD, isolated long, mid 1.10000, spread 2 bps, so ask 1.10011 and bid 1.09989. maxRatePerHour in the funding line is an assumption of 1 bp per hour. It is not a stored market parameter.

StepInputResult
depositMargin10,000 USDCavailable = 10,000
Post isolated2,000 USDC lockedavailable = 8,000
Open fee 10 bpson 2,0002.00 USDC. Effective margin 1,998
Notional1,998 × 200399,600 USDC
Fillask 1.10011long EURUSD, isolated
Close 20 pips againstbid 1.09791price move ≈ −0.20%
Trade PnL399,600 × (−0.0020)≈ −799.20 USDC
Close fee 10 bpson exit notional ≈ 398,801≈ 39.88 USDC
Net vs lockfees + PnL≈ −841.08 on 2,000 (−42.1%)

Liquidation on the same lock, using 1,500 bps on the 1,998 USDC that remains after the open fee: equity must exceed about 300 USDC. Room to the threshold is about 1,698 USDC, which is a 0.425% adverse move on 399,600 notional. Unused 8,000 available is not in the isolated set.

Funding, same hour, illustrative only: long OI 12m, short OI 8m, skew = 0.20, and an assumed max of 1 bp/h, so rate = 0.20 bp/h. On 399,600 notional that is ≈ 8.00 USDC per hour, paid by longs to shorts. Eight-hour epoch display ≈ 64 USDC. The 1 bp/h cap was not read from the chain. Accrual is the hourly index; the epoch is presentation.

18. Cash flows

Fee split on each collected trading fee: 2% insurance sleeve, then protocol share (constructor 30%), residual to LP assets. Trader gains debit vault cash only if the 110% solvency test passes after the credit and the daily cap is not exhausted. Operator does not sit in this path as a custodian.

19. Insurance and payout waterfall

When traders are net winners in a period, credits are attempted in this order:

  1. Debit vault cash, credit trader available, if cash / liabilities is at least 110% after the credit.
  2. If the day’s net LP loss would exceed min(10% LP TVL, 500,000 USDC), stop. Further trader gains wait or fail that day.
  3. If cash is below liabilities, LP totalAssets reads as zero. Trader credits do not print.
  4. Owner may cover a deficit from insuranceFund. That is discretion, not a user claim.

A trader who is in profit is an unsecured receivable against a capped vault. Size tickets as if payout can be delayed. An LP is underwriting that receivable.

20. Oracle and operator failure

EventContract behaviourBook impact
No print / latestPrice revertsLiquidation reverts. Funding may fall back to secondary or zero.Positions unmarked. Equity not enforceable.
Stale or wrong midEngine still accepts operator executePrice on open/close.PnL and liq can print off the cash market.
Updater key compromisedAttacker can push mids.Both sides. This is not an AMM.
Operator silentNo new fills, no funding settle, no hedge records.Book freezes. Withdraw still depends on pause and IM.
PauseOwner/pauser. Emergency withdraw = cash minus liabilities only.Normal flow halted.
Sequencer / USDC haltL2 and quote-token risk.Both sides. No protocol hedge.

21. Parameter change (governance)

There is no token vote and no timelock specified in this paper. Owner transactions set fees (inside the 10,000 bps cap), protocol share, pair leverage/IM, liquidation threshold, daily cap, operators, updater, pauser, fee recipient. Treat a parameter change as immediate once mined. Diligence is: who holds owner, whether a multisig or hardware, and whether a timelock is later wrapped around owner. If those facts are not on Arbiscan, assume unilateral owner.

ChangeWhoDelay in this paper
Fee bps, protocol shareOwnerNone specified
Pair max leverage / enableOwnerNone specified
Oracle updaterOwnerNone specified
Pause / emergency excessPauser / ownerNone specified
LP lock, HWM feeOwner (vault params)Existing deposits still sit in the 4-day lock

22. Deployment and verification

Addresses in §3 were read on Arbitrum One from the live PerpEngine and Vault on 24 November 2026. They can move. Bytecode does not. Verify on Arbitrum One before you deposit:

  1. The address the interface will actually call, not only the address in this paper.
  2. Each of the five names in §3 matches bytecode to the ZeroDrift-scoped commit.
  3. Owner, operator, updater, pauser keys. Multisig or EOA.
  4. FeeManager open, close and withdrawal bps. Reading on 24 November 2026 was 10 / 10 / 10 on the §3 contract.
  5. USDC token address (6 decimals) and vault asset() are the same.
  6. Immunefi programme scope lists those addresses. A report ID lives on Immunefi, not here.

Demo at fxed.xyz uses 5,000 virtual USDC and does not settle. Live is Arbitrum One only. Chain ID 42161. Fiat in and out on the interface is Fun.xyz (on-ramp and off-ramp). Fun.xyz is not a protocol contract and does not hold vault USDC.

ZeroDrift in-scope and Immunefi live are process facts. They are not a warranty, not a paid-report count, and not an audit opinion dated in this paper. Ask for the latest letter and the programme URL in the room.

23. Invariants

These must hold after every successful transaction. A violation is a critical bug.

  1. I1 Residual. totalAssets = max(0, token.balanceOf(vault) − totalMarginLiability).
  2. I2 ERC-4626. convertToAssets(totalSupply) tracks totalAssets (rounding as in the vault). vFX is a claim on residual only, never on trader margin.
  3. I3 Sleeves. For each trader, available + isolated locked + cross used IM is covered by that trader’s liability in totalMarginLiability.
  4. I4 Writers. Only PerpEngine writes PositionStorage. Users cannot set size.
  5. I5 OI. Pair long OI and short OI equal the sum of entry notionals on that side.
  6. I6 Mode. An Active position is isolated xor cross, never both.
  7. I7 Quote. Vault.asset() is USDC, 6 decimals. No other margin token.
  8. I8 Pause. Emergency withdraw cannot pull cash that covers totalMarginLiability.

24. PnL identities

Signs: long positive in the price move; short inverted. Units: USDC.

tradePnL = side × notional × (exit − entry) / entry

fundingPnL = −side × notional × (index_now − index_entry)

openFee = openBps × postedMargin / 10_000

closeFee = closeBps × exitNotional / 10_000

side is +1 for long, −1 for short. Open fee is taken from posted margin before size is computed. Close fee is on exit notional. Funding uses the cumulative index in §9. Realized PnL credits or debits available (cross) or the isolated lock, and adjusts totalMarginLiability. Unrealized mark-to-oracle is a view; it is not cash until close or liquidation.

25. Threat model

AttackerTargetMitigation in specResidual
TraderExtract from vault without IMlock / usedIM; withdraw from available onlyCross contagion across pairs
Informed flowLP NAVIM/MM, daily loss cap, hoursBook can still lose. No APY.
UpdaterPrint a false midSingle key. Pause. Secondary on fundingTrusted. Compromise moves PnL.
OperatorexecutePrice off marketOff-chain policy; not an AMM checkTrusted. Diligence the key.
OwnerFee, pair, pause, emergencyNone in this paper (no timelock)Unilateral. See §21.
LiquidatorliquidationPriceHealthy check vs threshold; oracle revertBad price if oracle is live and wrong
LPRedeem under liabilitiestotalAssets formula; 4-day lockBank run still hits residual
L2 / USDCHalt, depeg, reorgNoneBoth sides. External.

26. Edge cases

  • FX weekend. Positions stay open. No FX mark Fri 21:00–Sun 21:05 UTC. Gap on Sunday print can jump through maintenance. COIN follows the same session. Metals, crypto and the 24/7 equity and index books still print.
  • One-sided OI. Skew saturates. Rate hits pair maxRatePerHour. The thin side is paid; LPs are not the funding counterparty.
  • Dust close. Remaining notional below epsilon (default 10 USDC) is a full close.
  • Increase underwater isolated. New margin is added; entry size-weighted; leverage recomputed. It does not reset liquidation history.
  • Fee change mid-ticket. Open already paid. Close uses FeeManager at close time.
  • Redeem during lock. Reverts. Last deposit restarts the 4-day clock.
  • Solvency 110% fail. Trader gain does not credit. Position may already be closed. Receivable can remain unpaid that day because of the daily cap.
  • Pause then emergency. Only excess cash over liabilities. Trader margin stays.

27. Assumptions register

IDAssumptionIf false
A1USDC remains 6 dp and redeemable 1:1 for the purpose of this bookQuote depeg. Both sides.
A2Arbitrum One sequencer livenessNo settle, no liq, no withdraw
A3Owner/operator/updater keys are held as the operator disclosesSee threat model
A4FeeManager stays at the 24 Nov 2026 reading of 10 / 10 / 10 bpsOwner can change it. Read before you size.
A5Forex is 200×, metals are 200×, crypto is 50×, equities and indices are 20×Owner can disable a pair or change a cap.
A6Worked example is EURUSD at 200×, fees at 10 bps, threshold 1,500 bps. The 1 bp/h funding cap is assumed.Funding cap is not a stored market parameter.
A7No hidden custody of USDC outside the vaultThen this is not the system described

28. Related documents and revisions

DocRole
FXED-WP-3.0This specification. Binding description of intended behaviour.
Contracts on Arbitrum One (chain 42161)Binding settlement. Wins all conflicts with this paper.
Interface docs / Terms / Risk / PrivacyAccess, eligibility, capital at risk, data.
ZeroDrift scope · Immunefi programmeProcess. Not a dated opinion in this paper.

Revisions: 2.1 institutional rewrite · 2.2 example, waterfall, failure, governance · 3.0 invariants, PnL identities, lifecycle, threat model, edge cases, assumptions · 17 November 2026: live marks sourced from Stork Network; Fun.xyz on-ramp and off-ramp on the interface; §3 addresses taken from FXED-io/fxed-contracts broadcast/Deploy.s.sol/42161 and checked against Vault.perpEngine · 24 November 2026: §3 re-read on chain from the live PerpEngine and Vault (rows not wired to the live engine removed); markets set to the nineteen listed in §7; leverage, spread and hours updated. Unverified against a published bytecode match.

FXED Labs Co. LLC, a Delaware limited liability company. Protocol operator. Document FXED-WP-3.0 · 16 September 2026. Supersedes FXED-WP-2.2. This paper describes the contracts. It is not an offer of vFX, of a managed account, or of a security.