Earn 5.75% APY staking with Solana Compass + help grow Solana's ecosystem

Stake natively or with our LST compassSOL to earn a market leading APY

Conference Talk Breakpoint 23

Breakpoint 2023: The Metis Routing Algorithm

Solana 🧭 Compass By Solana 🧭 Compass Nov 09, 2023 5 min read

Innovations in swap aggregator platforms with Metis Routing Algorithm for optimal cryptocurrency trade routes.

The notes below are AI generated and may not be 100% accurate. Watch the video to be sure!
Note: these notes were generated by AI to help surface more Solana content

Summary

In a detailed presentation at Breakpoint 2023, Melvin and his colleague, who are part of the Raccoons team behind the platform Jibberter, introduce the Metis Routing Algorithm, a solution devised to optimize the route for cryptocurrency trades. They discuss the evolution of swap aggregator platforms, the challenges faced in optimizing trade routes, and how the Metis Routing Algorithm aims to solve these by providing the best trade prices with its innovative approach. This advancement in technology is significant for users of digital currency exchanges seeking to maximize the value of their trades.

Key Points:

Introduction to the Metis Routing Algorithm

Melvin, a research engineer from the Raccoons team, starts by introducing the capabilities of Jibberter, a swap aggregator platform that computes optimal trading routes for users wanting to exchange cryptocurrencies. The primary focus of their project is to ensure the best price for users during trade execution. They outline how Jibberter has operated since its launch in late 2021, highlighting its success with $35 billion in volume, 96 million transactions, and over 910,000 wallet integrations.

Evolution of Trade Routing on Jibberter

The team illustrates how they have gradually developed Jibberter's routing feature from comparing direct routes and simple hops between tokens, to integrating more decentralized exchanges (DEXs) and thus creating more route permutations. They explain that to manage increased complexity, they optimized their algorithm to consider liquidity and introduced multi-hop routes thanks to improvements in the Solana network, like the increase in log accounts and the introduction of the Address Lookup Table.

Metis Algorithm Implementation and Challenges

The Raccoons team further delves into the technical aspects and constraints of routing, such as the 64 account log limit on Solana. They turned to the literature for solutions, particularly a paper by Lozano and Madaglia, which inspired the Metis Routing Algorithm based on the concept of constrained shortest path problems. This approach allows the algorithm to avoid checking all route permutations while optimizing for the best trade price, despite being slightly slower than previous methods.

Facts + Figures

  • Metis Routing Algorithm is designed to optimize cryptocurrency trade routes for better prices.
  • Jibberter has processed $35 billion in volume, 96 million transactions, and supported 910,000 wallets.
  • Multi-hop routing was enabled by increased account limits and the Address Lookup Table in the Solana network.
  • The algorithm was inspired by open-source projects like UniSwap and a research paper by Lozano and Madaglia from 2013 on the constrained shortest path.
  • Routing in Jibberter evolved from direct swaps and single hops to more complex permutations with multiple hops.
  • Metis trades-off speed for better price discovery, surpassing the project's V2 algorithm and comparing favorably with UniSwap's performance.
  • Users are encouraged to integrate their decentralized exchanges with the Jibberter API to optimize for Metis routing.

Top quotes

  • "Our group promise: best price, best token selection and the best UX for users."
  • "We solve the simplest problem first, and as the capacity of the network increases, we have more account slots, went from 32 to 64."
  • "We should get inspired by other things that people have published, like open-source code or papers or literature."
  • "It's actually quite similar to the problem we have on chain."
  • "We prioritize on the price discovery instead of the runtime."

Questions Answered

What is the Metis Routing Algorithm?

The Metis Routing Algorithm is a new method designed by the Raccoons team for their platform, Jibberter. It optimizes the route for cryptocurrency trades, particularly focusing on providing the best market price for any given trade by considering multiple trade routes and excluding less efficient permutations.

Why was the Metis Routing Algorithm developed?

The Metis Routing Algorithm was developed in response to the increasing complexity of routing cryptocurrency trades through multiple DEXs and the need to improve over simple hop and direct route comparisons. By adopting sophisticated routing strategies, the algorithm can find the optimal path that offers the best return for the trader.

How does Metis handle the constraints of the Solana network?

Metis makes strategic use of the limited account logs (64 in total) on the Solana network by applying the principles derived from the constrained shortest path problem, which involves finding the most efficient route under specific constraints - in this case, optimizing trade output within the limits of the blockchain's account logging capacity.

What results have been seen with the implementation of Metis?

With the implementation of the Metis algorithm, Jibberter has recorded significant improvements in price discovery for trades, despite the algorithm running slightly slower than their previous version. This improvement supports the platform's core promise of ensuring the best price for users' trades.

How do developers benefit from the new algorithm?

Developers, particularly those involved in decentralized exchanges, benefit from the new algorithm as it offers a more advanced routing solution that they can integrate into their platforms. This integration could lead to better service offerings for their end-users, like optimized swap transactions and potentially higher savings.


Comments

Please login to leave a comment.

Related Content

The Future Of Onchain Capital Markets Is On Solana | Chris Chung

Chris Chung reveals how Titan's mathematical optimization approach beats traditional DEX aggregators and why Solana is positioned to dominate internet capital markets

Jupiter swap and the $JUP token airdrop (w/ Siong, co-founder of Jupiter) - Solfate Podcast #42

Dive into Jupiter's evolution, innovative token launch strategy, and future plans with co-founder Siong in this insightful Solfate podcast episode.

The Jupiter End Game With Kash Dhanda

Kash Dhanda reveals Jupiter's ambitious lending strategy, the power of JLP as Solana's cornerstone asset, and why UX-first design is winning the DeFi race.

Prop AMMs Are Solana's Biggest DeFi Innovation | Chris Hermida

Deep dive into prop AMMs - the innovative trading infrastructure giving Solana users tighter spreads than centralized exchanges while reshaping DeFi market structure.

PropAMMs are a Gamechanger for Solana Trading

PropAMMs now handle nearly 50% of Jupiter's volume on Solana. Discover how these proprietary market makers are transforming DeFi trading efficiency and reducing slippage.

Scale or Die 2025: Adapting DEX Aggregation to Solana: Routing Under Constraints

Discover how 0x is revolutionizing DEX aggregation on Solana, overcoming technical hurdles to deliver optimal swap prices

Can Solana DEXs Compete With Hyperliquid?

Deep dive into whether Solana DEXs can compete with Hyperliquid, the bifurcation of DEX volume, and why Pump.fun probably shouldn't build perps.

1inch Co-Founder: Launching On Solana | Sergej Kunz

1inch co-founder Sergej Kunz discusses the DEX aggregator's launch on Solana, bringing cross-chain swaps and MEV protection to the high-performance blockchain.

PropAMMs and WET w/Kevin at Humidifi

Kevin from Humidify reveals how proprietary market makers dominate Solana DEX volume, optimize oracle updates, and plan to make Solana the home of day-one token trading

How HumidiFi Became Solana's Largest Prop AMM

Kevin from HumidiFi reveals how proprietary AMMs are reshaping Solana's trading landscape, achieving massive volume with minimal capital while pushing price discovery on-chain.

PropAMMs and WET w/Kevin at Humidifi

Kevin from Humidify reveals how prop AMMs have dominated Solana trading, offering tighter spreads and capital efficiency while reshaping DeFi market structure.

The Future Runs on Pipe | ep. 43

David Rhodus, founder of Pipe Network, discusses building a next-generation decentralized CDN that's faster, cheaper, and more censorship-resistant than traditional providers, with integration into Jito restaking.

Jupiter: The Aggregator Fueling Solana's GDP | Meow

Discover how Jupiter Exchange is transforming Solana's ecosystem, onboarding millions of users, and driving the future of decentralized finance.

Breakpoint 2023: Jupiter's Ambitious Plans for Solana's DeFi Ecosystem

Breakpoint 2023 presents Jupiter's bold strategies for enhancing the Solana ecosystem with new offerings and a commitment to decentralization.

Keynote: DFlow (Nitesh Nath)

DFlow unveils tokenized prediction markets on Solana, processing $33B in trading volume and partnering with Kalshi to give crypto traders access to regulated prediction markets

Solana tokens

Solana Token Markets

Explore all tokens →