You control at least ten in any combination of Treasures and/or creatures.
Steps
At the beginning of your end step, Mahadi triggers.
Holding priority, activate Altar of Dementia by sacrificing any creature you control, causing target player to mill cards equal to the creature's power.
Repeat step 2 until you control no creatures.
Resolve the Mahadi trigger from step 1, creating a Treasure token for each creature that died this turn.
At the beginning of your next upkeep, Revel in Riches triggers, causing you to win the game.
Results
Win the game at the beginning of your next upkeep.