DocsTrust

Numbers for $3,000 Arlo

The rules

Every Arlo runs on the rules below. Most live in the code, and they are fixed when your Arlo starts. Nobody can change them for a running Arlo, Arlo included.

A few rules live in Arlo’s app or its services instead. Those say so, and Arlo can change them. Each rule names the part of Arlo’s rules it comes from, and the file and part of the code that hold it. The links open that code on Arbiscan and Sourcify. Both show the code’s source, matched to the code that runs.

Joining

  1. One Trader and one Backer.

    The Trader puts in $1,000. The Backer puts in $2,000. The Arlo holds $3,000.

    §3, §5 · ArloRouterV7.sol, _part · Router: Arbiscan ↗ Sourcify ↗
  2. Three sizes in the code.

    The code knows three sizes of Arlo. The app offers only the $3,000 Arlo for now. Which sizes the app offers is Arlo’s choice.

    §5 · ArloRouterV7.sol, isSize and _join · Router: Arbiscan ↗ Sourcify ↗
  3. First come, first served.

    Each size has a line for Traders and a line for Backers. The code pairs the first place in each line. Neither side picks the other.

    Arlo sends each join to the network for you, in the order it gets them. That order is Arlo’s rule, not the code’s.

    §3, §14 · ArloRouterV7.sol, _form and _seek · Router: Arbiscan ↗ Sourcify ↗
  4. One waiting place per wallet.

    You hold one waiting place at a time, so the code never pairs you with yourself. Once your Arlo starts, you can join again. The code sets no limit on how many Arlos you run.

    §3 · ArloRouterV7.sol, _join · Router: Arbiscan ↗ Sourcify ↗
  5. Your money moves only when your Arlo starts.

    While you wait, your money stays in your wallet. When two places pair, both amounts move into the new Arlo’s wallet in one step. Either both move, or neither does.

    §3 · ArloRouterV7.sol, _form · Router: Arbiscan ↗ Sourcify ↗
  6. You can leave before a match.

    Leaving removes your place. Nothing has to come back, because nothing moved.

    §3 · ArloRouterV7.sol, leave and leaveSigned · Router: Arbiscan ↗ Sourcify ↗
  7. A place that cannot pay is removed.

    If your wallet no longer holds your amount, or no longer lets it move, anyone can take your place out of the line. It costs you nothing.

    §3 · ArloRouterV7.sol, drop and _seek · Router: Arbiscan ↗ Sourcify ↗
  8. Each version of the code has a cut-off.

    Each version of Arlo’s code has a money limit and an end date. Past either one, it starts no new Arlo. Arlos already running carry on.

    §3 · ArloRouterV7.sol, _join and form · Router: Arbiscan ↗ Sourcify ↗

Time and fee

  1. Up to 30 days.

    The clock starts when your Arlo starts. On testnet, an Arlo lasts up to 30 minutes.

    §2.6 · ArloWalletV7.sol, termEnded · Wallet program: Arbiscan ↗ Sourcify ↗
  2. One fee, taken at the end.

    The fee is $150: $120 for the Backer’s bonus and $30 for Arlo’s share. The code takes it at the payout, so the Trader trades all $3,000. Ending early does not lower it.

    §5, §6 · ArloMathV7.sol, tierOf · Wallet program: Arbiscan ↗ Sourcify ↗

The loss room

  1. Trading stops at $2,200.

    That line is what the wallet owes, $2,150, plus a $50 cushion. The $800 above it is the loss room.

    §5, §7 · ArloMathV7.sol, tierOf · Wallet program: Arbiscan ↗ Sourcify ↗
  2. Network fees count against the room.

    Arlo pays the network fee for each step it sends for your Arlo. Your Arlo owes those fees and repays them at the end. Until then, what it owes uses loss room.

    §7 · ArloWalletV7.sol, roomDebt · Wallet program: Arbiscan ↗ Sourcify ↗ · ArloLensV7.sol, room30 · Lens program: Arbiscan ↗ Sourcify ↗
  3. A new trade must fit.

    A trade uses its loss at its stop, plus $1 and 0.10% of its size to close it. A trade with no stop uses its whole margin, plus that closing amount. If it does not fit in the room left, it does not open.

    §7 · ArloLensV7.sol, chargeOpen · Lens program: Arbiscan ↗ Sourcify ↗
  4. Every trade opens with a stop.

    If you set no stop, your Arlo places a safety stop before the point where GMX would close the trade itself. If no safety stop fits there, the trade does not open. Your own stop must sit on the losing side of your entry price.

    §7 · ArloLensV7.sol, chargeOpen and _liqStop · Lens program: Arbiscan ↗ Sourcify ↗
  5. Risk you add must fit.

    Moving a stop further away must fit in the room. So must removing a stop, or adding a take profit, because GMX takes a fee to place it. You can always move a stop closer.

    §7 · ArloLensV7.sol, chargeStop and chargeCancel · Lens program: Arbiscan ↗ Sourcify ↗ · ArloWalletV7.sol, placeTakeProfit · Wallet program: Arbiscan ↗ Sourcify ↗
  6. Closing is always allowed.

    You can close a trade, or part of one, at any time, even with the room full. Closing frees the room the trade’s charge held. Network fees already owed stay owed.

    §7 · ArloWalletV7.sol, decrease · Wallet program: Arbiscan ↗ Sourcify ↗
  7. A frozen stop counts as no stop.

    GMX sometimes freezes a stop it cannot fill. When your Arlo’s wallet sees that in GMX’s records, it marks the trade to close now. The trade then uses its whole margin until it closes, and anyone can close it at the market price.

    §7 · ArloWalletV7.sol, _markFrozen, closeFrozen and closeMarked · Wallet program: Arbiscan ↗ Sourcify ↗

Limits on each trade

  1. Caps on margin and size.

    A trade can use at most $1,000 of margin and $15,000 of size. Margin is the money behind a trade, and size is how much it controls. Both caps count per coin and per direction, across every GMX market for that coin.

    §10 · ArloLensV7.sol, _checkCaps · Lens program: Arbiscan ↗ Sourcify ↗
  2. Leverage up to GMX’s limit.

    Arlo adds no leverage limit of its own. The code reads GMX’s limit for each market on every new trade.

    §10 · ArloLensV7.sol, _checkCaps · Lens program: Arbiscan ↗ Sourcify ↗
  3. At most 20 open trades on testnet.

    On the main network the limit will be 55. Orders that wait to open a new trade count too.

    §10 · ArloLensV7.sol, _chargeOpen · Lens program: Arbiscan ↗ Sourcify ↗
  4. Markets on up to 32 coins.

    One Arlo can trade markets built on up to 32 different coins. The code refuses a 33rd.

    §10 · ArloLensV7.sol, _noteToken · Lens program: Arbiscan ↗ Sourcify ↗
  5. One opening order at a time.

    While one order to open or grow a trade waits for GMX, you cannot send another.

    §7 · ArloWalletV7.sol, open · Wallet program: Arbiscan ↗ Sourcify ↗

How an Arlo ends

  1. Trading stops for good at the line.

    If the wallet’s value, less the network fees it owes, falls to $2,200, no new trade can open and the Arlo ends. Nobody can top it up or restart it. The code checks GMX’s own records first, so nobody can stop a healthy Arlo.

    §7 · ArloWalletV7.sol, breached and checkBook · Wallet program: Arbiscan ↗ Sourcify ↗
  2. The Trader can end it early.

    The Trader can end their Arlo at any time, and it cannot be undone. The fee stays $150, and the Backer gets the same amount, sooner. The Backer cannot end a running Arlo.

    §2.6 · ArloWalletV7.sol, settle · Wallet program: Arbiscan ↗ Sourcify ↗
  3. At the end of the term, GMX closes what is open.

    Every trade carries a closing order that GMX can fill only once the term is up. The Trader cannot cancel it while the trade is open. GMX fills it, not Arlo’s code, so a close can come a little late.

    §7 · ArloHelperV7.sol, openCalls · Helper program: Arbiscan ↗ Sourcify ↗
  4. Once an Arlo has ended, a member asks to close.

    After the line is reached, the Trader ends early, or the term is up, either member can tap Close all. Arlo then sends every close. Nothing closes before that, apart from stops and the end-of-term closes. Anyone can also close the trades and pay their own network fee.

    §7 · ArloWalletV7.sol, closeAll · Wallet program: Arbiscan ↗ Sourcify ↗
  5. The payout waits for every trade to close.

    Once no trade is open and no money is on its way back from GMX, the payout can run. The wallet often starts it by itself when the last close lands. If it does not, either member taps Start the payout, and Arlo sends it at no cost to you. Anyone can start it too, and the code pays the same amounts whoever does.

    §7, §9 · ArloWalletV7.sol, settle and settleInCallback · Wallet program: Arbiscan ↗ Sourcify ↗

The payout

  1. The payout order is fixed.

    The wallet pays the Backer’s $2,000 first, then the Backer’s $120 bonus. Next it pays the network fees your Arlo owes, then Arlo’s $30 share. The Trader gets everything left. Each one is paid in full before the next gets anything.

    If the money runs short, the Trader’s part goes first, then Arlo’s share, then the network fees owed. The Backer’s bonus and money come last. If nothing is left for the network fees, Arlo takes that loss, never the Backer.

    §9 · ArloMathV7.sol, settle, and ArloWalletV7.sol, _finish · Wallet program: Arbiscan ↗ Sourcify ↗
  2. Payouts go to four addresses fixed at the start.

    The Backer is paid to the wallet they joined from, and the Trader to theirs. Arlo’s share goes to one Arlo address, and the network fees to another. The code writes all four in when the Arlo starts. A payment that fails is kept and can be sent again, to the same address only.

    §2.3 · ArloWalletV7.sol, initialize, _payOut and retryPayouts · Wallet program: Arbiscan ↗ Sourcify ↗
  3. Late money follows the same rule.

    If GMX pays in a coin other than USDC, or pays USDC after the payout, it goes to the Backer if the Backer was paid short. If not, it goes to the Trader.

    §9 · ArloWalletV7.sol, sweepTokens and claim · Wallet program: Arbiscan ↗ Sourcify ↗

What nobody can do

  1. Nobody can take money out early.

    The Trader can trade with the wallet’s money but can only send it to GMX and back. Every order the code builds returns its money to the Arlo’s own wallet.

    §2.1 · ArloHelperV7.sol, order · Helper program: Arbiscan ↗ Sourcify ↗ · ArloWalletV7.sol, open · Wallet program: Arbiscan ↗ Sourcify ↗
  2. Only the Trader trades.

    Trades come from the Trader’s wallet, or from trading access saved in the Trader’s browser. That access can open and close trades, move stops and end the Arlo early. It cannot move money or change where a payout goes. Only the Trader’s wallet can replace it.

    If someone copies that access, they can trade the Trader’s running Arlos, each down to its loss room. Only connect on app.arlo.fi.

    §3, §14 · ArloHelperV7.sol, orderSigner · Helper program: Arbiscan ↗ Sourcify ↗ · ArloWalletV7.sol, setKey · Wallet program: Arbiscan ↗ Sourcify ↗
  3. No owner, no pause, no upgrade.

    Nobody owns an Arlo or the code that starts them. Nobody can pause one, change its rules or swap its code. A fix ships as new code for new Arlos, and every running Arlo finishes on the code it started with. Nobody can reverse a trade, pause an Arlo, or pay back what you lose.

    §2.5 · ArloRouterV7.sol, no owner or setter · Router: Arbiscan ↗ Sourcify ↗ · ArloWalletV7.sol · Wallet program: Arbiscan ↗ Sourcify ↗
  4. No ban, no score.

    Arlo keeps no list of who lost. A Trader who loses can start a new Arlo on the same terms as anyone.

    §12 · ArloRouterV7.sol, _join · Router: Arbiscan ↗ Sourcify ↗
  5. GMX can change its order system.

    If GMX replaces the part that takes orders, your Arlo moves to the new one only after GMX has switched it on and it matches the rest of GMX. Until then, your Arlo sends no new orders. Its stops and end-of-term closes stay with GMX. A change like this does not end your Arlo.

    §7 · ArloWalletV7.sol, useExchangeRouter · Wallet program: Arbiscan ↗ Sourcify ↗
  6. The code keeps a public list.

    The code keeps a list of every Arlo and its two members’ wallets. Anyone can read it, so anyone can see who is in which Arlo.

    §3 · ArloRouterV7.sol, arloAt and arloCount · Router: Arbiscan ↗ Sourcify ↗

Rules kept by Arlo’s app and services

These rules live in Arlo’s app and its services, not in the code. Arlo can change them without new code, and records each change.

  • Sizes on offer. The app offers only the $3,000 Arlo for now.
  • Joining and leaving are free. Arlo sends both steps and pays their network fees. The code allows a small leave fee, and the app sets it to zero.
  • How often you can join. The app lets each wallet join up to 5 times an hour and 10 times a day.
  • The order joins are sent. Arlo sends joins to the network in the order it gets them.
  • Close all. Once an Arlo has ended, Arlo closes its trades when a member taps Close all. It closes nothing unasked.
  • Start the payout. When a member taps Start the payout, Arlo sends it and pays the network fee.
  • Warnings before the end. The app warns you 48 hours and 24 hours before the term ends.
  • Emails. If you ask for them, Arlo emails you when your Arlo starts, needs closing and pays out.

If Arlo’s services stop, the app cannot send these steps for you. You can still send each one from your own wallet and pay a small network fee.

Pick a side. Try it on testnet.

The $3,000 Arlo is open now: $1,000 to trade, $2,000 to back.