
building DeFi infra on @monad_xyz @DirolLabsX | views are my own.
Joined August 2022
- Tweets82
- Following28
- Followers37
- Likes460
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: dex.dirol.io/stats
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.
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
1
40
CS has Faceit. Dota has MMR.
Traders finally have Dirol .
maybe one day @Team__Spirit will scout the next donk on Dirol
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.
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
1
2
20
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
2
9
before social (almost done btw) decided to give the dex some love:
- grace routing: more liquidity sources + faster quotes (metrics later)
- limit orders: balance reserved on placement, redesign bottom UI and fixed defult price
- smoother chart, lighter token page
- page prefetch + better caching
this week I brought my old laptop back to life and set it up as a debug server where the agent can run tests and verify its own work. Jump really is on the level of switching to a better model
a proper environment is worth too much to keep agents on a short leash
A: an agent with access to a debuggable/clickable dev server
B: one without
I'd argue that the difference between A and B is bigger than most models
Fix the environment your agent runs in
1
2
42
Only with @DirolLabsX routing you can get extra 24$ for free.
never be afraid to be ambitious.
especially now.
tbh, after using a social trading app for a few weeks, today i ran into a simple defi app with basic swaps, and it felt super uncomfortable to me - even though this is the kind of thing we've considered useful and easy to use for years.
i think this is one of the first signs that we're steadily moving in the right direction across trading apps and defi stuff overall, and i really like where it's going.
there's still a lot to figure out though. social trading can have the best UX in the world, but if users are reporting trades filling 10% away from where they expected, none of that matters.
that's one of the problems we're trying to solve at Dirol, social on top, but with execution underneath that can actually keep up. that's why we built our own meta-aggregator from scratch, comparing routes in real time across multiple sources.
i think we can invent something much bigger around this core.
The reason we built a social trading app is simple: we see a major problem holding social trading back from what it could potentially become.
Bad execution, bad fills and high fees.
We've been seeing this problem with social trading apps for a long time. From the beginning, the tech seemed cool and innovative (and it is), but now we're seeing people complain about the execution technology behind the swaps.
Good social without good execution is just content, and the frustration of being down 30–40% as soon as you open a trade. That's why we chose to build our own trading infrastructure alongside our social app, so your trade doesn't get held up by unnecessary routing steps.
Current social trading apps work like this:
The user taps "Buy" in the app
The platform sends the order details to Relay: the amount, destination chain and destination token.
Relay provides a quote and selects the route.
For a same-chain swap, the swap happens on that chain.
For a cross-chain swap, the platform sends USDC into Relay's vault on chain A, along with the order ID. Relay's solver then uses its own funds on chain B to buy the token and send it to the user.
In this flow, (the app) receives the swap information at step 1, and Relay receives it at step 2, before the actual fill.
In theory, malicious insiders with access to that information could use it to buy the token before the user's trade and sell after it executes. That's a potential risk, not a claim that this is happening at either company.
We're building our trading system from scratch, designed specifically for social trading on desktop and, later, iOS. Every spot swap will be powered by our own trading engine.
At the same time, we believe trading is moving onchain, and social will be at the heart of it. With Dirol, we want to make that future accessible to everyone - bringing spot, stocks, perps and whatever comes next into one platform where people can trade, share ideas and discover what others are trading.
On top of that, there will be two products in one: Trenches & Perps. With one button, you'll be able to switch between them. You can be trading memes, posting your position and seeing what everyone around you is buying, then switch to Perps and keep the exact same social identity, profile and community.
I think seeing a "Copy Position" button under a trade from someone you follow, alongside their thesis on why they think the market will go up or down, and being able to open your own position directly from the feed would be a pretty fun experience for the perps market.
Watch us make moves. The experience is fun.
This made my day, thanks.
btw funny timing, I shipped this routing update yesterday and hadn't even posted about it yet
want Dirol to be the best place to trade on Monad so
there's still a lot to do💜
wait is it @fomo but better?
seeing relay go down again is a good reminder of why we're building dirol social at @dirollabsx
we're building a social trading app where every swap is powered by our own meta aggregator.
think titan, but our own, built specifically for multichain social trading, comparing routes in real time to find the best execution.
ser, we're fixing the trenches
3
62



















