DEX Fee structure

From DeFiChain-Wiki
Revision as of 21:56, 17 July 2022 by DanielZirkel (talk | contribs)

When you are swapping tokens on DeFiChain a fee is conducted. At the beginning only the part for liquidity providers - commissions - were the fee in each pool. But after successful voting on several DFIPs other fee parts were introduced for specific purposes. This article describes the current DEX fee structure on DeFiChain.

Fees

Overview

The following diagram shows the different pool swaps on DeFiChain. In general there is a commission fee for every single swap (black arrows). Additionally there is the DEX stabilizing fee (red arrow), the BTC fee (purple arrow) and the dUSD/dToken fee (blue arrow).

DeFiChain DEX swaps and fees

Commissions

The commissions fee is currently 0.2% and is deducted from the tokens users want to swap on the DEX. These tokens are distributed to the holders of the liquidity token and are part of the incentive to provide liquidity. On defiscan.live you can see the APR of each pool and with moving the mouse over the three blue dots the distribution between block rewards and commissions part is shown. High trading volume (e.g. in volatile market phases) will drive the commissions part.

Defiscan showing the APR splitted into block reward and commissions part

DEX stabilizing fee

DEX stabilizing fee calculation

dUSD/dToken fee

With introducing the DFI payback function for dUSD loans an additional fee of 0.1% in dUSD was introduced for each swap with dUSD, see DFIP-2112-A. This was the first measure to remove the dUSD after closing the corresponding loans.

With the DFIP-2203-A Futures Swaps to handle the premium and discount of the dTokens were introduced and with it a fee of 0.1% paid in the dTokens.

Both parts (in sum 0.2%) are now applied for each dUSD-dToken pool and results in an overall fee of 0.4% for a swap with dTokens. The dUSD-DFI also had the 0.1% in the beginning, but due to newer DFIPs has now a different fee structure (see DEX stabilizing fee).

BTC fee

In the first version of the Atomic-Swap on DeFiChain there was a bug and one or more users exploited it to create dBTC. Normally CakeDefi is the gateway for the crypto assets on DeFiChain and they put the native coin on a public known address of the corresponding blockchain when minting dTokens. The dBTC from this exploit were minted without a collateral and the community decided to introduce mechanisms to remove them from the system on a longer time frame. For more details have a look on the corresponding DFIP.

One part is an additional fee for using the dBTC-DFI pool. From each swap a 0.1% fee is deducted as dBTC and burned. The overall fee of this dBTC-DFI pool is: 0.3%