> For the complete documentation index, see [llms.txt](https://docs.sodex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sodex.com/for-developers/developers/wealth/contracts.md).

# Wealth Contracts

Factory, beacon, builder-fee, recurring-buy, and bridged-vault contract roles are listed below. Per-fund vault, market, asset, and subscription addresses change with each deployment — load them before submitting a request.

## Core contracts

| Contract        | Mainnet                                      |
| --------------- | -------------------------------------------- |
| VaultFactory    | `0x0ec2Ac77656d83e6B74B03e2a704ce656C4954D6` |
| Vault Beacon    | `0x04f26Ae15c97a53B10f6EA275eBB5E0f084Eae41` |
| Market Factory  | `0x75eeDBC8D93ecB93895e2d3cAaDFf265bA4716C8` |
| Market Beacon   | `0x495AA25FFe9Ac264264389220B4349Fe113E09F5` |
| BuilderRegistry | `0x638c784760FD1eE465F1bDaF721268ACA24D5A22` |
| TigrisRFQ       | `0x4Aa5E39956aCADd68bE0B6720a030Be3C14a6239` |

BuilderRegistry stores each user's builder-fee cap. TigrisRFQ is the RFQ contract that attaches `builderFeeData` on buy and sell. See [Builder Integration](https://docs.sodex.com/for-developers/developers/wealth/builder.md).

### Recurring buy contracts

| Contract                       | Mainnet                                      |
| ------------------------------ | -------------------------------------------- |
| AutomaticInvestment            | `0x76f8064b1B0f091D8f86D2EB203631D44B685146` |
| AutomaticInvestmentDeposit     | `0x355Be5eEE2965050Bd056f7cb0dFAAeD3cB11964` |
| AutomaticInvestmentExecution   | `0x89149246cc0f3a576fA45E0377264C5BF9aDca70` |
| AutomaticInvestmentCNExecution | `0x0728fea6c87dcD13002dF1FD9dFe4969ECBdB634` |
| SodexExecutor                  | `0x53a35Eb5Dd0B25B6F704dA7f6EcBBeCC151501dd` |
| SoUSDCAdapter                  | `0xcaC525698aEe230af387FC94CD8D9120BC052f13` |

AutomaticInvestment schedules recurring-buy plans. AutomaticInvestmentDeposit is the USDC share ledger that prefunds those plans. AutomaticInvestmentExecution custodies each vault's execution until claim. SodexExecutor holds USDC for trading and returns vault tokens on settlement. Create a plan and prefund it on [Recurring Buys](https://docs.sodex.com/for-developers/developers/wealth/recurring-buys.md). Read plans with [Recurring Buy Plans API](https://docs.sodex.com/for-developers/api-reference/wealth-api/recurring-buys.md).

## Bridged vault contracts

Bridged vault requests execute on ValueChain through these protocol contracts. Mainnet addresses are maintained in [Mirror Protocol Contracts](https://docs.sodex.com/for-developers/developers/mirror-protocol/contracts.md#core-contracts).

| Contract                | Role                                                                                                                                          |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| SoDexTokenPortal        | Resolve the active `caller()`, `callForPermit()`, and `getToken(symbol)` addresses.                                                           |
| SoDexTokenCaller        | Create deposit/redeem bridge requests and read their status by `callForId`.                                                                   |
| SoDexTokenCallForPermit | Verify the user's EIP-712 authorization and call Caller for that user. This is the gasless Relayer target and the EIP-712 verifying contract. |
| SoDexTokenOracle        | Protocol token prices; used by the SoUSDC adapter for valuation. A price is not a guaranteed execution quote.                                 |

For [Bridged Vaults](https://docs.sodex.com/for-developers/developers/wealth/bridged-vaults.md), start from Portal `0x07E28Aa1BB34A625c94870476b24213AB4d2E7C8`, read the active addresses, and verify the fund's share token. Do not use an external Base vault address as the ValueChain Relayer target. A bridged fund may have empty `contracts` and `chainConfig=null`; it has no local escrow vault to call.

## Available escrow vault contracts

`GET /api/v1/wealth/funds` returns listed funds. `fundType` is `escrow_vault`, `clob`, or `bridged_vault`. The vault methods in this section are for `escrow_vault`. A `clob` fund is a SoDEX RWA token and trades on CLOB. A `bridged_vault` uses [Bridged Vaults](https://docs.sodex.com/for-developers/developers/wealth/bridged-vaults.md). Filter the list instead of using a static vault table.

```bash
curl -fsS 'https://mainnet-gw.sodex.dev/api/v1/wealth/funds' \
  -H 'Accept: application/json' |
  jq '[.data[] | select(.fundType == "escrow_vault")]'
```

Then load [Fund Information](https://docs.sodex.com/for-developers/api-reference/wealth-api/funds.md#get-fund-information) for an `escrow_vault` `fundId`. The response `contracts` object is the current vault, market, asset, and subscription deployment. Do not hardcode per-fund addresses. An address alone does not mean the fund is accepting deposits or redemptions.

```bash
curl -fsS 'https://mainnet-gw.sodex.dev/api/v1/wealth/funds/CXMT' \
  -H 'Accept: application/json' |
  jq '.data.contracts'
```

Replace `fundId` with an `escrow_vault` identifier from the fund list. Use the returned contracts with [Vault Lifecycle](https://docs.sodex.com/for-developers/developers/wealth/vault-lifecycle.md) and the [vault contract methods](https://docs.sodex.com/for-developers/api-reference/wealth-api/vault-contracts.md).

Example `contracts` objects:

### CXMT

| Contract     | Address                                      |
| ------------ | -------------------------------------------- |
| vault        | `0x9876b381a94876ea8fea56b625e15556fb450629` |
| market       | `0xfc1ffe2f3c39a2c126d26dcd45d03439e491ecec` |
| asset        | `0xcb7f80dff2727c791fa491722c428e6657f7e2c6` |
| subscription | `0xecb74e25a87fe8793175894ebac01c72677f13b8` |

### UNITREE

| Contract     | Address                                      |
| ------------ | -------------------------------------------- |
| vault        | `0x67531aef9ce1ad5af176d0940bb8dfb0e1c1ecbe` |
| market       | `0x830db93620edf3c3b611ada257b910bf97c8da85` |
| asset        | `0xcb7f80dff2727c791fa491722c428e6657f7e2c6` |
| subscription | `0x701ebb547442f43047e06d59470445480e2705c7` |
