OpenViSTAI · Agents · Blockchain · Crypto
Menu
DeFi

Origin DeFi OTokens

Origin DeFi OTokens is an open-source Solidity repository containing smart contracts for Origin DeFi’s OUSD and OETH tokens, with Foundry-based builds and tests, a pnpm operations CLI, and Anvil-based local development against forked EVM state.

Independent OpenViST project profile, based on linked sources.

Origin DeFi OTokens — OpenViST project profile in DeFi.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when the task involves the contract layer behind OUSD or OETH, Foundry-based development, or local DeFi integration testing against an Anvil mainnet fork.

Who it is for

  • Smart-contract developers working with Solidity and EVM-based DeFi.
  • Teams inspecting or adapting yield-accruing stablecoin contract architecture.
  • Developers testing integrations with the repository’s named DeFi venues.

Documented uses

  • Develop and inspect OUSD and OETH smart contracts.
  • Build, test and deploy contracts with Foundry.
  • Run documented operational commands through the project CLI.
  • Develop against a local fork containing mainnet DeFi contract state.
Before you choose

Requirements & limits

The repository is public and described as open source. Local setup requires Node.js 16 through 18, with Node.js 18 recommended, a valid MAINNET_PROVIDER_URL and a Web3 wallet such as MetaMask.

  • The codebase is Solidity-focused and uses Foundry for builds, tests and deployments.
  • The local environment relies on Anvil forked state rather than recreating mainnet integrations.
  • The README names Uniswap, Curve and SushiSwap as third-party contract integrations.
  • The repository provides a pnpm ops CLI for operational commands.
  • Replacing the named DeFi venues requires modification; compatibility with a specific replacement is not demonstrated.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up a pinned local Anvil fork

Prepare the repository for local development against a selected mainnet state.

Before you start

  • Node.js 16 through 18; Node.js 18 is recommended.
  • A valid MAINNET_PROVIDER_URL.
  • The repository cloned locally.
  • pnpm installed for the documented dependency commands.

Steps

  1. Clone the origin-dollar repository and enter its directory.

  2. Rename contracts/dev.env to .env and set MAINNET_PROVIDER_URL.

  3. Set BLOCK_NUMBER if the fork should use a pinned mainnet block.

  4. Enter contracts/, install dependencies with pnpm i, and run pnpm run node in a separate terminal.

Expected outcome

A local forked EVM node is started for development against the configured mainnet state.

Guide limitations

  • The instructions document starting the local node, not successful execution of a particular contract interaction.
  • The README warns not to run pnpm approve-builds.
  • A valid provider endpoint is required.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
2 October 2026
Original website title
OriginProtocol/origin-dollar · Official homepage title · retained in its source language