Neura DocsContract architecture

Smart contracts

Contract architecture

How the Factory, Pool, Router and math library fit together.

text
                         ┌────────────────────┐         createPool ───▶ │   NeuraV1Factory   │  fee tiers (immutable)                         └─────────┬──────────┘                                   │ CREATE2                                   ▼   user ──▶ NeuraV1Router ──▶ NeuraV1Pool (LP token + reserves + oracle)              │  deadlines         │  uses              │  slippage          ▼              │  multi-hop     NeuraMath (sqrt, stable invariant, bounded bisection)              ▼         your wallet
ContractRoleHolds funds?Upgradeable?
NeuraV1FactoryCreates pools, fixes fee tiersNoNo
NeuraV1PoolReserves, swaps, LP token, TWAPYesNo
NeuraV1RouterSafe user entry pointNoNo
NeuraMathPure math libraryNoNo
  • Solidity 0.8.28 (checked arithmetic by default)
  • No owner, no pause, no proxy — the code you read is the code that runs
  • Source notices: BUSL-1.1; owner-approved license terms are pending, so no unrestricted reuse grant is asserted

Reference implementation — unaudited, not deployed.