Skip to content

feat: deploy Meridian vault and mUSDC SAC to testnet - #83

Merged
collinsezedike merged 6 commits into
mainfrom
feat/deploy-testnet-vault
Jun 1, 2026
Merged

collinsezedike merged 6 commits into
mainfrom
feat/deploy-testnet-vault

Conversation

@collinsezedike

Copy link
Copy Markdown
Collaborator

Type of change

  • New feature (non-breaking change which adds functionality)

Summary

Deploys the MeridianVault Soroban contract and an mUSDC SAC to the Stellar testnet, wires their IDs into the codebase, and replaces the stubbed positions endpoint with a real on-chain read.

Deployed contracts:

Contract Address
mUSDC SAC CAHOYJV2D4IGNZUQ5NP3HTXQL2LQ47YTP3TR56MHR5CJEWHGMEUYRIL3
MeridianVault CBK5RI4BCA7TLSD2S5Q5TH2LUQAT55GF34OBTWPFUKWZ5O6YXSQDAWOJ

What changed:

  • packages/shared/src/constants.ts — vault and musdc contract IDs added for testnet
  • api/v1/tx/_shared.ts — vault ID hardcoded as fallback (Vercel works without env var)
  • api/v1/positions/[publicKey].ts — replaced stub with real on-chain read using Soroban view simulation (get_position, get_total_shares, get_total_assets)
  • apps/api/src/routes/positions.ts — same logic for local Fastify dev server

Protocol context

  • Stellar/Soroban: mUSDC admin transferred to vault so it mints and burns shares autonomously on deposit and withdraw.

Testing

  • Typecheck passes (pnpm typecheck)
  • Deposit/withdraw flow tested end-to-end with a funded testnet wallet + Freighter

Closes #65

@vercel

vercel Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
meridian Ready Ready Preview, Comment Jun 1, 2026 2:23am

@collinsezedike
collinsezedike merged commit 1a14fb4 into main Jun 1, 2026
4 checks passed
@collinsezedike
collinsezedike deleted the feat/deploy-testnet-vault branch June 1, 2026 14:03

This branch was successfully deployed

1 active deployment
Preview — 31a7d11b Deployed Jun 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Contracts] Build Soroban USDC vault contract with mUSDC share token and best-rate routing

1 participant