EcosystemNFTsDocs

Footer

Xchange

  • Swap
  • Liquidity
  • Loans
  • Fund
  • Vote

Tokens

  • X7R
  • X7DAO
  • X7D
  • X7101-X7105

Explore

  • Dashboard
  • Guides
  • Integration
  • Whitepaper
  • Breakdowns
  • Onchains
  • FAQs

Community

  • Telegram
  • Twitter
  • Discord
  • Warpcast
  • Blog
  • Links

Permissionless Trustless Decentralized Exchange

Launch your project on Xchange with 10-1000x the initial liquidity across multiple blockchains where anyone can Swap, Borrow and Lend!

X7 Finance·Trust No One. Trust Code. Long Live DeFi.
  • Telegram
  • Twitter
  • Discordś
  • Warpcast
  • YouTube
  • Reddit
  • GitHub
  • Pioneer 1488 avatar
    Guides
    View
  • Pioneer 1488 avatar
    Integration
    View
  • Pioneer 1488 avatar
    Whitepaper
    View
  • Pioneer 1488 avatar
    Breakdowns
    View
  • Pioneer 1488 avatar
    Onchains
    View
  • Pioneer 1488 avatar
    FAQ
    View
    • May-18-2024-080623-AM
    • April-15-2024-070347-AM
    • April-07-2024-013611-PM
    • March-25-2024-045347-PM
    • March-20-2024-020435-AM
    • March-10-2024-050447-AM
    • February-27-2024-111935-PM
    • February-23-2024-085159-PM
    • February-23-2024-083311-PM
    • February-23-2024-074011-PM
    • February-13-2024-0149593-AM
    • February-04-2024-031823-PM
    • January-25-2024-025835-AM
    • January-21-2024-055723-AM
    • January-14-2024-110859-PM
    • December-26-2023-090211-PM
    • December-05-2023-104859-PM
    • November-12-2023-033035-PM
    • November-03-2023-120747-AM
    • October-03-2023-052223-PM
    • September-15-2023-044847-AM
    • September-11-2023-100047-AM
    • September-08-2023-022611-AM
    • September-07-2023-125311-AM
    • September-06-2023-043559-PM
    • September-02-2023-034947-AM
    • August-31-2023-020635-PM
    • August-28-2023-103547-PM
    • August-26-2023-083147-PM
    • August-19-2023-100235-PM
    • August-13-2023-103311-PM
    • August-06-2023-123823-AM
    • August-01-2023-041247-AM
    • July-27-2023-020811-AM
    • July-25-2023-085411-AM
    • July-18-2023-102623-AM
    • July-11-2023-072359-AM
    • July-04-2023-074259-AM
    • June-27-2023-072459-AM
    • June-20-2023-092011-AM
    • June-13-2023-061835-AM
    • June-11-2023-052123-AM
    • June-06-2023-035847-AM
    • June-03-2023-015859-PM
    • June-03-2023-053759-AM
    • June-03-2023-081923-AM
    • June-03-2023-025411-AM
    • May-31-2023-035947-AM
    • May-30-2023-040547-AM
    • May-27-2023-033723-AM
    • May-25-2023-100159-PM
    • May-23-2023-030459-AM
    • May-17-2023-023435-AM
    • May-16-2023-065259-AM
    • May-09-2023-064923-AM
    • May-02-2023-054111-AM
    • Apr-25-2023-042347-AM
    • Apr-21-2023-073111-PM
    • Mar-29-2023-072323-PM
    • Mar-21-2023-052747-PM
    • Mar-02-2023-093223-PM
    • Feb-10-2023-094459-PM
    • Feb-10-2023-013535-AM
    • Feb-09-2023-104147-PM
    • Feb-06-2023-100135-PM
    • Feb-03-2023-064611-PM
    • Feb-02-2023-112347-PM
    • Feb-02-2023-100135-PM
    • Feb-01-2023-073047-AM
    • Feb-01-2023-035835-PM
    • Jan-31-2023-063823-PM
    • Jan-29-2023-092159-PM
    • Jan-27-2023-073311-PM
    • Jan-26-2023-085811-PM
    • Jan-24-2023-112311-PM
    • Jan-19-2023-085835-PM
    • Jan-16-2023-012223-PM
    • Jan-10-2023-055123-AM
    • Jan-03-2023-053423-AM
    • Jan-02-2023-105811-PM
    • Dec-30-2022-115323-PM
    • Dec-16-2022-123223-AM
    • Dec-14-2022-065059-PM
    • Dec-06-2022-081159-AM
    • Dec-02-2022-034459-AM
    • Nov-11-2022-011811-AM
    • Nov-10-2022-033259-AM
    • Nov-09-2022-071947-PM
    • Nov-08-2022-100935-PM
    • Nov-08-2022-012623-AM
    • Oct-31-2022-064923-AM
    • Oct-22-2022-061011-AM
    • Oct-16-2022-055223-PM
    • Oct-14-2022-061747-PM
    • Oct-13-2022-075135-AM
    • Oct-07-2022-100759-PM
    • Oct-06-2022-084123-AM
    • Oct-03-2022-072111-AM
    • Oct-01-2022-070111-AM
    • Sep-29-2022-125135-PM
    • Sep-28-2022-090211-AM
    • Sep-28-2022-050511-AM
    • Sep-28-2022-020547-AM
    • Sep-27-2022-021523-PM
    • Sep-27-2022-035535-AM
    • Sep-26-2022-092347-PM
    • Sep-26-2022-044647-PM
    • Sep-26-2022-033035-AM
    • Sep-26-2022-023011-AM
    • Sep-25-2022-035347-AM
    • Sep-24-2022-093123-PM
    • Sep-24-2022-103711-AM
    • Sep-24-2022-023335-AM
    • Sep-22-2022-090935-PM
    • Sep-19-2022-080259-AM
    • Sep-13-2022-105207-AM
    • Sep-12-2022-095341-AM
    • Sep-07-2022-082157-AM
    • Sep-04-2022-083900-AM
    • Sep-01-2022-051839-AM
    • Aug-31-2022-092227-PM
    • Aug-31-2022-055456-AM
    • Aug-30-2022-032405-AM
    • Aug-29-2022-044830-PM
    • Aug-29-2022-114635-AM
    • Aug-28-2022-020448-AM
    • Aug-26-2022-091751-PM
    • Aug-25-2022-104049-PM
    • Aug-25-2022-045900-AM
    • Aug-24-2022-043226-AM
    • Aug-24-2022-030749-AM
    • Aug-23-2022-062730-PM
    • Aug-22-2022-092218-AM
    • Aug-21-2022-072625-AM
    • Aug-19-2022-073411-PM
September 2022
on-chains

sep-29-2022 12:51:35 pm utc

https://etherscan.io/tx/0x0060c02e3cfaeaae10d762b9b22c8dacb8fc41f999afb4f6f0329e3da8e51319

A quick note on the migration math.

The goals of the migration were threefold:

  1. Upgrade to an improved token contract that would work as well at a market cap 10, 100, etc. times as large.\
  2. Merge X7m105 and X7 Protocol into a single token to reduce complexity and concentrate interest.\
  3. Improve the liquidity in each token's uniswap pair.

Goal (3) needed to be accomplished while the value of held tokens remained constant.

In math terms, this translated to ensuring that the following was equal in both old and new tokens:

held tokens price

(tokenSupply - pairTokenReserve) * pairETHReserve / pairTokenReserve = "held token" value

After we had harvested liquidity from the v1 tokens the "knowns" were:

1. v1 uniswap pair token reserve
2. v1 uniswap pair ETH reserve
3. v2 available ETH reserve
4. v1 and v2 token supply

We have only one "unknown" in the above equation - v2 uniswap pair token reserve.

We solved for this by solving for the unknown in the below equation:

oldHeldTokenValue = newHeldTokenValue

The three relevant functions for doing so in the X7V1toV2Migration contract are:

_getNewDAOReserves _getNewX7RReserves _getNewConstellationReserves

The newly calculated v2 token reserve would result in:

1. increased token AND ETH liquidity in the uniswap pairs.
2. price increase and held v2 token reduction to leave each investor whole, in terms of value.

There was additional complexity due to the token merge and due to the 'non-circulating' X7000/X7100 tokens, but the method remained essentially the same.

With the new token reserve calculated, and therefore the new token price, the equation to determine the v2 token airdrop amount is:

old tokens x old price = new tokens x new price

This equation guarentees one's v1 token holdings are value-equivalent to v2 token holdings.

You can see this equation used in the X7V1toV2Migration contract:

_airdropWalletTokens _airdropMigrationTokens

This increased liquidity came with reduced price slippage and an increase in supply to make room for new investors (at this higher initial price point).

Previous
← Oct-01-2022-070111-AM
Next
Sep-28-2022-090211-AM →

-

  • Pioneer 1488 avatar
    Guides
    View
  • Pioneer 1488 avatar
    Integration
    View
  • Pioneer 1488 avatar
    Whitepaper
    View
  • Pioneer 1488 avatar
    Breakdowns
    View
  • Pioneer 1488 avatar
    Onchains
    View
  • Pioneer 1488 avatar
    FAQ
    View