Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@sushiswap/trident
Advanced tools
TRIDENT 🔱 is a newly developed AMM and routing system from [SushiSwap](https://sushi.com/) (Sushi). Trident is not a fork of any existing AMM, though to start, it incorporates popular AMM concepts into a single, upgradeable framework. The Sushi core team
TRIDENT 🔱 is a newly developed AMM and routing system from SushiSwap (Sushi). Trident is not a fork of any existing AMM, though to start, it incorporates popular AMM concepts into a single, upgradeable framework. The Sushi core team began development with Andre Cronje as Deriswap. This development continued on as Mirin developed by LevX. On May 12th, 2021, Sushi began building Trident in earnest on the Mirin/Deriswap foundation.
Contract | Address |
---|---|
BentoBox | 0xc381a85ed7C7448Da073b7d6C9d4cBf1Cbf576f0 |
TridentRouter | 0xabBf36386800A2676737Fdde61905BbF123284b3 |
MasterDeployer | 0xcbD2dB3c724fA4349618fb390f736185Db21a1A1 |
ConstantProductPoolFactory | 0xD6A52478FB50f0aaB6E3Bf86f691c0D61DF18f38 |
HybridPoolFactory | 0x4fbeDaEcb25C8094a5bd3b75CD51F02EC956Ad31 |
IndexPoolFactory | 0x3fD4142E61688Db9671D6CcD937543517dAca916 |
WETH-DAI Cpp | 0x1Ef635cE55EaE43D62211779ac133860fcEb9886 |
Trident is designed as an extensible AMM deployment framework that allows developers to implement new pool types that conform to the IPool interface. Before launch, an EIP will be submitted for the IPool interface design to standardize pool interfaces across Ethereum. As new pool types are designed or experimented with, they can be added to Trident so long as they conform to the interface. In this way Trident will at minimum be a superset of all AMM pool designs as well as a future-proof architecture for Sushi to build on.
Initially, Trident has been developed with four primary pool types for launch:
Constant product pools are the "classic" pools that users will be most familar with. Constant product pools are a 50/50 pair pool, meaning that users first provide 50% of each of Token X and Token Y to provide liquidity. In this pool type, swaps occur over an x*y=k constant product formula.
Hybrid pools allow users to use a stableswap curve with reduced price impacts. Hybrid pools are best utilized for swapping like-kind assets. Hybrid pools are configurable to allow 2, 3, or any other amount of swappable assets.
Concentrated liquidity pools allow liquidity providers to specify a range in which to provide liquidity in terms of the ratio of Token X to Token Y. The benefit of this design is it will allow liquidity providers to more narrowly scope their liquidity provisioning to maximize swap fees.
Index pools are similar to constant product pools with the exception that they will allow different weights to be assigned to swappable assets (up to 8, currently). The advantage of this pool type is that it shifts price impacts by token weights.
All of these pools will have configurable fees that will allow liquidity providers to choose the pool that best suits their risk profile.
As a gas-saving measure, Trident further allows pool deployers to disable TWAP oracles. Architecturally, this makes the most sense for common pairs that already have accurate Chainlink price oracles.
Trident is a native application on the Sushi BentoBox vault platform. BentoBox is part of the broader Sushi infrastructure that allows users to build complex, capital-efficient applications on top. BentoBox works by storing tokens to be utilized in strategies and flash lending. Meanwhile, a virtual "share" balance tracked by BentoBox is used by applications like Trident. The yield from BentoBox strategies and flash lending are returned to users, such as liquidity providers, enabling an optimized AMM experience. Indeed, Trident will be the most capital efficient AMM in existence at launch from this DeFi-optimized design.
For instance, if a user were to place a limit order or provide liquidity for a Trident pool, the underlying tokens would be making additional yield even if no swaps were occurring.
MasterDeployer
to deploy new pools from whitelisted factories.MasterDeployer
also controls the fee percentage that goes to xSUSHI, the barFeeTo
address.MasterDeployer
has an owner
(ops multisig), that'll control these parameters.TridentRouter
is the contract that gets whitelisted in BentoBox as the master app to transfer user tokens in/out of Trident pools and BentoBox.Tines is a new routing engine designed by Sushi for the Trident front end. Tines is an efficient multihop/multiroute swap router. Tines will query Trident pool types and consider factors such as gas costs, price impacts, and graph topology to generate a best price solution.
Different asset types perform better in different pool types. For instance, like-kind assets such as wBTC and renBTC tend to perform better in hybrid pools. Tines will allow routing more effectively to make multiple pools act as a unified pool resulting in drastically reduced price impacts.
At Sushi, we believe deeply in growing the open source ecosystem of DeFi. Our Trident contract set will be GPL3. As a matter of principle, Sushi will continue to release all software that we develop or own under GPL3 or other permissive OSS licenses.
Storage Proof TWAP
FAQs
Trident is a experimental framework for building AMM's.
The npm package @sushiswap/trident receives a total of 447 weekly downloads. As such, @sushiswap/trident popularity was classified as not popular.
We found that @sushiswap/trident demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.