This document summarizes all engineering upgrades implemented for the Base Mainnet (Chain ID 8453) launch, Base Stocks Maxxing Season, o1 Exchange Integration, and Builder Circle Verification.
-
data/tokenized_stocks.json— Verified Base Mainnet B20 Contracts (decimals: 8)- Replaced all placeholder
0x1111...addresses with 10 verified Coinbase B20 tokenized stock contracts on Base Mainnet (0xb20...) usingdecimals: 8and official ISIN metadata:-
NVDAc(0xb20000000000000000000078ee7ce2fe4908108c) -
AAPLc(0xb200000000000000000000c2e324d24d7eecd1fb) -
MSFTc(0xb200000000000000000000ab99cfa739e253872b) -
AMZNc(0xb200000000000000000000d9192b6b456483c2e8) -
GOOGLc(0xb2000000000000000000002d0ba3164cc74f58b7) -
METAc(0xb2000000000000000000008bc8786b856e61707c) -
TSLAc(0xb2000000000000000000001e800a7f5189430cd0) -
COINc(0xb200000000000000000000c85a31389d71f3ecfb) -
PLTRc(0xb2000000000000000000007d16372840df4dabbe) -
MSTRc(0xb2000000000000000000004884b426556b92883d)
-
- Replaced all placeholder
-
engine/wallet.py— B20 Multiplier Math, Base Tokens & ERC-8021 Encoder-
Multiplier Valuation Fix: Updated position valuation to
shares = round(amount * multiplier, 6)andvalue = round(shares * price, 2)to properly account for B20 corporate-action multipliers. -
8-Decimal Default for B20: Automatically defaults
0xb20...contracts to 8 decimals. -
Expanded
KNOWN_BASE_TOKENS: AddedWETH(0x4200000000000000000000000000000000000006),AERO(0x940181a94a35a4569e4529a3cdfb74e38fd98631), andVIRTUAL(0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b) alongsidecbBTCandUSDC. -
Dynamic Pricing: Pulls latest cached/live prices via
get_latest_prices()fromengine/data.pyinstead of hardcoded constants. -
ERC-8021 Base Builder Code Attribution: Added
encode_erc8021_suffix(),encode_risk_attestation_calldata(), anddecode_erc8021_calldata()implementing the canonical Schema 0 layout ([ASCII_CODES][LENGTH_1B][0x00][0x80218021802180218021802180218021]).
-
Multiplier Valuation Fix: Updated position valuation to
-
engine/o1_exchange.py(New) — o1 Exchange Partner Integration-
o1 Alpha Token Discovery (
fetch_o1_alpha_tokens): QueriesGET https://api.o1.exchange/api/v1/alpha-tokens?networkId=8453and enriches ranked addresses with AUREN B20 & Base DeFi metadata (with offline fallback to verified Base 8453 contracts). -
Deterministic Risk-to-Rebalance Calculator (
compute_optimal_rebalance_weights&build_o1_rebalance_plan): Solves for target portfolio weights that cap single-name concentration$\le 24%$ and raise effective assets$1/\text{HHI} \ge 4.2$ , generating 1-click o1 Terminal deep links and MEV-protectedPOST https://api.o1.exchange/api/v2/orderpayloads.
-
o1 Alpha Token Discovery (
-
engine/data.py&engine/universe.py- Added
AERO-USDandVIRTUAL-USDtoSECTORSandGROUPS. - Added
get_latest_prices()and deterministic offline proxy series forUSDC,AERO-USD,VIRTUAL-USD,COIN,MSTR,SOL-USD,SPY, andQQQso/riskand/liquiditynever throw 502 errors when Yahoo Finance is rate-limited.
- Added
backend/app/api/endpoints/analytics.py&backend/app/schemas/requests.py:POST /attest/encode: Generates Base Mainnet calldata with ERC-8021 Builder Code suffix.POST /attest/decode: Decodes Base Mainnet transaction input data to verify AUREN audit proofs and ERC-8021 Builder Codes.GET /o1/alpha-tokens?networkId=8453: Returns ranked o1 Alpha tokens on Base Mainnet.POST /rebalance: Computes Before vs. After deterministic risk score reduction, trade legs, and o1 Exchange/api/v2/orderbundle.GET /dashboard&GET /attest: Serves the standalone institutional workstation fromfrontend/index.html.
backend/app/core/config.py:- Added
https://aurenfrontend-delta.vercel.appandhttp://127.0.0.1:8080toBACKEND_CORS_ORIGINS.
- Added
web/src/components/modals/OnchainAttestModal.tsx(New)- Full Base Mainnet (
0x2105/ Chain ID 8453) on-chain transaction modal. - Lets users input their
bc_...Base Builder Code, inspect the ASCII proof and ERC-8021 hex suffix, broadcast a real transaction viaeth_sendTransaction, polleth_getTransactionReceipt, and open the confirmed transaction onBaseScan.org.
- Full Base Mainnet (
web/src/components/modals/ShareScorecardModal.tsx(New) &web/src/app/api/og/route.tsx(New)- 4-Theme Custom Risk Passport Studio (Obsidian Gold, Base Cobalt, Emerald Quant, Crimson Stress).
- Computes a dynamic Investor Archetype & unique serial hash (
#AUR-8453-XXXX) for every portfolio. - Renders a custom 1200×630 PNG on an HTML5
<canvas>(with live 2Y equity curve sparkline, semi-circular risk gauge dial, and multi-asset allocation bar) and shares via zero-API-key Twitter Web Intents.
web/src/components/modals/O1RebalanceModal.tsx(New)- Displays Before vs. After Risk Score reduction, 1-click o1 Terminal swap execution buttons, and applies the rebalanced portfolio directly to the workstation.
web/src/components/modals/PortfolioBuilderModal.tsx&WalletConnectModal.tsx- Added zero-fail empty-wallet handling with a 1-click "Load Base Stocks Demo Portfolio" button.
web/src/components/landing/LandingPage.tsx,Hero.tsx,OverviewView.tsx,DashboardTopBar.tsx,Workstation.tsx- Restored 3D
<ArchitectureStory />and<ProductPreview />on the landing page, polished institutional copy, and wiredAttest On-Chain,o1 Rebalance, andShare to Xinto the top bar and overview header.
- Restored 3D
- Build / Runtime: Docker (
Dockerfilerunsuvicorn backend.app.main:app --host 0.0.0.0 --port ${PORT:-8000}). - Environment Variables on Render:
BASE_RPC_URL=https://mainnet.base.orgLLM_BASE_URL=https://api.groq.com/openai/v1LLM_MODEL=openai/gpt-oss-120bLLM_API_KEY=<your-groq-api-key>
- Health Check Path:
/healthz
- Root Directory:
web - Environment Variables on Vercel:
NEXT_PUBLIC_API_URL=https://auren-api-8yrq.onrender.com(or your live Render backend URL)
- Visit dashboard.base.org, register AUREN, and copy your Builder Code (
bc_xxxxxxxx) under Settings → Project Settings → Builder Code. - Open your live deployed site (
/dashboard), click "⚡ Attest On-Chain (Base)", paste yourbc_xxxxxxxxcode, and click "Sign & Attest on Base Mainnet". - Screenshot the confirmed BaseScan transaction and submit your
bc_xxxxxxxxcode on Builder Circle (builder-circle.xyz/verify).