TrenRouter
The TrenRouter facilitates the routing of assets through Automated Market Makers (AMMs) by leveraging advanced aggregation and optimization techniques to ensure users achieve the best possible outcomes in their transactions. When users or liquidators need to swap assets, the TrenRouter aggregates data from a variety of decentralized exchanges (DEXs), minimizing slippage and maximizing the value received from each swap. Additionally, it handles the unwrapping of tokens to ensure they can be swapped seamlessly.
Liquidators can call any AMM to facilitate swapping collateral to trenUSD to cover the debt of a TrenBox. The TrenRouter automates this process for the liquidator by aggregating data from various DEXs to find the most profitable route for liquidating collateral.
The TrenRouter is also used for flash borrows (leverage), providing users with optimal pricing and frontrunning protection by aggregating different exchanges to swap their trenUSD for collateral efficiently.
Last updated