> For the complete documentation index, see [llms.txt](https://docs.onspatial.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.onspatial.org/what-can-be-pledged/usdg.md).

# USDG as the loan currency

The reasons Spatial denominates all loans in USDG, the conditions for adding another loan currency, and the way the contracts handle the difference in decimals.

Spatial uses a single loan currency throughout. Borrowers draw principal in USDG, interest builds up in USDG, fees are charged in USDG, and liquidation auctions settle in USDG. The token is Paxos's Global Dollar.

## Why USDG

* **Native to the chain.** USDG is minted directly on Robinhood Chain, so there is no bridge between any lender and any borrower.
* **The chain's established lending asset.** Robinhood Earn, the network's first lending product, uses USDG via Morpho, which meant the liquidity and integrations existed before Spatial launched.
* **Regulated under MiCA.** The protocol's main market is the EEA, so an EU-regulated stablecoin is important.
* **The same asset as idle capital.** Lender funds [waiting between fills](/how-loans-work/parked-capital.md) go into a whitelisted Morpho vault, and that vault holds USDG.

## How the contracts fix the currency

The on/off control is `RiskConfig.setLoanTokenEnabled`. Through `OracleGuard.configureFeed`, every collateral token is tied to a single loan token, and the hub refuses requests that specify anything else (`LoanTokenMismatch`). The loan currency is thus one of the things that defines a market, rather than something chosen per request.

## Handling the units

Stock Tokens use 18 decimals and USDG uses 6. The guard rescales the Chainlink answer and returns what one whole collateral token is worth, denominated in base units of the loan token. The hub then multiplies the escrowed quantity by this price and divides the result by ten raised to the collateral's decimals, a value it obtains from `OracleGuard.collateralDecimals`:

```
value = amount * price / 10^collateralDecimals
```

After this step, LTVs, health factors and interest are all calculated in loan-token units. The [assurance suite](/inside-the-protocol/assurance.md) tests the arithmetic in `test/Invariants.t.sol`.

## Adding another currency

Since the loan token helps define a market, introducing a new one produces a separate, isolated market, and existing loans are unaffected. Two candidates are being looked at:

* USDe, which is already on the chain.
* USDC via CCTP, once its bridged liquidity is confirmed.

Neither will be switched on until three things are in place: verified liquidity, a review of the token's pause and blacklist powers, and a whitelisted vault where it can be parked. Turning it on is done through a timelocked batch, like every other parameter change.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.onspatial.org/what-can-be-pledged/usdg.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
