with the Brokerbot Router, an integration of the Uniswap V3 Router interface
There are two ways to trade (buy&sell) share tokens:
Direct trade of base currency and share token (single swap)
Multihop trade between ERC20/ETH and share token with a trading path (multihop swap)
These trades all use the functions and structs from the ISwapRouterarrow-up-right interface from Uniswap.
Source for the smart contract of the different tradesarrow-up-right
Source for a runnable script to call the example trades contractarrow-up-right
Last updated 2 years ago