⚒️Implementation

When a user wants to open an order (buy or sell), they enter the order parameters (order type, token they want to buy and the one he want to sell, desired token price, and amount) and submits the transaction by signing it in the wallet (MetaMask and Wallet Connect are supported).

After the transaction is executed, TheTrade smart-contract system manages the provided assets and creates a position. The position consists of Uniswap v3 concentrated liquidity in the smallest price range. Once the market price goes up or down to the desired price, assets in the liquidity position are swapped and are available for execution of the order.

Now, any Ethereum account can get the reward by calling the execute function and finalizing the order. The smart contract gets liquidity back from Uniswap and places the desired asset, obtained at the preset price, in the user's wallet.

Last updated