External Routers

Generally most operations can be carried out by directly interacting with the single DEX contract, obviating the need for the typical router contracts seen in most AMM designs.

However Ambient does support the ability for users to approve external contracts to call operations on their behalf. This is useful for cases where a user wants bespoke logic, or wants to use Ambient through another protocol.

Users can approve an external contract address to call Ambient on their behalf for a fixed or unlimited number of times. Users should be very careful before approving any router contract, as it can execute arbitrary logic, including taking their positions on its own behalf.

Last updated