SwapAll introduces the external market price via the price oracle and thus changes the value weights of the pools of both cryptocurrencies in a trading pair, thereby avoiding value losses caused to the assets in the pools due to arbitrage opportunities.