# Exhausting a flow before moving on, and who profits when the median moves

Mentorship Series #11 · 17 December 2025 · [@0xfirefist](https://x.com/0xFireFist) · Mento V3 · Cantina

Mentorship Series · [The Contest Academy](https://0xsimao.com/the-contest-academy) · 0xSimao

---

We continued the Mento V3 [contest](https://cantina.xyz/competitions/fe8e03b1-f8db-4698-8a21-44b3a862e434) on Cantina.

**Lesson Summary:**

- Finding one lead in a flow does not mean it is the only one. Don't lose focus: exhaust every scenario you can think of before moving on;\
Front-running trusted entity fns mentioned again;
- If the price rises because the median moved, can an attacker profit from it, through liquidations or otherwise?
- Think through scenarios with only one oracle;
- In the `new` function, check if something must be called before calling _updateTrackingVariables, basically check what they do before calling \`offset\` in the trove manager.

https://youtu.be/1C4VZceypU0

Session video: https://youtu.be/1C4VZceypU0

---

Newer: [Division by a variable, oracle-priced pools, and trading limits split into small swaps](https://0xsimao.com/the-contest-academy/mentorship-series-12) · Older: [Turning an out-of-scope root cause into an in-scope exploit](https://0xsimao.com/the-contest-academy/mentorship-series-10)
