๐Swaps
Last updated
Last updated
LemmaSwap utilizes the USDL and synthetic token collateral pools to execute swaps. For example, letโs say a user wants to swap ETH for BTC, and LemmaSwap has spot BTC on its synthetic BTC (BTC*) balance sheet. The following steps would be executed atomically:
The userโs ETH would be sent to a perpetual futures DEX
LemmaSwap would increase the ETH short perpetual position backing USDL by the exact amount of ETH deposited
LemmaSwap would increase the BTC long perpetual position backing BTC* by the exact USD amount by which it increased the ETH short
The freed up spot BTC collateral would be sent back to the user
The USD value of the collateral backing USDL and the synthetic tokens stays constant, but the distribution of the spot assets changes. In the chart below, we illustrate a user swapping ETH for BTC. hETH stands for โhedged ETHโ and represents a long spot ETH + short ETH futures position.
If a user wants to buy more assets than USDL has on its balance sheet, LemmaSwap will reroute the unfilled part of the order to an aggregator.
Eg. If a user wants to buy 50 million USD worth of BTC but USDL only has 30 million USD worth of hedged BTC on its balance sheet, then the first 30 million USD worth of the order will be filled and the remaining 20 million USD will be rerouted to a spot DEX aggregator.
LemmaSwap will initially charge a 0.3% โfeeโ on every trade.