Categories
General Information

DeFiChain Einstein

Today I would like to introduce you to a new community project: DeFiChain Einstein. This is a new tool developed by a group of community members to help DeFiChain investors with their investment decision.

Core functionalities

The main functionality of DeFiChain Einstein is the calculation of the Impermanent Loss impact on the return of liquidity mining investments.

For this purpose, DeFiChain Einstein provides a tool which, based on

  • the selected liquidity pool,
  • the selected investment strategy (currently in beta),
  • predicted future prices,
  • and the own time horizon,

calculates the following information:

  • Impermanent Los
  • Yield with Liquidity Mining
  • Return without liquidity mining

For this, DeFiChain Einstein uses the Ocean API to calculate current prices of tokens as well as the current APR (reward + commission).

Roadmap

According to the official roadmap of DeFiChain Einstein, the tool will be continuously developed and there will be many new functionalities in the next weeks/months.

Among others:

  • Compounding / Reinvestment (currently in beta)
  • Inclusion of reducing block rewards (currently in beta)
  • Choose between Oracle and DEX prices
  • Comparison with Staking Rewards
  • Comparison of different investment strategies
  • Comparison with different vault strategies (e.g. via vault maxi)

More information on the roadmap is made available by the team: Roadmap

How-to

DeFiChain Einstein is very simple. Just follow the steps below:

1. Just visit https://defichain-einstein.com/ (for the current beta version: https://dev.defichain-einstein.com/)

2. Choose your liquidity pool

3. Enter your predicted future prices

4. Choose your time horizon

Et voilà, DeFiChain Einstein will calculate the rest for you and show you all the information.

1. APR (Current Annual Return of the Liquidity Pool)

2. Impermanent loss

3. Actual return (Actual Return)

4. Actual return without liquidity mining

Additionally you can enter your planned investment. Then DeFiChain Einstein will also calculate your actual return based on your investment.

Please note:
The DeFiChain Einstein tool currently does not consider that the block rewards are regularly lowered, the DFI price fluctuates and it currently does not consider reinvestments. Therefore, you cannot be sure that the rewards will come in as indicated. It is therefore more of a guide or helper tool, as no one can predict future returns.

Categories
News

Solving the DUSD peg

This blog article is a copy (& translation) of the reddit article by Kügi following the results of this twitter space and a lot of previous discussions.

The current discount in DUSD is a result of excess DUSD within the DeFiChain ecosystem. DUSD was designed to NOT have an immediate arbitrage system such as UST, in order for it not to have detrimental effect on either DFI or DUSD in the long term. Those excess DUSD were added via the DFI payback (burning DFI for DUSD). Going forward, we suggest having a mathematical balance between crypto-backed DUSD and algorithmic DUSD.

This will be achieved with the following four mechanisms in a fast blockchain upgrade scheduled for the first week of July 2022:

  1. Increasing the utility of DUSD by converting interest rates for dTokens and liquidation penalties to DUSD before burning them. (right now they are swapped to DFI and then burned)
  2. Making the DUSD fee on the DUSD-DFI pair asymmetric: only when going from DUSD to DFI.
  3. Until the DEX fee and dynamic interest rates get implemented, which will be discussed in detail below, the Ticker Council will follow the same process manually. Before each update, Ticker Council pre-announce a rate that will become active at least 24 hours prior. This is similar to the mechanics of DeFiChain pricing oracles with the purpose to allow the users to react to it rather than getting a sudden rate change without warning.
  4. Until the DFI-FutureSwap is part of the automatic consensus (see below), the DFI payback premium is increased to 5%, which incentivises arbitrage traders to buy up the discount all the way. This will also lead to less algorithmic DUSD created.

All four measures could be introduced rapidly within the next few weeks and would have an instant positive impact on the DUSD price

The next three will take a bit more development time, as they will automate the dynamic processes mentioned above. They could get included in a blockchain upgrade a bit further down the line. There is no fundamental change to the processes described above, they are just implemented for automation:

  1. Introducing a dynamic, DEX stabilization fee for DUSD on the DUSD-DFI pair. The size of the fee is determined by the ratio of algorithmic DUSD to the total amount of outstanding DUSD.
  2. Dynamic interest rates on DUSD loans, based on the current discount/premium of DUSD, evaluated with the DFI price oracle.
  3. Introducing FutureSwaps for DFI -> DUSD (only one way: burning DFI for DUSD). Same mechanics as the dToken FutureSwap, but the DFI FutureSwap works at 1% premium and is executed every 960 blocks (roughly 8 hours). With this, the DFI payback of DUSD loans is deactivated completely.

We will create separate DFIPs for each point (except point 3, which doesn’t need a DFIP) so MNs can vote on them separately.

DUSD loan interest rate

In case of a DUSD premium, reduced interest rates should incentivize additional DUSD loans. With a minimum base-interest rate of 5%, a DUSD interest rate of -5% means netto 0% interest. It is to be noted that if a vault is on a loan scheme with 3%, and the DUSD interest rate is -5%, the DUSD loan is interest free, i.e. 0%, but not negative interest rate. Net interest rate is always >= 0%.

In case of a DUSD discount, increased interest rate will incentivize DUSD loans to be closed.

The interest rate will be adjusted every 2880 blocks (~24 hours) based on the moving average of the DUSD price.

Calculation of the interest rate should follow the following formula:

Let DUSD_DEX_price = (DFI reserve at DFI-DUSD DEX pool / DUSD reserve at DFI-DUSD DEX pool) * active oracle DFI price
Let COEFFICIENT_DISCOUNT = 500
Let COEFFICIENT_PREMIUM = 3.4

If DUSD_DEX_price < 0.99
   DUSD loan interest rate = (COEFFICIENT_DISCOUNT ^ (0.99 - DUSD_DEX_price)) - 1
Else If DUSD_DEX_price < 1.01
   DUSD loan interest rate = 0
Else If DUSD_DEX_price < 1.05
   DUSD loan interest rate = 1 - (COEFFICIENT_PREMIUM ^ (DUSD_DEX_price - 1.01))
Else
   DUSD loan interest rate = -0.05

Sample rates:

  • DUSD_DEX_price 1.05 results in -5%
  • DUSD_DEX_price 1.04 results in -3.7%
  • DUSD_DEX_price 1.03 results in -2.4%
  • DUSD_DEX_price 1.02 results in -1.2%
  • DUSD_DEX_price 1.01 results in 0%
  • DUSD_DEX_price 0.99 results in 0%
  • DUSD_DEX_price 0.98 results in 6.4%
  • DUSD_DEX_price 0.97 results in 13.2%
  • DUSD_DEX_price 0.95 results in 28.2%
  • DUSD_DEX_price 0.90 results in 74.9%
  • DUSD_DEX_price 0.80 results in 225.6%
  • DUSD_DEX_price 0.70 results in 500.6%

DEX stabilization fee

The stabilization fee is based on the ratio of algorithmically created DUSD. It is changed every 2880 blocks (~24 hours) based on the moving average of this ratio.

If the ratio is below 50%, there is no additional DEX stabilization fee.

Above 50%, the fee increases exponentially according to the following formula

Let ALGO_DUSD_RATIO = 1 - (Loan DUSD / total DUSD supply)
Let COEFFICIENT = 1.8
If ALGO_DUSD_RATIO > 0.5
   DEX stabilization fee = (COEFFICIENT ^ (ALGO_DUSD_RATIO - 0.5)) - 1
Else
   DEX stabilization fee = 0% 

sample results:

  • When ALGO_DUSD_RATIO is 0.5, DEX stabilization fee is 0%
  • When ALGO_DUSD_RATIO is 0.51, DEX stabilization fee is 0.59%
  • When ALGO_DUSD_RATIO is 0.52, DEX stabilization fee is 1.18%
  • When ALGO_DUSD_RATIO is 0.55, DEX stabilization fee is 2.98%
  • When ALGO_DUSD_RATIO is 0.60, DEX stabilization fee is 6.05%
  • When ALGO_DUSD_RATIO is 0.65, DEX stabilization fee is 9.21%
  • When ALGO_DUSD_RATIO is 0.75, DEX stabilization fee is 15.8%
  • When ALGO_DUSD_RATIO is 0.90, DEX stabilization fee is 26.5%

How the DFIPs turned out

summarized by U-Zyn Chua on 6/23/22, explaining:

Special voting round of @defichain DUSD proposals has concluded with 6 passing proposals.

The node release supporting the upgrade is scheduled over the new few days, which means @defichain will be able to support approved $DUSD by early July with a minor upgrade.

The Ticker Council would reiterate that:

  • There are no DEX fee changes before the upgrade;
  • Fee changes before DUSD is at $1 will be gradual;
  • That there are no raising of DUSD loan interest rates until DUSD is at $1.
Categories
News

How Will The AMZN Stock Split Affect DeFiChain Users

Early in March, AMZN announced a 20-for-1 stock split. Though it will ultimately take place on 3 June 2022, it has already sent the stock on a rally not seen in recent months. In theory this should not happen, because a split doesn’t affect a company’s business fundamentals. Yet such splits often cause day traders to pile in, fueling rallies like these.

However, there is no change in the fundamentals that would justify such an increase, rather, the only thing that will happen is that each shareholder of AMZN in the traditional stock market will receive 20 shares for every 1 share of AMZN they currently own.

The distribution from the stock split will take place at the close of business on Friday, 3 June 2022, and trading will begin on the split-adjusted basis on Monday, 6 June 2022, at 9.30 am ET (1.30 pm UTC).

How does this affect dAMZN on DeFiChain?

Since the minting of dAMZN is dependent on the price oracles of AMZN, a split without an adjustment on DeFiChain’s side would cause severe issues causing dAMZN tokens that were previously minted at a different price to be evaluated at a new price as a result of the updated oracles. As such, it would be sensible to also have dAMZN split in accordance with AMZN.

These are the key changes DeFiChain users will observe as a result of the stock split:

  • dAMZN token owners will have 20 tokens for every 1 token they own before the split
  • Updated price from oracles
  • Updated dAMZN Token ID: A new token ID will be assigned to the post-split dAMZN token. (If you are not familiar with this attribute, it likely will not affect you)

These changes are primarily implemented on the consensus layer, and little needs to be done by users of DeFiChain.

How will the stock split be executed on DeFiChain?

In order to implement this adjustment as smoothly as possible, DeFiChain will take the following steps: DEX, vaults and systems interacting with dAMZN will undergo a process called the lock, which is a mechanism meant to serve as protection from any unstable prices from the oracles during the transition period. The lock will last 3 hours before the split and 3 hours after the split. After the lock is lifted, vaults will be halted for 1 hour before they become operational again. This halt is in accordance with our protocol and serves as a safety mechanism for DeFiChain users.

As this is the first stock split event encountered on DeFiChain, the 6-hour lock period serves as a conservative buffer. Once the community gains a better understanding of how oracles would behave in such events, the lock period can be shortened in the future. 

To understand the technical design behind the stock split, you may also watch the May 2022 Tech Talk episode:

Summary

Due to the upcoming AMZN stock split, DeFiChain’s dAMZN token has to be adjusted and such as split as well. As a result, DEX users will experience a 6-hour lock, 3 hours before and after the stock split. During this time, it will not be possible to interact with dAMZN at all.

Please be also aware of the fact that dAMZN vault owners will experience an additional 1-hour halt on top of the 6 hour lock period.

However, there are no actions required on the users’ part, except to take note of the 3-hour lock window before and after the stock split (6 hours in total, and an additional hour for dAMZN vault owners).

Categories
General Information

DFI.tax

In this blog post we would like to present the tool DFI.tax , which offers both a graphical overview of your own assets and support for tax purposes.

With DFI.tax, Martin Schmeisser has developed a website that DeFiChain users can use to clearly analyze their rewards from liquidity mining and staking, for example for tax returns. The rewards received can be filtered by periods, pools or tokens. Furthermore, a graphic and analogue overview of all existing assets and rewards is given. In the latest function , which is currently still in beta, users can also track individual transactions including their value. This includes sending, receiving, adding and removing liquidity, swaps and many more.

To start, one or more wallet addresses must first be inserted using the gear wheel in the top right corner. It is possible to analyze these at the same time and show or hide them at will. At this point it is also possible to switch between German and English and change the currency display.

After successfully entering wallet addresses, an overview of the current assets and the rewards received so far can be called up via the ” Rewards ” menu item. Numerous setting options for the display are possible. Liquidity tokens can be removed from the display via LPs & UTXOs. “Show Value” is used to set whether the actual number of tokens or the monetary value should be displayed. The graphically displayed blocks can be removed or displayed via “Show Debit” and “Show Credit”.

Rewards and commissions received so far can be seen in the lower area. These can be filtered and aggregated according to different time periods (daily to annually). Furthermore, the rewards can also be displayed depending on the pool or token. A particularly important function is exporting: the rewards displayed can be exported as a CSV file and can therefore be used to support tax returns.

In the next menu item “ Diagram ”, the rewards shown here can also be displayed graphically as a bar chart. Here, too, adjustments can be made according to time periods, pools or tokens.

The next menu item ” History ” is currently still in beta, but can already be used. All transactions made by the wallet addresses can be displayed here. This includes, for example, sending, receiving, adding or removing liquidity, swaps and many more. The display of transaction types can be (de)activated as you wish. The respective transaction value is displayed in the cryptocurrency used, as well as the monetary equivalent and the transaction fees paid. The data is taken directly from the blockchain and each transaction is also linked to DeFiScan. Here, too, the data can be exported as a CSV file and processed further.

DFI.tax is therefore a helpful tool to get a graphic and analogue overview of your own assets and income. It also offers the important feature of sorting rewards and transactions into different time periods, which can then be exported as a CSV file and used to support tax purposes.

Categories
General Information

DeFiChain-Income.com

In this blog post we would like to introduce the tool defichain-income.com , which is intended to make using DeFiChain even easier and provide detailed overviews of your own assets.

Igor Shelkovenkov offers several tools on his website to get a better overview of your own assets at DefiChain. The website is open-source and the code can be accessed at any time via Github . There are also 6 different languages available (DE, NL, EN, RU, ES, FR) and numerous different currency displays. The functions offered include a dashboard , an overview of all your own assets and liabilities, an income calculator including forecasts , an overview of the price development of DFI, various DeFiChain statistics and trading views and other calculators . In order to be able to use the functions, you must first enter your own wallet address in the settings at the bottom left.

After successful entry, a small overview of current stocks is displayed on the right-hand side. In the settings you can also decide whether the data is retrieved live via the wallet or whether you prefer to enter the stocks manually without a wallet. Furthermore, the refresh period can be used to decide how often the data is updated.

Investments in liquidity pools, staking and other stocks can be displayed graphically and analogously via the dashboard (home button top left). In addition, it is also calculated how high the respective income is over certain periods of time (minutes to a year). The stocks and income rates displayed can also be displayed in more detail in the functions below and broken down into the income of the individual pools.

In the next step, various forecasts for your own payouts can be created. Various periods of time and the frequency of reinvesting can be selected. The orange bar shows the monthly earnings in DFI if reinvested and the light blue bar if no reinvestments are made.

The four other functions can be used independently of your own wallet. This includes trading charts on the various cryptocurrencies and derivatives offered on DeFiChain. Furthermore, various statistics such as the respective trading volume, total value locked, respective reward rates and much more can be displayed. Finally, a calculator is also available in which fictitious calculations for staking or liquidity mining can be carried out.

DeFiChain-income therefore offers numerous functions with which various overviews of your own assets can be displayed and, above all, the forecast development of the rewards can be calculated. In addition, the website bundles other practical functions such as various calculators and trading charts in one place.