Skip to content
ENBANKDesk

Enbank docs

Markets

Preview desks for private credit, encrypted cash, dark-pool matching, and lending.

On this page

Market list

The markets view is a fixed catalog. Allocating debits the preview vault and updates a position. It does not submit an order to a venue.

MarketKindAssetShown rate
Encrypted USDCLendingUSDC4.8% preview rate
SOL / USDCDark poolUSDCSize and side hidden
Aureum CreditPrivate creditUSDC7.1% preview rate
eUSD VaultCasheUSD3.6% preview rate

The catalog copy describes the production intent: supply stays encrypted, a dark pool matches without a public book, and collateral value is an MXE input. The rates above are constants in the client.

Allocate

allocate takes market, kind, asset, and amount. It uses the same balance check as send. On success it:

  • Subtracts the rounded amount from the asset balance.
  • If a position already has that market name, increments total and movesToday and sets status to Queued.
  • Otherwise prepends a position with movesToday: 1, total: 1, status Queued, roundTrip: "—", and span: "month".
  • Prepends an activity row with kind: "allocate", the market as the title, the kind as the detail, and status Queued.

The toast is "Allocation sealed on this desk." Allocate does not update transit.

Positions

The seed desk includes four positions so the table is readable before you allocate.

NameDeskStatusRound tripSpan
Aureum DeskPrivate creditOngoing—month
Harbor VaultEncrypted cashOngoing6hmonth
Northline PoolDark poolSettled2hyear
Cinder YieldPrivate lendingQueued18hyear

movesToday and total are counters, not token amounts. Adding a position from the vault uses crypto.randomUUID(), status Queued, and zero moves. Archiving filters that id out of the array. Search matches name and desk as a case-insensitive substring. It does not search amounts.

Position status is one of Ongoing, Settled, or Queued. Activity status is a different enum, below.

Rates

In the production model, a lending rate would be computed inside the MXE over sealed supply, so the balance behind the rate is not a public account. A dark-pool match would compare encrypted size and side and publish a fill without the ticket. Those circuits are not in this repository. The percentages in the table are labels for the preview cards.

Activity statuses

Activity rows use a separate pair of enums.

kind: "shield" | "receive" | "send" | "allocate"
status: "Shielded" | "Queued" | "Settled"

The seed includes a shielded vault row with a null amount, a settled inbound of 12,400 USDC from a shortened counterparty, and two queued allocations (5,000 and 1,800 USDC). settle can mark any row Settled. That write is local. Export behavior, including the sealed amount column, is on the preview ledger page.