DeFi University
Skip to lesson

Exercise 10

Oracle Latency and Gap Risk (HIP-3 Later)

About 15 min

Your task

You'll compute a native oracle price by weighted median with one venue printing badly, then put the same kind of bad print through a single-feed market and follow it to your leg's loss. By the end you can say how robust the price that liquidates you is, and what a bar-close simulation misses.

Time
20 to 30 minutes
You'll need
a calculator or spreadsheet
Builds on
Lesson 10

Warm-up

Check yourself

Five prices with weights: 10 (1), 50 (1), 51 (2), 52 (1), 53 (1). What is the weighted median?

Check yourself

Your simulator checks stops at each bar's close. Inside one bar, the mark drops 20% and recovers. What can liquidate a live position during that bar?

Members only

This course is for members.

The DeFi University membership on Skool opens all 31 courses here, plus the live calls and community. Private coaching clients have access too. Already a member? Sign in with your Skool email.