Trust model
The operator key sends every escrow transaction LaMarge relays and pays its gas.- It reads the taker’s escrow payment at the chain’s final head (
finalizedby default; the head itself on Arbitrum), then pays the taker from the maker’s pool on the other chain, under the maker’s signed quote: the delivery. - A payment from Lighter or Aster is a signed transfer the operator sends first (paying from Lighter).
- It keeps each fill’s secret, which releases the payment to the maker, and shows it to the maker once the fill is delivered.
- On Lighter and Aster the maker delivers; the operator claims the payment for the maker once the delivery report is accepted, by
report_by. A claim not landed byt2lets the payment return to the taker, even after a delivery (active market making).
Venues and balances
- The tokens are distinct assets: never add their base units.
- The escrow spends an allowance only on actions its owner signs.
- LaMarge’s Aster agent holds only
canPerpTrade: it reads the account and moves margin to the account’s own Spot wallet. - A taker receiving on Lighter or Aster needs a linked account, and on Aster the agent. A taker paying from there signs a transfer (Lighter, Aster).
setupin/v1/meand/v1/balanceslists each account’s setup steps with what each isneeded_for.
Opening an account
Lighter and Aster create an account at its first deposit, and LaMarge pays into them inside the venue: an account receives only once opened. LaMarge never makes that deposit.- An account is open when its
/v1/balancesrow hasread_at, noerrorandhas_accounttrue.balance.changedannounces each read; an account linked within the hour and still unopened is read every 30 seconds. - Lighter links before its first deposit, with
venue_walletnull until the deposit creates the master account. Until then itsapi_keystep isrequired, and takes to or from it answerSTATE_CONFLICTwith reasonno_deposit. Deposit at least 1 USDC throughdepositon Lighter’s Ethereum contract, or at least 5 USDC to the intent address Lighter’sPOST /api/v1/createIntentAddressreturns for the owner (CCTP chains, Arbitrum and HyperEVM among them). A wallet delivery withmax_parts1 can pay that address. Get the address from Lighter yourself: LaMarge does not vouch for it. - Aster answers takes to an account without a deposit with
STATE_CONFLICTand reasonno_deposit. Anyone can open it:depositFor(USDT, owner, amount, 0)on Aster’s BSC vault0x128463A60784c4D3f46c23Af3f65Ed859Ba87974: 0.000001 USDT is enough. - Polymarket links only once the signer has a Deposit Wallet or Safe (
WALLET_NOT_FOUND).
Balances
GET /v1/balances returns one row per linked account: holdings.total on that venue’s side, of which holdings.available can move or be committed now and holdings.locked is the rest. Each amount appears once:
xyzis set for a standard Hyperliquid account (modedefault,disabledordexAbstraction), which holds trade.xyz, the HIP-3 dexxyz, apart from its perps. A unified or portfolio-margin account’s one balance covers its perps, spot and trade.xyz:xyzis null.- A pool’s
held_intells where itsheldis:escrow, orvenuefor a Lighter or Aster pool, whose figure is its account’s balance and never adds toequity. - Pools another operator funded are read on chain by
GET /v1/escrowwithin_balancesfalse: add them to the total. - Venue values carry
read_atanderror, chain valueschain_read_atandchain_error: check each pair on its own.
deposit_address.
- Tokens there are swept once they reach one token, or in any amount within an hour of a withdrawal relayed there.
- Takes pay from it first, and maker capital uses it first.
- A maker’s receipts go there. A taker’s receipts are deposited into the destination venue.
- A fill’s
payment_destinationandmaker_destinationreadvenue, orescrowwhen kept in the available balance.
Margin transfers
- Prepare
{venue, amount, to}. - Sign the returned typed data with the linked account.
- Relay it within ten minutes of preparation.
- An Aster withdrawal takes two signatures of the account at chain 56: the
Action, then itsenvelope, signed at most 50 seconds before the relay. to: "account"withrecipientsends to another existing account on the same venue (kindsend): Hyperliquid’sSendAsset; Aster’s wallet-signed transfer (clientTranIdstarting withs, relayed within 50 seconds, no envelope, no fee); Polymarket’s internal transfer, anOpwhosemessage.datahashes the returnedop. Rebuild that hash fromopand check its recipient and amount before signing: the wallet shows only the hash. On Polymarket the recipient is the Perps account’s owner address.- On a standard Hyperliquid account,
dex: "xyz"withdraws or sends from trade.xyz instead of the perps. A withdrawal’sfrom_dexreadsxyzwhen it left trade.xyz. A Hyperliquid delivery lands on the perps, never on trade.xyz. relayedis the venue’s acknowledgement, not arrival. A Polymarket withdrawal or Hyperliquid transfer the venue did not answer staysqueuedand is sent again, unchanged, within its two minutes.unknownmay have reached the venue: it blocks further transfers on that venue until it is resolved. A Polymarket withdrawal resolves from Polymarket’s exchange:relayedonce it executes,refuseda little over an hour after signing if it never did. Never sign another transfer to work around it.
Maker capital
Escrow venues. Lighter and Aster pools: active market making. A pool (capital_pool: true) is the escrow inventory of one owner, venue and quote identity.
- The operator pays each delivery from it once the taker’s payment is final. Through the API, releasing it is immediate; on chain, it takes a one-day notice (recovery).
- Its 32-byte ID, the escrow
offerId, comes from its first preparation and is reused by every later one. - The quote identity fixes its quote signer: the master address for the browser identity, else the credential’s
quote_signer. Another signer needs a new credential and new capital.
POST /v1/maker/{venue}/prepare adds amount to the pool of quote_identity_id (the browser identity when omitted):
fundingsplitsamountintoidle_amount(available balance, used first), thenwallet_amountorvenue_amount, byfunding_source. A GMX pool funds from the wallet only: move GMX Account funds there first with your owntransferOut.existing_availableis the pool’savailable_to_quoteplus the available balance.to_signholds afunditem, and amargin_moveitem whenvenue_amountis above zero. For the browser identity, aquote_setitem re-signs the pool’s current quotes, scaled to what remains.- Check them (signing) and submit every signature before
expires_at: one hour, ten minutes with amargin_move.
- The first funding is at least 5 tokens.
- Adding capital is refused while a fill of the pool is reserved, or another funding, take payment or escrow withdrawal of the owner is pending on that venue. It pauses the pool’s admissions until it lands or the preparation ends.
- Submission answers
STATE_CONFLICT, cancelling the preparation, when the pool’srevisionchanged (a fill or a publication). It answersFORBIDDENwhen the identity’s generation changed or, with aquote_setitem, its lease lapsed: delete the preparation. Stop quoting a pool before preparing its funding; resume after submission. - Each funding raises the pool’s on-chain quote floor to
minQuoteSequence, revoking every older set. The preparation’squote_set, when it has one, replaces it; otherwise the pool has no set until its quote key publishes one.
complete: the pool islive.cancelled(DELETE, expiry or a changed revision): the pool returns to its prior state (closedfor a new one).failed: its margin transfer or funding did not land. A first funding leaves the poolfailedwith anerror; a top-up restores its previous state and prices.
Releasing capital
POST /v1/escrow/withdraw/prepareprepares an owner-signedescrow_withdrawalofamountfrom one pool or the available balance (order_idzero), to the venue margin (to_margin: true) or to the owner’s address.POST /v1/escrow/withdrawrelays it.GET /v1/escrowlists what this can release.- A pool keeps quoting what remains: it releases only its
available_to_quote, what its reserved fills leave, and quotes without the amount until the withdrawal lands. All of it closes the pool. - A pool another operator funded releases only once its owner’s exit notice has run (
409 STATE_CONFLICTbefore). POST /v1/closescloses up to 50 pools. Empty ones close at once; the others need oneclose_ordersitem signed by the master, then submitted. Once every reserved fill is delivered or abandoned, the operator releases the funds into the owner’s venue margin; a Lighter or Aster pool just closes.
Quote lines
A maker prices venues, not routes. A quote line gives, for one venue:- Prices are USDC per unit, from 0.90 to 1.10, eight decimals at most;
nullleaves a side out. - A taker paying on A and receiving on B from one maker gets
paid × buy[A] / sell[B]. Two makers’ lines never combine. - Publishing replaces all of an identity’s lines at once, for new takes. A take already prepared still executes at the set it was prepared under, within that set’s budget and the pool’s funds, until its
pay_by; cancelling quotes withdraws it. - Each pool with stock gets a quote set quoting every other line with a buy price whose venue can pay into it. Lighter and Aster never trade directly with each other.
- Each quote has
supplyandquote_sizethe stock,receive = ceil(stock × sell × 10^dA / (buy × 10^dB))withdeach token’s decimals, and the line’smin_fill. Raisemin_fillwhere each delivery costs a fee, as on Lighter. - A venue needs no stock to receive. A pool without stock leaves the books. Changing one price re-signs every pool it affects, together.
GET /v1/markets shows each venue’s best lines among the makers the books show, its liquidity and its 24-hour volume. The best buy and the best sell can belong to different makers; a route’s price is always one maker’s pair.
Quotes
Quote lines compile into quote sets. A quote set prices one pool for every destination it quotes, under one ECDSA signature of the pool’s quote signer. The signer is an EOA key: publication refuses a contract’s (ERC-1271) signature, which could be withdrawn once the taker paid. Each quote, named by its positionquote_index, has:
venue: the destination, never the pool’s venue. The taker pays therecipientthere, the maker’s linked account.supply: pool-token base units the quote sells in total under the set.receive: destination-token base units forsupply, the exact price. The taker paysceil(amount_out × receive / supply).min_fill: the smallest fill, in pool-token base units: at least 1 token, at mostsupply,quote_sizeand the fill cap,limits.fill_maxin/v1/info(millionths of a token).
quote_size is the set’s admission budget, shared by its quotes and not signed.
- A destination’s levels are drawn best price first. Each shows the smallest of its remaining
supply, the set’s remainingquote_sizeand the pool’s unreserved funds, less output and delivery fees. - Every destination draws on the same funds. Each delivery spends signed budget permanently.
- Books sort by price, then age. A take skips the taker’s own pools.
live pool, before its valid_until, at its identity’s current generation and, for a credential, while the credential is active and its lease is live.
- A lease lasts 5 to 120 seconds. Renewing a lapsed one advances the generation: earlier quotes and drafts never return.
- A credential’s
valid_untilis at most five minutes ahead. The browser identity has no lease and may use253402214400, no expiry. - The server prepares each set from the lines and allocates its sequence. Publication sends only
{draft_id, signature}, within five minutes of preparation, at the same generation andcancel_epoch.
expiresAt = valid_until + maker_timeout_seconds + 1, while its sequence is at or above the pool’s floor and its budget is unspent. Leases and API cancellation do not revoke it. A stolen quote key can sell the whole pool at any price to a colluding taker: keep funded inventory within strategy limits.
Cancellation
DELETE /v1/orders/{id}/quotesremoves one pool’s set and advances itscancel_epoch, voiding earlier drafts.DELETE /v1/quote-identities/{id}/quotes, the kill switch, removes every set of the identity and advances its generation.- A lease left to expire stops admission. Rotating or revoking the credential removes its quotes.
raiseQuoteFloor(owner, offerId, last_sequence + 1) revokes signed sets on chain. Only the operator can call it before the pool’s exit notice has run; after, the owner or the quote signer can too. The server does not read the floor: set above the server’s next sequence, it makes deliveries under the pool’s later sets and its fundings revert until the server’s sequences reach it. Against a stolen quote key, release the capital.
Maker results
GET /v1/me/stats’s maker is what your pools received less what they delivered, over every fill with a claimed leg: a payment once claimed, a delivery and its fee once delivered. Each token is valued at your mark there, the mid of the line’s buy and sell, or its one price (a fill without a mark for both its tokens values each at 1): the spread your prices captured, apart from what holding the tokens gains or loses. daily sums it per UTC day, pairs per paying and delivering venue.
Takes
A taker needs linked accounts on both venues, or only on the paying one for a wallet delivery.POST /v1/takes:amount_inis the most paid,min_outthe least received in total,max_parts1 to 8. The server walks the book, one fill per price level, each capped atfill_maxand at what the take left of its pool’s funds, skipped below itsmin_fill. Together the fills must reach thetovenue’srelease_minimum(GET /v1/venues).- The fills are
PREPARED: exact terms, no maker liquidity reserved. Check the singlepay_takeitem and sign it beforepay_by, then submit it. Itsdepositpulls what the available balance lacks from the linked address; eachLockPaymentpays one fill under its hashlock. - A fill delivered on Lighter or Aster waits for its maker’s acceptance, by
maker_accept_by(active market making). A missed acceptance expires the whole take unpaid. - The operator rechecks the quotes, reserves every fill at once (
RESERVED) and sends the deposit and every payment in one transaction, or none. - Each fill executes under the quote set it was prepared under: the maker publishing new prices meanwhile does not undo it. A quote cancelled, expired or run out meanwhile expires the take unpaid, with a
reason: take again.
- Before signing,
DELETE /v1/takes/{id}cancels the take. - When the available balance and the linked address together cannot cover the payment, the take answers
PREFUNDING_REQUIREDand reserves nothing. - Up to
limits.max_unpaid_takestakes may await payment at once, each admitted against what the others hold of the same funds (holdings.committedin balances). - A payment already sent keeps its reservation until its outcome is known.
- A payment whose delivery has not landed by
t1returns to the available balance right after it. - Fills settle independently, so the total received can be below
min_out.
Fees
Each pair has a taker fee in basis points, the book’staker_fee_bps; makers pay none.
- Send
max_fee_bpsto accept it. A pair whose fee is higher refuses the take (VALIDATION_ERROR,reasonfee_above_max). Without it, the take pays no fee. - A transfer carries its take’s consent; a route’s second take,
then.max_fee_bps.GET /v1/routesprices each leg for themax_fee_bpsyou pass. - The fee is fixed per fill (
taker_fee, intaker_fee_venue’s token) and carried by itsswap_id, which the escrow reads. Paid from an escrow, it is part ofamount_inand the maker receives the rest (maker_in). Paid from Lighter or Aster, the maker’s pool delivers it on top ofamount_out(maker_out). - Before signing, check that each fill’s
taker_feeis the one itsswap_idcarries (the SDK does).
Wallet funding
funding: "wallet" on a transfer or a take pays only from the payer’s escrow-token wallet and available balance on from’s escrow chain: nothing is withdrawn from the venue account. The default, venue, may withdraw a shortfall. It needs chain.wallet_funding in GET /v1/venues, so never Lighter or Aster.
payerdefaults to the master, which needs no linked account onfrom; another payer is the account linked there. Where the take delivers is a separate choice (wallet delivery).GET /v1/wallets/{venue}reads the payer’swalletandavailablenow, what other payments hold (committed_wallet,committed_available) and the rest (spendable_wallet,spendable_available). Before signing a prepared take, pass itstake_idto leave its own hold out.POST /v1/wallets/{venue}/permitwith an empty body (orpayer) prepares the escrow-tokenpermit; post itsrefandsignatureto the same route. Funds and the permit are checked again at payment.- Refunds credit the payer’s available balance. The master reads its own with
GET /v1/escrow?owner=<master>and withdraws it to its wallet with thatowner,order_idzero andto_margin: false(releasing capital), without a linked account. Retry with the prepared withdrawal, never a new one.
Native USDC on Polygon
Polygon’s escrow token is pUSD. Wherechain.wallet_funding.conversion is set, a wallet-funded transfer from Polymarket can pay from native USDC: send conversion: {amount_in, min_out}: the USDC paid, at least 0.01, and the least pUSD credited, at least ceil(amount_in × 9,995 / 10,000), which is also the transfer’s amount_in. Without conversion, it pays pUSD.
- Prepare the conversion: it returns its
nonceand adeadline30 minutes ahead. A payer has one open conversion at a time. - Before the wallet prompt, post an empty body: it moves
preparedtopendingonce, across tabs and devices. After a lost answer, never prompt again. - From the payer, approve
amount_inof native USDC to the escrow, then send itconvertDeposit(amount_in, min_out, nonce, deadline), paying POL gas. Report each broadcasttx_hash, replacements included, to the same route. - The conversion is
readyonce LaMarge reads its finalized event, reported or not. Until then the take answersSTATE_CONFLICT.
min_out, to the available balance: anything above amount_in, and any refund, stays there in pUSD. A transfer that replaces this one passes the conversion’s id. Never prepare another conversion to recover an unknown broadcast.
Wallet delivery
A take can transfer what it buys to any address on the receiving escrow’s chain instead of the linked account: senddestination: "wallet" and recipient.
- Only where
chain.walletis set inGET /v1/venues, never on the paying venue’s own chain (its withdrawal does that), and on a route only as the last take (then.destination). - No account, setup or
release_minimumonto; each part of a take delivers at leastchain.wallet.minimum(0.01 USDC on Polygon). The recipient is any address but zero, the escrow, Polygon’s converter, the escrow’s and the wallet’s token contracts and, on HyperEVM, a HyperCore system address. - The
pay_takesigns the recipient asreceiveRecipientand the wallet token asreceiveToken; each fill’sswap_idstarts with a wallet tag (0x1b4c4374729e, or0xfcb0d9ddb285with a fee paid inside a venue), which the escrow reads: it pays such a swap id only by transfer, never into a venue. A separate signer reads the recipient and the destination from the take’s attestation (WalletTakeTerms). amount_out,min_outand fees stay in the escrow token. On Polygon each take’s recipient receives at leastceil(amount_out × 9,995 / 10,000); the conversion goes through Polymarket’s offramp (pUSD to USDC.e, 1:1) and a Uniswap v4 USDC.e/USDC pool, and refuses less.- The fill then shows
maker_destinationwalletandreceived(token,amount,sender): its share of the one transfer per recipient, the escrow (on Polygon the converter) sending it, in the transaction itsdeliverentry lists. - A transfer the token refuses reverts the delivery: an escrow payment returns to the available balance as any undelivered one.
Paying from Lighter
A take from Lighter into an escrow venue is one fill, where the deployment enables it (VALIDATION_ERROR otherwise).
- Once per account, do the
api_keysetup step. The key can place orders but never move funds to another owner. Replaced on Lighter, it is asked for again. to_signholds onelighter_transfer. Check on Lighter thatto_account_indexbelongs to the maker’smaker_recipientandfrom_account_indexto you.- Build Lighter’s transfer owner message from its terms, sign it with
personal_signand submit it beforepay_by. Your account must holdamountplususdc_fee, Lighter’s fee, 0 or 1 USDC; the SDK signs no transfer whose fee is above that. - The operator simulates the delivery to you on the escrow. If it would fail, nothing is sent and the fill expires.
- Then it signs your transfer with its key and sends it. The fill stays
RESERVEDuntil the transfer executes, then isPAIDuntil the delivery, orEXPIREDif it ends unexecuted.
t1, an hour after the take by default. An account backing a Lighter pool cannot pay.
Paying from Aster
A take from Aster into an escrow venue is one fill, paid from your Spot wallet. LaMarge’s agent moves any shortfall there from your margin.to_signholds oneaster_transfer, the transfer request itself:Message{msg}at chain 1666, from your address to the maker’smaker_recipient, ofamount_inrounded up to six decimals, with the fill ID asclientTranId(32 hex characters) and a nonce 55 seconds ahead. Check those fields. Right before your wallet signs, issue it again with itsnonce: the same request with a nonce 55 seconds after now, so a slow review never shortens its life (matchedfalse: you held an older one, call again with the one returned).- Sign it with
eth_signTypedData_v4on chain 1666 (add that network once, withPOST /v1/venues/aster/rpcas its RPC URL), then submit it beforepay_by. - The operator checks the delivery would land, as from Lighter, then relays your request. Aster accepts it until about a minute after its nonce.
- Its execution, shown in both accounts’ Spot histories, starts the delivery to you, tried until
t1.
403 FORBIDDEN).
Paying from venue margin
To pay from venue margin on an escrow venue, create a transfer first (from_dex: "xyz" to withdraw from a standard Hyperliquid account’s trade.xyz). Its funding_plan gives the margin transfer still needed, in whole millionths of the token. Prepare it, then:
signed_at_oncetrue (your permit done): take with the transfer’s terms,client_take_idandtransfer_intent_idright away, then submit thepay_takeand the withdrawal’smargin_movesignature together. LaMarge sends the withdrawal, then the payment as soon as a chain read shows the funds at the linked address. The take’spay_byis a route’s (limits.route_pay_window_seconds). Nothing moves unless both are signed.- Otherwise submit the withdrawal, wait for
relayedand the funds at the linked address, then take.
Routes through another venue
No take joins Lighter and Aster.GET /v1/routes (session) returns the best route now: one take, or two through an intermediate venue when that pays at least 10 bps more.
- Create the first transfer with
then: the final venue, your account there, the secondamount_inand its minimum. - Once its take can deliver nothing more,
continuableshows what arrived, less what continuations hold and the next payment’s fee. - Create the second from the intermediate venue with
previous_transfer_id, for at mostcontinuable. A continuation that never took is replaced by the next.
Grouped routes
A route whose first take pays from Lighter or Aster through an escrow venue can be grouped: signed at once.- With the first take prepared and unsigned, prepare the route. LaMarge creates the second transfer and prepares its take, priced on the book now, for what the first take delivers.
- Sign the first take’s request and the second take’s
pay_take, the requests this preparation returns: for Aster prepared withreissue, thepay_takefirst, then the Aster request issued again right before you sign it (sign the one that call returns). - Commit them together before
commit_by. - Each fill either take delivers on Lighter or Aster waits for its maker’s acceptance. Then both takes’ pools are reserved together, just before the first payment.
- The first take is delivered into your available balance on the intermediate chain, and LaMarge pays the second take from it. Nothing is left to sign.
- For Aster, preparation gives the first take about 90 seconds until
commit_by. Prepare with{"reissue": true}, sign the second take’spay_takefirst, then issue the Aster request again and sign it last: it is sent as soon as you commit. Withoutreissue, its nonce is dated 20 seconds aftercommit_by, and the relay waits until 55 seconds before that nonce, so a fast signature can wait about 55 seconds before Aster is paid. grouped_unavailable,TAKE_EXPIREDon the commit, or an abort ends the grouped attempt. Continuing take by take is a separate decision of yours.- While the route is
preparedorcommitted, only the route moves its takes and transfers (grouped_route). Your other takes go on; one grouped route is open at a time. - Once
closed, what is left continues from the first transfer’scontinuable, through a successor of the second, paid from your available balance.
Moves and bridges
A move takesamount_in from one endpoint to another and follows every part under one ID. LaMarge’s makers fill first, at the floor rate min_out / amount_in; an external bridge, Relay, carries the rest when LaMarge lacks liquidity or a route. Each part’s floor is its share of min_out, rounded up.
GET /v1/moves/quote plans it: lamarge (a route and its budget), bridge (an estimate), what neither carries (unallocated) and why a part is missing (lamarge_unavailable, bridge_unavailable). Nothing is reserved.
- Create the move with its terms; the same
client_move_idreturns it. - Run LaMarge’s part as a transfer with
move_id(a route’s first transfer only). - Once its payment is accepted (from a wallet: once paid), create the bridge for the rest, and check every payload against its
orderbefore signing.- From Hyperliquid: sign the nonce mapping and the
SendAssetthe order names, from the bridge’ssource_dex(""perps for a standard account,spotfor a unified one), then submit both. - From a wallet: fence, approve the depository when short, deposit, report each hash.
- From Polymarket or GMX: first move
amount_into your wallet withmove_id(a withdrawal or a GMX withdrawal), then bridge withfrom_wallet.
- From Hyperliquid: sign the nonce mapping and the
- Close the move with what no part carries. It is
settlinguntil every part is final, thenfinal.
- LaMarge returns an
orderonly when it pays and refunds no one but the move’s payer and recipient, through the provider’s pinned contracts, and itsidis its hash. Check it again from your own terms before you sign, as the SDKs do: your signature should not rest on the API alone. - A Polymarket, GMX or Aster account receives the bridge’s whole output, at least
account_credit, the part’s floor (Polymarket: at least 5 pUSD);wallet_surplusis zero. - Bridge states:
prepared,submitting,pending, thencompleted,refunded(refundsays what and where) orstuck(contact the provider withrequest_id);failedandexpireddebited nothing. A fenced deposit never expires: reportunsentonly when the wallet refused before broadcasting. - The provider’s solver holds the funds between the deposit and the fill or the refund; LaMarge never holds them and signs nothing for you. Refunds go to the payer, or on the destination chain to the recipient, in an asset the provider chooses.
- Not bridged yet: from Lighter, from Aster, from a portfolio-margin Hyperliquid account (
hyperliquid_mode). LaMarge’s own part still serves them.
Deadlines and outcomes
- Defaults count from the take’s preparation.
/v1/inforeports the deployment’s timings (pay_window_seconds;route_pay_window_secondsfor a grouped route’s second take and a take signed at once); each fill carries its own. - A fill delivered on Lighter or Aster adds
maker_accept_by,deliver_byandreport_by(deadlines). - Admission stops while chain observations, escrow integrity, operator gas or relay capacity are not ready (
OPERATOR_UNAVAILABLE).
SETTLED, EXPIRED, REFUNDED, TAKER_LOSS or MAKER_LOSS. payment_leg and maker_leg give each side’s state.
MAKER_LOSS: a delivery whose payment was refunded unclaimed.TAKER_LOSS: a payment that could no longer return (executed on Lighter or Aster, or claimed early) and was not delivered byt1.
- A fill undelivered into an escrow venue by
t1is abandoned. LaMarge returns its payment to the payer’s available balance at once, or, from a minute beforet2, by the ordinary refund after it. - A fill abandoned on Lighter or Aster, its delivery not reported in time, returns early only with its maker’s consent. The maker prepares it, verifies both chains, signs
RefundPaymentwith its wallet and submits it with its master session. It credits the payer’s available balance on the source chain; otherwise the payment waits fort2. - If the operator stops, payments and claims are recoverable on chain (recovery).
Signing
SIWE and link messages,lighter_api_key and lighter_transfer use personal_sign. Every other item uses EIP-712, aster_transfer at chain 1666. An authenticated response is no reason to sign: compare each item with your own request and configuration first. @lamarge/sdk/protocol implements these checks.
- Escrow items (
fund,quote_set,pay_take,refund_payment,escrow_withdrawal,close_orders) use domainLaMarge, version1, their venue’s escrow chain and the escrow pinned for it (deployment values).close_ordersalways uses HyperEVM’s. - A fill delivered on Lighter or Aster has its
pay_takeandrefund_paymentin the paying venue’s domain. - A Lighter or Aster pool’s
quote_setuses that venue’s chain ID and contract from the deployment values (Lighter’s contract, Aster’s vault), where nothing is sent, with the pool’s linked address asowner. Each quote names its destination’s chain, token and your linked account there.
quote_set signs, under primaryType QuoteSet:
Deployment values
Pin these from this page, never from/v1/info or /v1/venues.