Skip to main content
Every write on a market is a transaction that one wallet signs. This page lists the ten roles a lending market runs on, who receives each one, and which role or party signs each step. How lending works defines the objects named here, and Operators is the reference for the same roles. Trusset holds none of these roles and never signs for another party. The API builds each transaction, the named wallet signs and broadcasts it, and the API verifies the mined receipt before recording anything.

The ten market roles

A market starts with no role holders. The lender of record names them when it takes the market, in one transaction. The guardian is the only role granted afterwards. The first four sit on the market and the next two on its liquidation router. The price signer and the oracle owner act on the price oracle, and the last two own the rate model and the insurance fund. Two adoption fields therefore carry more than one role. The admin wallet becomes market admin, router admin and insurance fund owner. The issuer wallet becomes issuer and rate model owner. Set Access Role later grants or revokes the seven roles that sit on the market, the router and the oracle, and Get Access Role checks any address.

Loan approver

A market can run approve-only loans, where every draw needs the lender of record’s approval. The market admin signs approvals, and so does any wallet that holds LOAN_APPROVER_ROLE. LOAN_APPROVER_ROLE approves and revokes loan approvals, nothing else. It is granted and revoked by the market admin.

Named at adoption, but not roles

Adoption also names two addresses that carry no capability on the market. Collateral agent (collateralAgent). Recorded as the pledgee on every collateral lock. It can do nothing on the market, the adapter or the router. Sale recipient (saleRecipient). Where seized collateral goes when the router operator withdraws it for sale. The wallet that signs the adoption becomes the operator wallet. It is the only address besides registered vaults that deposits into the pool directly, and it receives the operator share of interest. It moves only by its own signature, with Rotate Operator Wallet.

Other parties

These parties act on a market without holding any of its roles. The deployer can name the register provider of the collateral token on the market, with Set Market Register or on the page of the market in the Issuer Portal, under Asset register. That assignment is a record beside the market and not an eleventh role. It grants nothing on the market, the adapter or the router, and the lending contracts never read it. The register belongs to the token, so only the deployer names or clears it, and the lender of record reads it. The named register provider takes the market into its own instance with Import Market. From then on it reads the pledge record and receives each change as a pledge webhook.

Who signs each step

Where each audience starts

A bank’s first signature is the adoption. From then on, the wallets it named sign every configuration change. Launch a credit line walks through them in order. A tokenization platform signs the deployment and, when it is the token agent, the authorizations on the token. Open a market for your asset covers both. A fintech app holds no market role. Its clients sign deposits, loans and repayments from their own wallets, and the app’s instance builds each transaction. Embed earn and borrow shows the flow.