Admission
Only admitted members hold positions. The operator's key co-signs each admission.
Admission is how a wallet joins the register. The admit instruction creates the wallet's Member account with a role and an entity name, and it needs two signatures: the wallet's, which pays the account's rent, and the ledger operator's. The operator's check stands in for onboarding: the operator signs only for entities it has approved.
Roles
| Role | What it can do |
|---|---|
Holder | Holds positions, trades, lends and borrows. |
Issuer | Can also list instruments, issue their units and pay income. |
An issuer is a holder too: it can deposit, trade, lend and borrow like any member. Listing needs the Issuer role, and issuing units or paying income in an instrument needs to be the wallet that listed it.
A member's role and entity name are fixed at admission, and membership is permanent: the program has no instruction that changes or removes a Member.
Requesting admission
The API keeps the requests and adds the operator's signature:
- The wallet asks with
POST /v1/admissions, giving its entity name and role and signing them, so only the wallet can file or change its own request. The request ispending. - The request is approved. Under Mainnet the API approves it at once (
admissionMode: "instant"inGET /v1/config). WhereadmissionModeisreview, requests queue and the operator approves or rejects each one with the operator CLI; a rejected request carries the operator's reason. - Once approved, the wallet builds
admit, signs it and submits it in relay mode. The API adds the operator's signature and sends it. - The
Memberaccount exists and the account readsadmitted.
Get admitted walks through it in the app and through the API.
What checks admission
| Instruction | Who must be a member |
|---|---|
deposit, withdraw | the owner |
list_instrument | the issuer, with the Issuer role |
issue | the recipient |
post_offer, take_offer | the maker, the taker |
post_repo_offer, take_repo_offer | the lender, the borrower |
Instructions on an existing offer, repo or position (cancelling, repaying, claiming) need no second check: only a member could have created it. settle_default takes any signer.
On chain, a wallet with no Member fails with NotAdmitted where the program reads the account itself (deposit, withdraw, list_instrument, take_offer), and with Anchor's AccountNotInitialized where it loads it as a typed account (issue, post_offer, post_repo_offer, take_repo_offer). Through the API the build is refused first, before anything is signed.