Arbitrageurs Guide

Scenario A: Swapping within Beta Region where price of stablecoin in other pools are higher than that in our FxPool

In scenario A, arbitrageurs can gauge the maximum amount that they can trade such that the stablecoin will not face any price slippage thereby allowing for more accurate estimation of the profits they can gain.

MaximumBetaRegion=1000000βˆ—(1+0.48)βˆ—0.5=740000MaximumBetaRegion = 1 000 000 *(1+0.48)*0.5 = 740 000

Given that the initial state of the reserves is 50:50, this implies that there is 500 000 USD worth of each stablecoin in the liquidity pool. This means that the maximum amount that can be swapped such that the price of the stablecoin will follow the existing price oracle will be 240 000.

Let's assume that in this scenario the Price of XSGD on UniSwap = 0.72

This means that arbitrageurs can swap out 240 000 USDC to 342,857.142857 XSGD in our FXPool and swap out 342,857.142857 XSGD to 246,857.1428571429 USDC in the UniSwap pools thereby allowing an arbitrageur to earn a profit of 6,857.1428571429 USDC.

Scenario B: Swapping within Beta Region where price of stablecoin in other pools are lower than that in our FXPool

Using the same understanding in Scenario A, there is still an arbitrage opportunity that can be extracted when trading within the Beta Region of the FXPool.

Given that the initial state of the reserves is 50:50, this implies that there is 500 000 USD worth of each stablecoin in the liquidity pool. This means that the maximum amount that can be swapped such that the price of the stablecoin will follow the existing price oracle will be 240 000. Let's assume that in this scenario the Price of XSGD on UniSwap = 0.68

This means that arbitrageurs can swap out 233,142.8571428571 USDC to 342,857.1428571429 XSGD in the UniSwap pools and swap out 342,857.1428571429 XSGD to 240 000 USDC in our FXPools thereby allowing an arbitrageur to earn a profit of 6,857.1428571429 USDC.

Scenario C: Swapping towards the Beta Region where price of stablecoin in other pools are higher than that in our FxPool

This scenario is likely to occur given the limited liquidity of XSGD tokens that exists in other AMMs which results in holders of XSGD being subjected to a natural tendency to swap XSGD to USDC even if the price of the asset in the AMM is lower than the value of the underlying asset. Nonetheless, in this scenario, our AMM will encourage arbitrageurs to trade back to the Beta Region where the FX AMM respects the chainlink oracle price of SGD for the underlying XSGD stablecoin.

For instance, swapping out 300,000 USDC in our FXPool will enable arbitrageurs to earn 301,562.74610586700 USD worth of XSGD. This means that arbitrageurs will earn 1,562.74610586700 USD worth of profits.

Furthermore, given that the price of XSGD in other pools is higher than that of our FXPool, arbitrageurs can maximise their profits by swapping their XSGD to USDC.

For instance, let's assume that the price of XSGD:USDC is 0.72, the XSGD received from trading towards the Beta Region can be swapped out for 310,178.8245660346 USDC thereby resulting in an overall profit of 10,432.2386383925 USDC. Scenario D: Swapping towards the Beta Region where price of stablecoin in other pools are lower than that in our FXPool

Similar to Scenario C, in this scenario, our AMM will reward arbitrageurs to trade back towards the Beta Region where the FX AMM follows the the chainlink oracle price of the SGD for the underlying XSGD stablecoin.

For instance, swapping out 300,000 USD worth of XSGD in our FXPool will enable arbitrageurs to earn 301,562.74610586700 USDC. This means that arbitrageurs will earn 1,562.74610586700 USD worth of profits.

Furthermore, given that the price of XSGD is higher in other pools as compared to the FXPool, arbitrageurs can maximise their profits by swapping their XSGD to USDC.

For instance, let’s assume that the price of XSGD:USDC is 0.68, the USDC received from trading towards the Beta Region can be swapped for 310,432.2386383925 USD worth of XSGD thereby resulting in an overall profit of 10,432.2386383925 USD worth of XSGD.

Last updated

Change request #104: