the router got better this month. here's how we check that
every few seconds we ask dirol, kyberswap, monorail and fly for the same trade and simulate every route at the same block. only what lands in the wallet counts. a quote that reverts or pays less loses, ties don't count as wins
the checker is public now. dirol pays the most in 85% of checks, 80-85% depending on the day: https://t.co/VvHt2PZA4K
the weak spots are the edges, $5 and $10k swaps. that's what we're working on next
not perfect yet, but i'm happy with where it is. if we fall behind, you'll see it there first
anyway, if you swap on dirol you get the best route, even when it isn't ours :)
Introducing the new Dirol DEX.
We've rebuilt the terminal and made our routing algorithm 1.5x better. Today it processed nearly $6M, making Dirol the #1 aggregator on @monad by daily volume, according to DefiLlama.
Dirol's routing is now one of the best places to trade on Monad. Next: it powers the Dirol Social app.
A month ago, one of my team members recommended me to download T3 code - this was one of the best decisions towards improving my coding setup so far.
Excited about the teams building helpful tools for developers.
Thanks @t3dotcodes team for genuinely impressive product! w/o orchestratorV2 update I'd have a much harder time hitting a new ATH in token usage (also yesterday was the last day of my Codex sub, but anyway)
If you have multiple subscriptions and want to ship faster, try it at least once
Introducing Dirol Esports, the first matchmaking platform for crypto trading.
Esports has been part of gaming for years, from CS to Dota and Fortnite. We believe traders are the new esports players.
Invite friends to your lobby, play trading matches, earn DRM, climb the leaderboard and prove your skill.
split routing here isn't "try 50/50, then 70/30"
the router moves size between pools until each one gives the same marginal output (kkt). amm curves and orderbook levels go into the same split. then it blends the top 20 candidate routes into the final one. full quote with all of this: ~23ms
why it matters: onchain liquidity is spread across dozens of pools, books and curves, and more assets move onchain every month, stocks included. the router turns all of it into one price. on nasdaq you trust your broker's "best execution". onchain every fill is public, so anyone can check if we really gave the best route
best router on monad isn't magic. we just keep checking it against everyone else
we quote the same pairs on the other monad aggregators and check their fills onchain. every route where someone beats us becomes a task
nothing ships without a replay test. we snapshot the whole monad market state, and any quote replays from it to the wei. every change runs on 4k+ frozen quotes, then live next to the current version on the same requests. if users don't get more out, it doesn't ship
building the algorithm isn't enough. you also have to keep every pool's state fresh, all the time
a route can go through 8-20+ pools. if one of them has a stale state, the quote is wrong and the whole swap reverts or fills worse
so the router updates pool state from onchain events in the same block they happen. a trade hits a pool, and the next quote already sees it. if the router can't trust a pool's state, that pool stays out of the route