Developer walkthrough of Reflector price oracle for Stellar DeFi, covering boilerplate setup, testing with ledger snapshots, and building a predictive market contract using oracle data.
This session covers building on Reflector, a price oracle for Stellar DeFi. The speaker demonstrates a boilerplate project for developers entering the Reflector dev contest, highlighting key patterns: importing clean contract interfaces for cross-contract calls, using ledger snapshots to test against mainnet data, and avoiding naming conflicts with export flags. The speaker then showcases a predictive market contract built on Reflector that lets users bet on asset price movements over defined periods, with stake amplification based on timing. Discussion includes oracle design principles, time-weighted average pricing, and theoretical high-throughput trading models using Soroban in serverless environments.