Trident

    A Visual Description of How Sushi Trident Works

    The Introduction

    Trident is an automated market maker (AMM) and routing system developed by folks at Sushi, with the focus on achieving capital efficiency and protection from volatility using DeFi primitives. From one perspective, Trident is a suite of AMM concepts bundled into a single system.

    Without sacrificing user familiarity, Trident on the surface may seem like a regular AMM but with features like "gasless", and multihop transactions that happen behind the scene, it is well-deserving of being termed as the next generation AMM.

    To fully understand Trident, we have to go back to how it all began...

    db_img

    The Background

    Trident’s beginnings originate with inspirations from the Sushi team’s original discussions with Yearn Finance’s Andre Cronje and from the Sushi AMM V2 proposal written by Sushi Core Developer, LevX.

    Trident is a new AMM from Sushi composed of popular AMM concepts and not a fork.

    The Architecture

    A trident has three prongs, and as such Sushi's Trident is built on three essential prongs which we shall delve into to explain the architecture.

    db_img

    BentoBox

    This is Sushi's vault platform on which complex and capital-efficient applications can be built. BentoBox works by storing tokens that can be utilized in strategies and flash lending. Yield from BentoBox strategies and flash lending are returned to users so users can earn just by depositing in the vault. BentoBox also allows for single token approval for usage across all its apps, saving users time and gas money!

    Launch Pools

    Trident was initially deployed with four (4) primary pool types for launch as depicted in the chart above, however, it is extensible enough to allow developers to add new pool types that conform to the IPool Interface. So at a minimum, Trident is a superset of all popular AMM pool designs thanks to its extensibility.

    Tines

    Tines is a routing engine designed for the Sushi frontend to be more intuitive. The two main features of tines are; multihop and multi-route. With multihop, swaps could happen between the different types of pools in the ecosystem. Multi-route implies that swaps may take multiple routes to get the best gas costs and price impacts.

    How Is Trident Different From Uniswap v3

    The third iteration of Uniswap is currently the top AMM in the decentralized finance ecosystem now. Let us take a look at the different ways Trident is different from Uniswap v3.

    First, Trident is composable as compared to the "monolithic" nature of Uniswap v3. If Uniswap wanted to upgrade, they have to do a version 4 but it will be easier for Trident to simply upgrade components.

    Secondly, Uniswap only works with one pool type which is the constant product pool. Trident is extensible in such a way that any pool type that adheres to the IPool interface can work with Trident.

    Thirdly, Trident being built on BentoBox means that users can achieve capital efficiency that is unheard of. With single-token approval, users stand to save a lot of money in doing swaps. Uniswap on the other hand requires approval for every token intended for swaps.