XFai is a decentralized oracle service provider that aims to address liquidity and gas issues in decentralised exchanges (DEXs) through a so-called DEX Liquidity Oracle which will revolutionise cryptocurrency trading whilst reducing gas fees.
If you are a regular DEX trader, you might notice that there are times when you can’t complete trades. This happens often with small-cap tokens that do not have enough liquidity. In this case, traders have two options, either to wait it out until there’s enough liquidity or to increase price slippage tolerance. But either way, it can result in huge losses on the part of a small-cap token holder.
XFai wants to address this problem by empowering DEXs with liquidity that can be supplied to small-cap tokens. This equalizes the playing field for every single trader, allowing them to execute their strategy without having to shoulder massive costs just because a DEX might not have enough liquidity on any particular trading pair.
Check out our interview with XFai’s Chief Scientist, Taulant Ramabaja.
The problem with many DEXs today is liquidity. While liquidity pools and profit-generating DeFi systems like yield farming have offered revolutionary solutions in the last year or so, DEXes still face this concern. This leaves many traders vulnerable to huge price slippages and losses. And if the issue persists, cryptocurrency traders might be discouraged and go back to trading mostly on centralized exchanges despite having less options.
This is what XFai worked is trying to solve.
XFai, which was co-founded by Geoffrey Khan, was developed in order to deal with the problems hounding DeFi markets today. It has gained a substantial amount of support, garnering investments from companies like AU21 Capital, LD Capital, and Roger Ver, one of the earliest adopters of blockchain technology and the CEO of Bitcoin.com. It is also worth mentioning that they were able to generate over $3.8 million within the first 12 hours of their private sale.
What is XFai?
XFai is a decentralized oracle service provider with the aim of addressing liquidity and gas issues in DEXs through a DEX Liquidity Oracle (DLO). This means that the protocol’s role is not only limited to supplying data to price feeds and engaging with smart contracts, but is also capable of actively providing and managing token liquidity in partner DEXs such as Uniswap.
The primary goal of the project is to support small cap tokens and token holders by establishing a system that helps them earn better rewards. In other words, the project seeks to help them gain as much in incentives as they can, just like how a holder of a large cap token does.
DEX Liquidity Oracle
XFai’s DLO is powered by the XFai smart contract, which allows users to stake small cap tokens that can later be supplied to Uniswap pools according to corresponding price ranges and existing orders. The biggest trades facilitated on Uniswap exchanges will be provided with the liquidity collected from the DLO.
This does not just benefit large volume trades for small cap tokens, but also those who supply liquidity on the same tokens. They receive rewards when they do so as well. The good thing about DLO is that it does not require liquidity providers to supply all the assets supported in a liquidity pool. They can choose to simply supply a single token in a pool, which also mitigates the risks of impermanent loss on their end.
What supports this function further is its real-time price feed from centralized exchanges. Furthermore, the liquidity from the DLO is easily accessible to DEXs, addressing the issue on price slippage. This is exactly the goal of the XFai team, to support the current DEXs in the market and not to present itself as a competitor.
How Does XFai Work?
First, the user has to add tokens on the DLO liquidity vault/pool. The DLO is governed by a smart contract that also sends the tokens to partner DEXes when liquidity is needed. Note that users do not need to supply multiple assets at a time anymore, thereby reducing their exposure.
Second, the DLO looks into the data from existing order books from other exchanges to determine existing prices and trading volume. Then, it comes up with a synthetic curve which they will use in order to pair DLO liquidity with partner DEXs.
Then, there is a smart contract that governs how and when liquidity is supplied to a DEX using the synthetic curve. The goal of the contract is to ensure that enough liquidity is met by AMMs in order to avoid price slippage while allowing small cap token holders to supply liquidity without incurring impermanent loss.
XFIT token is XFai’s native, utility token, which can be used as a medium of exchange, store of value, and means of payment for transaction fees. But more than that, it also has governance and reward functions. Liquidity farming is accessible in XFIT and all other DLO pairs.
To start liquidity mining, holders can stake their tokens in select pools to earn proportional rewards. Each time the DLO profits from the trades conducted by its platform users, token holders earn additional XFIT. They can either redeem XFIT tokens to be later sold to the market, or they can decide to return their rewards back to liquidity pools in order to increase their stake position.
In addition, XFIT token holders are also entitled to discounts on transaction fees if they use XFIT. They can also make direct swaps from XFIT to any other token in the protocol as long as they are supported by the DLO.
XFai Liquidity Generation Event: How to stake XFIT
The XFai liquidity generation event is a way to allow users to become involved with XFai’s XFIT token early, and stake them in the liquidity pool in order to earn increased, sustained yield throughout the launch period.
To participate, users can go on the XFai website and click on “Farm”, then choose your preferred pool. Note that the APY is synced for all pools so they earn the same amount of APY as each other. Then click “Connect Wallet” to connect using MetaMask, once connected the dashboard will automatically calculate how much XFIT you can purchase with the amount in your wallet. Select the amount you want to stake and hit “Farm”.
Whilst farming, you have the option to either Add to Farm, which allows you to increase your stake or Harvest, which allows you to claim your XIFT rewards.
To claim your rewards, click “Harvest” and you would be presented with the option to Harvest XFIT or Harvest XFIT and unstake. Harvest XFIT allows you to claim the XFIT tokens gained into your wallet whilst keeping the staked amount in the liquidity pool to keep farming more XIFT rewards. On the other hand, Harvest XFIT and unstake means you can claim your XFIT rewards and unstake the staked amount (or any part of it) from the pool.
The XFai LGE will be from 16th April to 7 May 2021.
For a full guide on how to farm XFIT, click here.
Perhaps one of the largest factors that stop people from completely shifting their cryptocurrency trading activities to DEXs is the liquidity problem, apart from the fees. It is difficult to execute trades with low liquidity and even if they often do, sometimes, it takes multiple slippage tolerance adjustments before a trade gets to be completed.
While this can look trivial for some people, this is something that can’t be neglected. If XFai takes off, the DeFi space might experience a better market situation. If traders do not have to be burdened by price slippages and if liquidity further improves through the same solutions the XFai team did, DEXs can be even more alluring to everyone, which would help speed up adoption.