Query editor
-- ================================================================-- [OUSG] primary market — mint / redeem with investors-- Output: (block_date, blockchain, action, trader, ousg_amount, amount_usd, tx_hash, source)-- action = 'mint' (investor receives newly issued OUSG) | 'redeem' (investor gives OUSG back)-- trader = the INVESTOR, varbinary (base58 / r-address cast to bytes on solana / xrpl)---- OUSG is KYC-gated: 0 DEX trades since 2023, so the primary market IS the market.-- Sources, in order of trust:-- E1 ondo_ethereum.ousg_instantmanager_evt_subscription / _redemption (2025-04 ->)-- subscriber/redeemer + depositUSDValue / redemptionUSDValue (18 dec): exact USD.-- E2 ondofinance_ethereum.ousginstantmanager_evt_instantmintousg / _instantredemptionousg-- (legacy manager 0x2826.., 2024-04-26 -> 2025-04-07): sender + usdcAmountIn/Out (6 dec).-- E3 manual flows = OUSG transfers NOT in an E1/E2 tx, through Ondo's pivots:-- 0x3d85c41e.. = Safe run by "Ondo Finance: Deployer 3" (ops wallet: receives mints and-- investor OUSG, pays OUSG out to investors, burns)-- 0x72be8c14.. = OUSG Recipient (docs: manual redemptions; every burn since 2025-03-- comes from it)-- mint = 0x0 -> investor, or pivot -> investor-- redeem = investor -> pivot, or investor -> 0x0-- "investor" = any address outside the Ondo set below. Caveat: a pivot -> X transfer-- that is really an OTC delivery would also be labelled mint; 2023 CashManager mints-- went straight to investors (69 parties), so this mostly matters for 2024-25 ops moves.-- S tokens_solana.transfers mint/burn on i7u4r16.. — every mint/burn goes through ONE-- Ondo custody account (6ViaRWzv..); investor attribution is impossible on Solana,-- the trader is that custody account. Kept for the volume, not for the trader count.-- X xrpl.transfers: Recipient rHprwRkv.. -> investor = mint, investor -> Recipient = redeem-- (issuer rHuiXX.. mints to the Recipient first; see spec).-- USD: E1/E2 carry the amount actually paid. Everything else = OUSG units x NAV, NAV from-- fluxfinance_ethereum.rwaoracleexternalcomparisoncheck_evt_..priceset (legacy oracle-- 0x0502c5.., newRWAPrice 18 dec, 2023-04-26 ->) unioned with-- ondo_finance_ethereum.ondooracle_call_getassetprice (0x9Cad45.., 2025-03-27 ->),-- last value per day, forward-filled; days before the first oracle print use it.-- Verified 2026-09-02: XRPL flows against XRPScan obligations (1,657,065.57), Ethereum-- instant events against Etherscan — see dashboard-docs/usdy-ousg-dex-blocks-spec.md.-- ================================================================with ondo_set as (select * from (values(0x0000000000000000000000000000000000000000, 'zero'),(0x1b19c19393e2d034d8ff31ff34c81252fcbbee92, 'OUSG token'),(0x93358db73b6cd4b98d89c8f5f230e81a95c2643a, 'OUSG_InstantManager'),(0x2826989983e3a66f0622132d019c2ae173eb6a43, 'OUSGInstantManager legacy'),(0x3d85c41e1a24a970a93436bf6379f53317272d6c, 'ops safe (Deployer 3)'),(0x72be8c14b7564f7a61ba2f6b7e50d18dc1d4b63d, 'OUSG Recipient'),(0xf67416a2c49f6a46fee1c47681c5a3832cf8856c, 'Coinbase Prime ousg.eth'),(0x0317a350b093f8010837d1b844292555d73ebc2c, 'PYUSD Recipient'),(0xf16c188c2d411627d39655a60409ec6707d3d5e8, 'OUSGManager legacy'),(0x3501883a646f1f8417bcb62162372550954d618f, 'CashManager legacy'),(0x7ce91291846502d50d635163135b2d40a602dc70, 'KYCRegistry legacy'),(0xcf6958d69d535fd03bd6df3f4fe6cdcd127d97df, 'OndoIDRegistry')) as t(a, label)),pivots as (select a from ondo_set where label in ('ops safe (Deployer 3)', 'OUSG Recipient')),-- ---------------- NAV series (one fund, one price on every chain) ----------------nav_prints as (select evt_block_date as day, cast("newRWAPrice" as double) / 1e18 as px, evt_block_time as tsfrom fluxfinance_ethereum.rwaoracleexternalcomparisoncheck_evt_rwaexternalcomparisoncheckpricesetunion allselect call_block_date, cast(output_price as double) / 1e18, call_block_timefrom ondo_finance_ethereum.ondooracle_call_getassetprice