Binary Options Architecture
Last updated
Last updated
NODO PM Vault contract deployed on each chain we aim to support (e.g., BASE, BSC)
NODO Broker contract deployed on the same chain with the PredictionAMM (e.g, ThalesAMM, SpeedMarket, NodoAMM)
A cross-chain relayer module running at the backend side
He submits transaction to NODO PM Vault on BASE
NODO PM Vault on BASE records his investment amount and type of asset (e.g., 100 USDC), and emits an event about this purchase
NODO PM Vault swap this USDC to USDT on BASE and lock this asset.
Per user position, NODO PM Vault swap USDT to the deposited asset and distribute to user wallet
We deploy an amount of liquidity on the NODO PM Vaults and NODO Broker.
When a user purchases shares on a chain (e.g., BASE)
Cross-chain relayer monitors this purchase event, submits a transaction to the NODO Broker, which uses its liquidity to purchase shares on PredictionAMM (e.g., ThalesAMM)
When the market is matured, Cross-chain relayer submit a transaction to NODO Broker to claim payout, and emit a payout event
Once the payout event emitted, Cross-chain relayer submits transactions to NODO PM Vault to distribute payout