<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Evgeny Lyandres on Medium]]></title>
        <description><![CDATA[Stories by Evgeny Lyandres on Medium]]></description>
        <link>https://medium.com/@evgeny_lyandres?source=rss-968cb14eb602------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hLxn5tl_1ElyxvYRRUA8gA.jpeg</url>
            <title>Stories by Evgeny Lyandres on Medium</title>
            <link>https://medium.com/@evgeny_lyandres?source=rss-968cb14eb602------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 07:13:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@evgeny_lyandres/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How VirtuSwap reimagines DEXes — part I]]></title>
            <link>https://medium.com/@evgeny_lyandres/how-virtuswap-reimagines-dexes-part-i-28066c69acb1?source=rss-968cb14eb602------2</link>
            <guid isPermaLink="false">https://medium.com/p/28066c69acb1</guid>
            <dc:creator><![CDATA[Evgeny Lyandres]]></dc:creator>
            <pubDate>Mon, 20 Mar 2023 09:18:27 GMT</pubDate>
            <atom:updated>2023-03-20T09:18:27.981Z</atom:updated>
            <content:encoded><![CDATA[<h3>How VirtuSwap reimagines DEXes — part I</h3><p>In our previous <a href="https://medium.com/virtuswap/why-the-dex-world-is-broken-8d3958a01bab">article</a>, we illustrated a significant inefficiency plaguing existing DEXes — a large fraction of trades is indirect (“triangular”) due to lack of native liquidity pools of sufficient size — leading to unnecessarily high costs of trading (duplicate fees, price impact, and gas). These excessive costs are of tremendous magnitude — around $500M in our estimation were wasted over the past 12 months just on Uniswap and its forks.</p><p>In this article, we explain how Virtuswap mitigates this problem. In one sentence, VirtuSwap uses a novel pool architecture, based on reserve-powered virtual liquidity pools, which solve the problem of triangular trading by making every trade direct — even in the absence of a corresponding pool, and generates up to 50% savings.</p><p><strong>How VirtuSwap works</strong></p><p>Let’s come back to our hypothetical example of a triangular trade. As in our previous <a href="https://medium.com/virtuswap/why-the-dex-world-is-broken-8d3958a01bab">article</a>, assume that a user would like to buy MATIC and to sell USDC — however, the native MATIC-USDC pool does not exist. Pools WETH-MATIC and WETH-USDC do exist, leading to a triangular trade on a typical DEX, as illustrated in Figure 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*dabyaOEYJcRov-gpOi6ddw.png" /></figure><p>Figure 1: Illustration of a triangular trade</p><p>A crucial difference between VirtuSwap and all other DEXes is that on VirtuSwap, in addition to two “main assets”, every pool allows accepting “reserves” of other assets. Think of several safe deposit boxes attached to the pool — each allowed to hold one particular asset — but which are empty at first, when the pool is established. For example, the WETH-MATIC pool can accept reserves of USDC, USDT, DAI, and WBTC, and WETH-USDC pool can accept reserves of USDT, DAI, WBTC, and MATIC. (These lists are just for the sake of an example; in reality pools can accept and hold reserves of many more assets.) Figure 2 describes the virtual-pool-based architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*o01Zm6K0ek0uDmJMX6CTRw.png" /></figure><p>Figure 2: VirtuSwap pool architecture</p><p>So now, when our trader wants to swap USDC for MATIC, she goes to the WETH-MATIC pool (i.e. the pool that contains the asset she wishes to acquire) and just deposits her USDC as a reserve (i.e. to the appropriate safe deposit box) of the WETH-MATIC pool.</p><p>Reserves are kept in the pools for a limited amount of time, exchanged back for the pool’s native assets from other pools’ reserves (more on that in the following articles).</p><p><strong>Example of a trade on VirtuSwap</strong></p><p>How do we know the price (or, more precisely, the AMM trading curve) based on which the trader will receive MATIC in exchange for USDC sent to the WETH-MATIC pool? Let’s go over an example using concrete numbers.</p><p>Assume that WETH-USDC pool contains 1,000 ETH and 1,000,000 USDC, and WETH-MATIC pool contains 500 WETH and 1,000,000 MATIC. Assume that the trader wishes to acquire MATIC for 10,000 USDC.</p><p>On Uniswap, this trade would amount to sending 10,000 USDC to the WETH-USDC pool, receiving 9.871 WETH based on the <a href="https://medium.com/scalar-capital/uniswap-a-unique-exchange-f4ef44f807bf">constant product formula</a> used in Uniswap (after paying the 0.3% pool fee and around 1% price impact); and then sending 9.871 WETH to the WETH-MATIC pool, and receiving 19,304 MATIC (after paying the 0.3% pool fee and around 2% price impact). In addition to the overall trade cost (double fees plus double slippage of 20,000–19,304)/20,000=3.47%), the trader would have to pay the gas costs twice for the two legs of this triangular transaction.</p><p>Let’s come back to VirtuSwap. To enable trading via a reserve, we need to define a “virtual” USDC-MATIC pool. To avoid any possible exploits, VirtuSwap operates the most conservative virtual pools, which are based on the “lowest common denominator” between respective real pools. In our example, the lowest common denominator between WETH-USDC and WETH-MATIC pools is 500 WETH. Thus, a virtual USDC-MATIC pool, based on 500 ETH on each of the aforementioned real pools, “contains” 500,000 USDC and 1,000,000 MATIC.</p><p>From the trader’s perspective, there is complete indifference between trading on a real vs a virtual pool. In our example, the trader can sell 10,000 USDC on the virtual pool and receive 19,550 MATIC — resulting in 2.25% overall trade cost (fee plus price impact) and gas costs associated with only a single swap transaction.</p><p>In reality, since a trade via the virtual pool is just an abstraction, the trade has to happen on a real pool — via a reserve. In our example, one of the base assets (MATIC) is taken from the pool and a reserve asset (USDC) is deposited into the pool reserve.</p><p><strong>Generalizations and conclusions</strong></p><p>Abstracting from savings in gas, in this example the trade’s cost is reduced by 35%. The rate of reduction in trading costs depends on several factors, most important being the relative size of the pools used for a triangular trade on a standard DEX — the more similar the pool sizes used for a two-hop trade, the closer the savings on VirtuSwap to 50%; and if more than two hops are used on a standard DEX, VirtuSwap savings can be even larger.</p><p>The reality is somewhat more complex than the diagram in Figure 2, as oftentimes virtual pools can be created using various combinations of real pools. In case multiple virtual pools exist, VirtuSwap employs a smart routing algorithm (similar in spirit to Uniswap smart routing, but quite different in implementation) to minimize the overall cost of trading.</p><p>Importantly, the savings achieved from trading via VirtuSwap technology are robust to various modifications of constant-product AMMs, such as concentrated liquidity (as in Uniswap v3) and non-constant-product-based trading curves (as in Curve). In fact, savings obtained by trading on VirtuSwap are orthogonal to virtually any modification of a standard constant-function AMM technology. VirtuSwap V1 will be using the simple Constant Product formula, and we will be adding more sophisticated models in later versions.</p><p>To summarize, by using reserve-powered virtual pool architecture, VirtuSwap creates direct liquidity in places in which it did not exist before and makes trading more efficient.</p><p>In this article, we have described the benefits of VirtuSwap architecture to the traders. In the next article (see <a href="https://medium.com/virtuswap/how-virtuswap-reimagines-dexes-part-ii-da2475715b1e">https://medium.com/virtuswap/how-virtuswap-reimagines-dexes-part-ii-da2475715b1e</a>) we will be focusing on the gains to liquidity providers — which turn out to be significant as well!</p><p>Want to learn more about how VirtuSwap works? Read our white paper <a href="https://virtuswap.io/white-paper/">here</a>, join us on <a href="https://twitter.com/VirtuSwap">Twitter</a>, <a href="https://t.me/virtuswap_official">Telegram</a> and <a href="https://t.co/FMBwUwmjWV">Discord</a> to engage in conversation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28066c69acb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VirtuSwap Tokenomics]]></title>
            <link>https://medium.com/@evgeny_lyandres/virtuswap-tokenomics-cd9d8c28fb30?source=rss-968cb14eb602------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd9d8c28fb30</guid>
            <category><![CDATA[token]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[decentralized]]></category>
            <category><![CDATA[dex]]></category>
            <category><![CDATA[tokenomics]]></category>
            <dc:creator><![CDATA[Evgeny Lyandres]]></dc:creator>
            <pubDate>Fri, 10 Mar 2023 10:51:42 GMT</pubDate>
            <atom:updated>2023-03-10T10:51:42.364Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0brSIG7ObfE2-bt5q2Dzvw.png" /></figure><p>In this article we’re going to talk about VirtuSwap’s in-depth tokenomics, VirtuSwap token, <em>VRSW</em>, and its extension voting token, <em>gVRSW</em>. We will cover the following parts:</p><p><strong>1. </strong>Description of <em>VRSW</em> allocation to various parties and release schedule of <em>VRSW</em> tokens.</p><p><strong>2. </strong>A brief description of fees and incentives.</p><p><strong>3.</strong> A general description of <em>VRSW</em> utility. In designing <em>VRSW</em> utility, our approach has been to follow currently available best practices and improve upon them. In particular, we introduce an elegant mechanism for mixed incentivization of staking and locking of <em>VRSW</em> tokens, under which locking tokens for a pre-specified period of time is not required to receive boosts to rewards for liquidity provision, but do increase them.</p><p><strong>4. </strong>A description of per-block reward boosts, involving staking and locking <em>VRSW</em> tokens.</p><p><em>This article updates and replaces our previous Tokenomics publication — </em><a href="https://medium.com/virtuswap/virtuswap-tokenomics-bef0d1d16127"><em>link</em></a><em>. Changes were implemented to increase liquidity incentivization share and refurnish mechanical schemes for emissions.</em></p><h3>1. Token allocation and distribution</h3><h4>1.1. Initial token allocation</h4><p>The total number of VRSW tokens that will ever be minted is <em>R</em> = 1,000,000,000. The token allocation is as follows:</p><ul><li>60%: community and growth.</li><li>6%: development fund.</li><li>34%: Team, Advisors and investors.</li></ul><p>The token allocation is illustrated in the following chart:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nhXAh0GQwaW3jv9xr8OwTA.png" /></figure><p>The founding team, employees, and advisors are all subject to 36-month vesting and 12-month lockup.</p><p>Investors are subject to 12-month emission.</p><h4>1.2. Emission of VRSW tokens as LP incentivization mechanism</h4><p>The VRSW tokens reserved for community and growth (0.6R or 600,000,000 tokens) will be released as follows:</p><ul><li>10% (100,000,000 tokens) will be released immediately to the VirtuSwap DAO treasury to support pre-launch airdrops and lockdrop, partnerships, and strategic initiatives.</li><li>50% (500,000,000 tokens) will be released using a pre-determined gradual algorithmic schedule over 10 years. Out of these:</li></ul><ol><li>30% (300,000,000 tokens) will be released directly to pools chosen by a combination of VirtuSwap proprietary machine-learning-based liquidity optimization module and voting by VirtuSwap ecosystem participants.</li><li>20% (200,000,000 tokens) will be released to the VirtuSwap DAO treasury and will be also used for liquidity provider incentivization but at discretionary times decided by VirtuSwap DAO.</li></ol><p>The overall number of <em>VRSW</em> tokens released algorithmically to chosen liquidity pools and to VirtuSwap DAO during block <em>t</em> since launch, is described by the following schedule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*_L79DnYbul1W9BK2iechwg.png" /></figure><p>where:</p><ul><li><em>R(A,t)</em> is the overall number of VRSW tokens released algorithmically during block <em>t</em> since launch.</li><li><em>tau(t)</em> is the timestamp (in milliseconds) of block <em>t.</em></li><li><em>tau</em> = (365 * 8 + 366 * 2) * 24 * 60 * 60 *1,000 = 315,532,800,000 milliseconds, i.e. the number of miliseconds in a 1-year period beginning in 2023.</li><li><em>V</em> = 0.0039453 and <em>v</em> = - 7.06955769385819E-12 are constants chosen so as to ensure that:</li></ul><ol><li>20% of all <em>VRSW</em> tokens released via the algorithmic release (i.e. 0.1<em>R</em> or 100,000,000 tokens) will be released in the first year, and 20% fewer tokens will be released in each subsequent year until year 10;</li><li>The total number of <em>VRSW</em> tokens to be released according to this schedule within 10 years would equal 0.5<em>R</em>, i.e. 500,000,000 tokens.</li></ol><p>The marginal and cumulative algorithmic release of <em>VRSW</em> tokens is illustrated in the following two figures, where x-axis represents months:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*1WNtLGYOHhgx31Fy3xysFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rA4lS3pk26oUqWRR_ywJNQ.png" /></figure><h4>1.3. Overall VRSW emission over time</h4><p>Combining the emission of VRSW tokens to the community with tokens allocated to the team, advisors, and investors in VirtuSwap results in the following overall cumulative emission schedule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uu1TWvtOzKBBG1Fz_l0voQ.png" /></figure><h3>2. Fees and incentives</h3><p>The fee for each trade within each pool participating in the trade, as well as reward boost for this pool’s liquidity providers who have staked their LP tokens and/or staked/locked <em>VRSW</em> tokens will be split into the following components, as illustrated in the next figure. The initial distribution of these components is illustrated in dark orange:</p><ul><li>Fraction <em>F(pool,fees)</em> and <em>F(pool,rewards)</em> of trading fees in a pool and rewards (in <em>VRSW</em> and, potentially in other tokens such as project or blockchain native tokens), respectively, in a given block will stay in the pool. These returns are proportional to the number of LP tokens owned by each wallet.</li><li>Fraction <em>F(boost,fees)</em> and <em>F(boost,rewards)</em> of trading fees in a pool and rewards, respectively, in a given block will accrue to liquidity providers in the pool, who have staked their LP tokens (LP token stakers hereafter) and (potentially) staked or locked <em>VRSW</em> tokens.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ma8x6D14ng3ztnaInh3iVg.png" /></figure><p>The proportion of rewards accruing to each liquidity provider in a given pool will depend on her relative number of LP tokens staked as well as on the relative number and duration of staked and/or locked <em>VRSW</em> tokens, as described below.</p><p>Initially, <em>F(pool,fees)</em> = 100%, <em>F(pool,rewards)</em> = 0, <em>F(boost,fees)</em> = 0, and <em>F(boost,rewards)</em> = 100%, i.e. trading fees will stay in the pool, whereas VRSW (and other potential) rewards will accrue to LP token stakers. Later on, changes to fee distribution will be possible, following community decisions made according to VirtuSwap governance mechanism. In addition to possible changes to <em>F(pool) </em>and <em>F(boost)</em>, examples of possible future distributions of pool fees and incentives are illustrated in black boxes above:</p><ul><li>Protocol-level rewards for staking <em>VRSW</em> tokens (without a requirement for staking LP tokens), <em>F(VRSW)</em>. Initially, <em>F(VRSW) </em>= 0. Protocol-level rewards can only be turned on and off by the decision of VirtuSwap governance. <em>F(VRSW)</em> cannot exceed 10% of the per-block algoruthmic token emission.</li><li>Future rewards to additional activities in the future versions of the protocol. Examples include decentralized insurance, i.e. taking on the risk of reserve asset price fluctuation, and single-sided liquidity provision (this list of fee distribution channels is not exhaustive). Future rewards will be decided by VirtuSwap governance.</li></ul><h3>3. VRSW utility design</h3><p>State-of-the art DEX utility design involves the following functions of a protocol token:</p><p>• Staking;</p><p>• Locking;</p><p>• Governance via voting.</p><p>VirtuSwap tokenomics via <em>VRSW</em> token and its extension, <em>gVRSW</em>, is based on the three aforementioned functions, with the following important improvement relative to existing DEX token utility structures. It is not necessary to lock <em>VRSW</em> tokens in order to receive a reward boost; and incentives for both staking and locking are achieved within a single elegant mechanism. Relaxation of the requirement for pre-determined lockup periods is meant to increase the liquidity of <em>VRSW</em> token, without compromising its utility, as discussed below.</p><p><em>VRSW</em> and <em>gVRSW</em> tokens are tightly connected:</p><ol><li>A new <em>gVRSW</em> token is minted every time <em>VRSW</em> token is staked (not necessarily locked!).</li></ol><ul><li><em>gVRSW</em> tokens can be used for submitting governance proposals and voting on them, where the voting power is proportional to the number of <em>gVRSW</em> tokens held.</li></ul><p>2. Staking <em>VRSW</em> tokens boosts LP rewards in pools to which the staker provides liquidity.</p><ul><li>Every <em>VRSW</em> token can also be locked ex-ante for a pre-specified period of time. Locking <em>VRSW</em> tokens provides an added boost to LP rewards, as described below.</li><li>If/when protocol rewards are turned on, staking VRSW will result in rewards unrelated to liquidity provision.</li></ul><p><em>3. VRSW</em> tokens that are not locked can be unstaked at any time, resulting in burning of associated <em>gVRSW</em> tokens.</p><h3>4. Accrual of reward boosts to staked LP tokens</h3><h4>4.1. Main objectives</h4><p>The main goal of the formulation described in this section is threefold:</p><ul><li>Provide incentives for staking <em>VRSW</em> tokens for prolonged periods of time, without a requirement of locking them ex-ante for pre-specified time periods.</li><li>Provide added incentives for pre-determined ex-ante locking of <em>VRSW</em> tokens.</li><li>Allow flexibility for rewarding prolonged durations of both staking and locking of <em>VRSW</em> tokens.</li></ul><p>The share of reward boosts to an LP of a particular pool who has staked/locked <em>VRSW</em> tokens depends on the following factors:</p><ul><li>Number of staked LP tokens of a given pool;</li><li>Number of staked <em>VRSW</em> tokens in each staking position;</li><li>Current duration of staking of <em>VRSW</em> tokens in each staking position.</li><li>Locking period of <em>VRSW</em> tokens in each staking position.</li></ul><h4>4.2. Conceptual computation of reward boost accrual during a block</h4><p>Let us use the following notation:</p><ul><li>Pool consisting of native assets <em>X</em> and <em>Y</em> : <em>[XY];</em></li><li>Proportional trading fee in pool <em>[XY]</em>: <em>f(XY);</em></li><li>The number of LP tokens in pool <em>[XY]</em> that wallet <em>i</em> has staked but not locked: LP(<em>i</em>,<em>XY</em>);</li><li><em>VRSW</em> staking position number <em>p</em> by wallet <em>i</em>: <em>VRSW(i,p);</em></li><li>Current duration of <em>VRSW</em> tokens staked by wallet <em>i</em> in staking position <em>p</em>: <em>D(i,p);</em></li><li>The locking period of <em>VRSW</em> tokens in position <em>p</em> by wallet <em>i</em>: <em>k(i,p) ≥ </em>0<em>. </em>If <em>k(i,p) </em>= 0 then <em>VRSW</em> in staking position <em>p</em> is not locked and is available for immediate withdrawal;</li><li>The compound rate of duration of reward boost calculation: <em>r;</em></li><li>The reward boost coefficients for locking <em>VRSW</em> per unit of locking time: <em>b;</em></li><li>Parameter describing the curvature of reward boost for locking <em>VRSW</em> as a function of locking duration, <em>gamma.</em></li><li>Parameter describing the importance of LP token staking in reward boost computation, <em>alpha;</em></li><li>Parameter describing the importance of <em>VRSW</em> staking/locking in reward boost computation, <em>beta;</em></li><li>“Allocation points” of pool <em>[XY]</em> during block <em>t</em>, i.e. the fraction of <em>VRSW</em> emission in block <em>t </em>accruing to pool <em>[XY]</em>: <em>eta(XY,t).</em></li><li>The total amount of asset <em>X(Y) </em>sent to pool <em>[XY]</em> in exchange for asset <em>Y(X)</em> in block <em>t</em>: <em>U(X,XY,t) </em>(<em>U(Y,XY,t)</em>).</li></ul><p>Then, the reward boost accruing to LPs of pool <em>[XY]</em> who staked their LP tokens consists of the following elements:</p><ul><li>Discrete reward boosts (occurring in blocks in which the pool facilitated trades):</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*yBhPZuVxdNcjs7Tp4-3fYA.png" /></figure><ul><li>Continuous reward boosts in VRSW tokens:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*rIUEcQjopPhHiq-ZGUi28Q.png" /></figure><p>Denote by <em>W(d,XY,t)</em> total rewards (in various assets (denominations) above, denoted by <em>d</em>) during block t. The reward boost accruing to wallet <em>i</em>, <em>pi(d,i,XY,t)</em>, equals:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*Znid7flZT9rjw44kw-i3DQ.png" /></figure><p>where</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*D5moNAIQdq7Vwe8XL0QNkw.png" /></figure><p><em>j</em> denotes all wallets that staked LP tokens of pool <em>[XY]</em>, and <em>p,i</em> denotes all staking positions (<em>p</em>) of wallet <em>i</em>.</p><p>If/when general staking rewards would be turned on, they will be computed similarly to (2) and (3) above, while replacing pool [XY] by [<em>Protocol</em>] and assuming LP(I, Protocol, t)=1 for all i.</p><h4>4.3. Example of reward boost accrual</h4><p>Let us consider an example to illustrate the calculation of reward boost shares of wallets in pool <em>[XY] </em>during block <em>t</em>. This example assumes <em>F(boost,fees)</em> = 0 and <em>F(boost,rewards)</em> = 100%. Assume the following values of parameters:</p><ul><li>Algorithmic emission of <em>VRSW</em> tokens in block <em>t</em>: <em>R(A,t)</em> = 100;</li><li>Allocation points of pool <em>[XY]</em> in block <em>t</em>: <em>eta(XY,t)</em> = 0.15;</li><li>The importance of LP token staking parameter: <em>alpha</em> = 1;</li><li>The importance of <em>VRSW</em> staking parameter: <em>beta</em> = 0.5;</li><li>The reward for <em>VRSW</em> locking per period of time: <em>b</em> = 0.01;</li><li>Curvature of reward for VRSW locking period: <em>gamma</em>= 1;</li><li>Compound rate of reward boost calculation: <em>r </em>= 0:01.</li></ul><p>The following table describes the number of staked LP tokens, as well as VRSW tokens staked, current staking duration, and the length of locking period of various VRSW staking positions by two wallets, <em>A </em>and <em>B</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*pYM1fDTjEcfI5AQRfXqf-g.png" /></figure><p>The resulting rewards of wallets <em>A</em> and <em>B</em> are computed using equations (2)-(3). In particular:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*zuKNY_MVkYZw9NSl44q0Sw.png" /></figure><p>Implying that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*Z2V13I4h7IBeLAfBC1ycEw.png" /><figcaption>VRSW rewards in block t</figcaption></figure><p>whereas:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/88/1*2DsQiMJi8ZGSuHngiRvb_w.png" /><figcaption>VRSW rewards in block t</figcaption></figure><h4>4.4. Example of advantages of prolonged staking and locking</h4><p>Let’s examine comparative statics of reward boosts to a given wallet with respect to:</p><ul><li>The number of staked/locked <em>VRSW</em> tokens;</li><li>The duration of staked/locked <em>VRSW</em> tokens;</li><li>Locking period.</li></ul><p>We begin with the baseline scenario, in which:</p><ul><li>Wallet <em>A</em> staked 50 LP tokens but has not staked or locked <em>VRSW</em> tokens.</li><li>Wallet <em>B</em> staked 50 LP tokens and, in addition staked 5 <em>VRSW</em> token with the current duration of staking equaling 100 periods.</li></ul><p>The next figure presents the comparative statics of the proportion of reward boost accruing to wallet <em>B</em> (out of total reward boost of the pool) for various amounts of staked <em>VRSW</em> (ranging from 0 <em>VRSW</em> to 10 <em>VRSW</em>) for the following 4 cases:</p><ul><li>Wallet <em>B</em>’s <em>VRSW</em> tokens are staked but not locked;</li><li>Wallet <em>B</em>’s <em>VRSW</em> tokens are currently locked for 50 periods;</li><li>Wallet <em>B</em>’s <em>VRSW</em> tokens are currently locked for 100 periods;</li><li>Wallet <em>B</em>’s <em>VRSW</em> tokens are currently locked for 200 periods.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*KJVbMC0kwFGRp4HcJokE3g.png" /></figure><p>This figure illustrates clearly that staking <em>VRSW</em> raises the staker wallet’s reward boosts substantially, more so if staked tokens are locked and more so if they are locked for longer periods.</p><p>The following figure presents comparative statics of the proportion of reward boosts accruing to wallet <em>B</em> as a function of staking period (ranging between 0 and 200 for the 4 cases of locking duration above):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*UoP3NhxJ6gP0EKJA2zUA3g.png" /></figure><p>This figure shows that staking/locking <em>VRSW</em> for prolonged periods of time significantly raises reward boosts and reduces incentives to unstake <em>VRSW</em> tokens.</p><p><strong><em>VirtuSwap</em></strong><em> is a new kind of DEX with unrivaled efficiency.</em></p><p><em>VirtuSwap team is comprised of finance professors and crypto veterans, and backed by industry heavyweights.</em></p><p><em>We are on a mission to make DEXes dominate the crypto trading landscape, and we are accomplishing it through research, financial engineering and data science.</em></p><p><em>Don’t forget to </em><strong><em>like</em></strong><em> and </em><strong><em>share</em></strong><em>.</em></p><p><strong>Follow us on:</strong> <a href="https://twitter.com/VirtuSwap">Twitter</a> | <a href="https://discord.com/invite/virtuswap">Discord</a> | <a href="https://www.linkedin.com/company/virtuswap">LinkedIn</a> | <a href="https://t.me/official_virtuswap">Telegram</a> | <a href="https://medium.com/virtuswap">Medium</a>| <a href="https://virtuswap.io/">Website</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd9d8c28fb30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing VirtuSwap Investors]]></title>
            <link>https://medium.com/@evgeny_lyandres/introducing-virtuswap-investors-9308dbb64544?source=rss-968cb14eb602------2</link>
            <guid isPermaLink="false">https://medium.com/p/9308dbb64544</guid>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[dex]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Evgeny Lyandres]]></dc:creator>
            <pubDate>Wed, 17 Aug 2022 14:32:15 GMT</pubDate>
            <atom:updated>2022-08-17T14:32:15.533Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dq68hZzwm-YR_WggstfDSQ.jpeg" /><figcaption>Introducing VirtuSwap Investors</figcaption></figure><p>VirtuSwap has completed its first (“pre-seed”) round, with participation of over 15 institutional and individual investors, several of whom are some of the biggest names in crypto. Our investors provide us not only with financial contributions that allow us to develop VirtuSwap at an ever-increasing pace, but are also advising and guiding us on various aspects of bringing our ideas and dreams to fruition.</p><p>Among institutional investors, we are backed by some of the most successful market makers in crypto — <a href="http://gsr.io/">GSR</a> and<a href="http://www.janestreet.com/"> Jane Street</a>, and some of the most active VC funds specializing in web3, such as<a href="https://www.sharding.capital/"> Sharding Capital</a>.</p><p>Our individual investors include the likes of JD Kanani and Sandeep Nailwal — co-founders of Polygon, on which VirtuSwap will be initially deployed, as well as Hamzah Khan, who is spearheading Polygon DeFi efforts. Collaboration with Polygon is instrumental to us, and we have been enjoying tremendous support from the Polygon ecosystem.</p><p>We are honored and humbled that these and other notable investors put faith in us. The support of industry heavyweights gives us even more confidence in the strength of our technology and in the importance of our mission. VirtuSwap team — which currently consists of nine very talented and experienced core contributors — is working tirelessly to ensure that VirtuSwap achieves its short-term vision of becoming one of the premier DEXes and its longer-term vision of eventually turning into one of the cornerstones of financial innovation in DeFi.</p><p><strong><em>VirtuSwap</em></strong><em> uses a novel pool architecture, based on reserve-powered virtual liquidity pools, which solve the problem of triangular trading by making every trade direct — even in the absence of a corresponding pool, and generates up to 50% savings.</em></p><p><em>Don’t forget to </em><strong><em>like</em></strong><em> and </em><strong><em>share</em></strong><em>.</em></p><p><strong>Follow us on:</strong> <a href="https://twitter.com/VirtuSwap">Twitter</a> | <a href="https://www.linkedin.com/company/virtuswap">LinkedIn</a> | <a href="https://t.me/virtuswap_official">Telegram</a> | <a href="https://medium.com/virtuswap">Medium</a>|<a href="https://virtuswap.io/">Website</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9308dbb64544" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VirtuSwap Tokenomics]]></title>
            <link>https://medium.com/@evgeny_lyandres/virtuswap-tokenomics-bef0d1d16127?source=rss-968cb14eb602------2</link>
            <guid isPermaLink="false">https://medium.com/p/bef0d1d16127</guid>
            <category><![CDATA[dex]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Evgeny Lyandres]]></dc:creator>
            <pubDate>Wed, 10 Aug 2022 10:05:32 GMT</pubDate>
            <atom:updated>2022-08-10T10:07:18.942Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgMAVu-ZgNFfW4PWy8FcNw.jpeg" /></figure><p>This article describes VirtuSwap tokenomics, via VirtuSwap token, <strong>VRSW</strong>, and its associated governance token, <strong>gVRSW</strong>. The document consists of two parts:</p><ol><li>description of <strong>VRSW</strong> allocation to various parties, and</li><li>discussion of <strong>VRSW</strong> utility.</li></ol><p>In designing <strong>VRSW</strong> utility, our approach has been to follow currently available best practices and improve upon them. In particular, we introduce an elegant mechanism for mixed incentivization of staking and locking <strong>VRSW</strong> tokens, under which locking tokens for a pre-specified period of time is <strong>not</strong> required in order to participate in VirtuSwap governance and to receive boosts to liquidity provider rewards.</p><h3><strong>Token allocation and release</strong></h3><p><strong>Token allocation</strong></p><p>The total number of <strong>VRSW</strong> tokens that will ever be minted is <strong>R</strong>=1,000,000,000. The token allocation is as follows:</p><p>27% — founding team and pre-launch employees;</p><p>7% — pre-seed investors;</p><p>2% — advisors;</p><p>7% — seed investors;</p><p>4% — post-launch employees and advisors;</p><p>1% — initial distribution to the protocol;</p><p>2% — pre-launch airdrops;</p><p>50% — gradual release to community, as described below.</p><p>All founding team’s, employees’, investors’, and advisors’ tokens are subject to 36-month vesting and 12-month cliff. The token allocation is illustrated in the following chart:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RmXOOyq7fqHScFZ0KdDPHg.png" /></figure><p><strong>Release of VRSW tokens as LP incentivization mechanism</strong></p><p>Out of the 50% of tokens not reserved to the founding team, employees, investors, advisors, and pre-launch distribution to the protocol and airdrops, the overall number of <strong>VRSW</strong> tokens released during a given month since launch is a constant function of yet-unreleased tokens. The precise release schedule formula can be found in the official <a href="https://drive.google.com/file/d/1pSzwNUg71Fp37bXpoeriJLuJ4zSkz-Ka/view?usp=sharing">VirtuSwap tokenomics white paper</a>. The evolution of the number of yet-unreleased <strong>VRSW</strong> tokens is described in the following figure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x98gt9o-_9PkXHPelZp2rQ.png" /></figure><p>By default, all newly released tokens will be used for liquidity provision incentivization. However, part of the released tokens will be sent to the protocol if one of the following two conditions is satisfied:</p><ol><li>The number of tokens held by the protocol drops below 0.5% of total float (i.e. below 5,000,000<strong> VRSW</strong> tokens);</li><li>A governance proposal of increasing the number of tokens held by the protocol has passed.</li></ol><p>In addition, other uses of newly released tokens, including but not limited to contributions to development fund, community/growth fund, and partnerships are possible, following respective governance proposals.</p><h3>VRSW Utility</h3><p><strong>Introduction to VRSW Utility</strong></p><p>State-of-the art DEX utility design (see e.g., Curve, Balancer) involves the following functions of a protocol token:</p><ol><li>Staking;</li><li>Locking;</li><li>Governance via voting.</li></ol><p>VirtuSwap tokenomics via <strong>VRSW</strong> token and associated governance token, <strong>gVRSW</strong>, is based on the three aforementioned functions, with the following important modification. It is not necessary to lock <strong>VRSW</strong> tokens; incentives for both staking and locking are achieved within a single elegant mechanism.</p><p>Relaxation of the requirement for pre-determined lockup periods is meant to increase the liquidity of <strong>VRSW</strong> token, without compromising its utility, as discussed below.</p><p><strong>VRSW </strong>and <strong>gVRSW</strong> tokens are tightly connected:</p><ol><li>A new <strong>gVRSW</strong> token is minted every time <strong>VRSW</strong> token is staked (not necessarily locked!). <strong>gVRSW</strong> tokens can be used for submitting governance proposals and voting on them, where the voting power is proportional to the number of <strong>gVRSW</strong> tokens held.</li><li>Staking VRSW tokens boosts LP rewards in pools to which the staker provides liquidity. Every <strong>VRSW</strong> token can also be locked ex-ante for a pre-specified period of time. Locking <strong>VRSW</strong> tokens provides an added boost to LP rewards, as described below.</li><li><strong>VRSW</strong> tokens that are not locked can be unstaked at any time, resulting in burning of associated <strong>gVRSW</strong> tokens.</li></ol><p><strong>(Initial) fee distribution</strong></p><p>The fee for each trade within each pool participating in the trade, as well as the incentives for this pool’s liquidity providers who have staked/locked <strong>VRSW</strong> tokens will be split into the following components, as illustrated in the following figure:</p><p>Initially, trading fees will be split according to the following schedule (illustrated in dark orange):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jMSVhvcdFIXh-c-Twdmb8w.png" /></figure><ol><li>Fraction <em>Fpool</em> of trading fees in a given block will stay in the pool, creating organic returns to liquidity providers;</li><li>Fraction <em>Fboost=</em>1<em>-Fpool</em> of trading fees in a given block will accrue to liquidity providers in the pool, who have staked and/or locked <strong>VRSW</strong> tokens, as described below.</li></ol><p>In addition, stakers and lockers of <strong>VRSW</strong> tokens will receive fraction <em>Fboost </em>of pool-level rewards given in <strong>VRSW</strong> tokens.</p><p>Initially, <em>Fpool</em>=80% and <em>Fboost</em>=20%. Later on, changes to fee distribution will be possible, following community decisions made according to VirtuSwap governance mechanism. In addition to changes in shares of fees accruing to LP token holders and reward boosts accruing to <strong>VRSW</strong> token holders who have staked/locked their tokens, examples of possible future distributions are illustrated in pale orange:</p><ol><li>“Protocol fee”, accruing to VirtuSwap foundation. The goal of the protocol fee is to support further development of VirtuSwap ecosystem (future versions, additional functionalities, etc) and to pay for pool reserves re-balances initiated by VirtuSwap DAO keeper bots;</li><li>Hedge providers in V2 of VirtuSwap;</li><li>Single-sided liquidity providers in V2 of VirtuSwap.</li></ol><p>The list of fee distribution channels is not exhaustive; other ecosystem participants may be incentivised based on decisions of VirtuSwap governance.</p><p><strong>Computation of reward boosts accruing to LPs who staked/locked VRSW tokens</strong></p><p>The main goal of reward boost calculation formulation is threefold:</p><ol><li>Provide incentives for staking <strong>VRSW</strong> tokens for prolonged period of time, without a requirement of locking them ex-ante for a pre-specified time period;</li><li>Provide added incentives for pre-determined ex-ante locking of <strong>VRSW</strong> tokens;</li><li>Allow flexibility for rewarding prolonged durations of both staking and locking of <strong>VRSW</strong> tokens.</li></ol><p>The share of reward boosts to an LP of a particular pool who has staked/locked <strong>VRSW</strong> tokens depends on the following factors:</p><ol><li>Number of staked <strong>VRSW</strong> tokens;</li><li>Weighted average duration of staking of <strong>VRSW</strong> tokens, where staking duration is computed ex-post;</li><li>Number of locked <strong>VRSW</strong> tokens;</li><li>Weighted average duration of locking of <strong>VRSW</strong> tokens, where locking duration is determined ex-ante;</li><li>The number of LP tokens of a given pool.</li></ol><p>The precise computation of staking and locking durations can be found in the official VirtuSwap <a href="https://drive.google.com/file/d/1pSzwNUg71Fp37bXpoeriJLuJ4zSkz-Ka/view?usp=sharing">tokenomics white paper</a>.</p><p><strong>Computation of wallet X’s share of block rewards</strong></p><p>Let us use the following notation.</p><p>→ <em>w(X,t)</em> denotes wallet X’s share of staking/locking rewards accruing to all LPs in a given pool who have staked/locked <strong>VRSW</strong> tokens;</p><p>→ <em>K</em> denotes the set of distinct wallets that provided liquidity into a given pool;</p><p><em>→ d</em> is the parameter determining incentivization for prolonging the duration of staking (not locking!);</p><p>→ <em>l</em> is the parameter determining incentivization for prolonging the duration of pre-determined locking;</p><p>→ <em>LP(X,t)</em> is the number of LP tokens belonging to wallet <em>X </em>in block <em>t</em>.</p><p>Then,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zdvp7vN8e04nvneS39zbeA.png" /></figure><p><em>LP(X,t) </em>denotes the number of liquidity pool tokens of a given pool belonging to liquidity provider <em>X</em> in block <em>t</em>, <em>NS(X,t-1) </em>denotes the average duration of staking of liquidity provider<em> X’</em>s<em> </em><strong>VRSW</strong><em> </em>tokens (computed ex-post) and<em> NL(X,t-1) </em>denotes the average duration of locking of liquidity provider <em>X</em>’s<em> </em><strong>VRSW</strong> tokens (computed ex-ante).</p><p>Importantly, as long as 0&lt;<em>d</em>&lt;1 and 0&lt;<em>l</em>&lt;1, staking or locking additional <strong>VRSW </strong>tokens necessarily increases <em>w(X,t)</em>, whereas unstaking or unlocking staked/locked VRSW tokens necessarily decreases <em>w(X,t)</em>. In addition, the fact that we only include tokens locked for positive (even if infinitesimal) time periods in the calculation of weighted average locking duration (as opposed to including unlocked tokens as tokens with zero locking duration), coupled with <em>l</em>&lt;1, produces added incentives for locking VRSW tokens.</p><p>The choices of staking and locking duration reward parameters, <em>d</em> and <em>l</em>, respectively, involve the following tradeoffs:</p><p>→ Higher (lower) <em>d</em> results in larger (smaller) incentives for longer ex-post staking of <strong>VRSW</strong> tokens. At the two extremes, <em>d</em> approaching 1 results in duration rewards linearly increasing in staking time, whereas no duration-related incentives exist for <em>d</em> approaching 0. The tradeoff involved in choosing <em>d</em> is as follows:</p><ul><li>Higher <em>d</em> provides a larger share of rewards to longer-term <strong>VRSW</strong> token stakers and increases incentives to continue staking <strong>VRSW</strong> tokens;</li><li>However, higher <em>d</em> provides a smaller share of rewards to future and current shorter-term <strong>VRSW</strong> token stakers, reducing their incentives to stake <strong>VRSW</strong> tokens.</li></ul><p>→ Higher (lower) <em>l </em>results in larger (smaller) incentives for longer (ex-ante) lock-ups of <strong>VRSW</strong> tokens. At the extreme, l approaching 0 provides zero incentives for ex-ante lockup. The tradeoff in choosing <em>l</em> is as follows:</p><ul><li>Higher <em>l</em> incentivizes <strong>VRSW</strong> stakers to lock their tokens for longer periods of time;</li><li>However, higher<em> l</em> disincentivizes <strong>VRSW</strong> stakers, who have not ex-ante locked their tokens, to stake them for longer periods of time.</li></ul><p>Let us consider an example to illustrate the calculation of reward boosts shares in pool <strong>WBTC-USDC</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hn9e7lmm3kI9qYN_vYmsiA.png" /></figure><p>The resulting shares of reward boosts to LPs A and B , <em>w(A,t)</em> and <em>w(B,t)</em>, are computed as follows for various combinations of <em>d</em> and <em>l</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JAcgHOv3srEKbIdivVsSPg.png" /></figure><p>This example illustrates the importance of ex-post staking and ex-ante locking of VRSW tokens, and the (increasing) effects of staking and locking incentivization parameters, <em>d</em> and <em>l</em> on the benefits of staking and locking. In particular, increasing <em>d</em> raises <em>w(A,t)</em> and reduces <em>w(B,t)</em> as the average duration of staking of <em>A</em>’s tokens is longer. On the contrary, increasing<em> l</em> reduces <em>w(A,t)</em> and raises <em>w(B,t)</em> as the average duration of locking of <em>B</em>’s tokens is longer.</p><p>The tradeoffs in choosing staking and locking duration rewards parameters, <em>d</em> and <em>l</em>, respectively, discussed above, suggest that medium levels of <em>d</em>=0.5 and <em>l</em>=0.5 would incentivize long-term staking/locking without excessively disincentivising staking/locking of new VRSW tokens.</p><p><strong>Example of reward boosts to LP token holders</strong></p><p>Reward boosts to LPs in pool <strong>WBTC-USDC</strong>, who staked/locked their VRSW tokens take three forms: fraction of fees paid in units of <strong>WBTC</strong> (resulting from trades in which <strong>WBTC</strong> is sent to the pool), fraction of fees paid in units of <strong>USDC</strong> (resulting from trades in which <strong>USDC</strong> is sent to the pool), and rewards in <strong>VRSW</strong> tokens.</p><p>Let us illustrate the rewards computation using an example.</p><p>Assume <em>d</em>=0.5 and <em>l</em>=0.5, thus <em>w(A,t)</em> =0.169 and <em>w(B,t|)</em> =0.831.</p><p>Assume that the fee in pool <strong>WBTC-USDC</strong> is 0.3%.</p><p>Assume that the following trades occurred in this pool within a given block:</p><ul><li>3 <strong>WBTC</strong> were sent to the pool, resulting in a fee of 0.009 <strong>WBTC</strong>;</li><li>20,000 <strong>USDC</strong> were sent to the pool, resulting in a fee of 60 <strong>USDC</strong>;</li><li>In addition, assume that block-level rewards to liquidity providers of pool <strong>WBTC-USDC</strong> is 0.5 <strong>VRSW</strong> tokens.</li></ul><p>The total reward boosts to liquidity providers of this pool who staked/locked <strong>VRSW</strong> tokens equals: 0.009 * 0.2 = 0.0018 <strong>WBTC</strong>; 60 *0.2 =12 <strong>USDC</strong>; 0.5 VRSW. These rewards accrue to wallets <em>A</em> and <em>B</em> according to <em>w(A,t)</em> and <em>w(B,t).</em></p><p><strong><em>VirtuSwap</em></strong><em> uses a novel pool architecture, based on reserve-powered virtual liquidity pools, which solve the problem of triangular trading by making every trade direct — even in the absence of a corresponding pool, and generates up to 50% savings.</em></p><p><em>Don’t forget to </em><strong><em>like</em></strong><em> and </em><strong><em>share</em></strong><em>.</em></p><p><strong>Follow us on:</strong> <a href="https://twitter.com/VirtuSwap">Twitter</a> | <a href="https://www.linkedin.com/company/virtuswap">LinkedIn</a> | <a href="https://t.me/virtuswap_official">Telegram</a> | <a href="https://medium.com/virtuswap">Medium</a>|<a href="https://virtuswap.io/">Website</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bef0d1d16127" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How VirtuSwap reimagines DEXes — part II]]></title>
            <link>https://medium.com/@evgeny_lyandres/how-virtuswap-reimagines-dexes-part-ii-da2475715b1e?source=rss-968cb14eb602------2</link>
            <guid isPermaLink="false">https://medium.com/p/da2475715b1e</guid>
            <category><![CDATA[liquidity-provider]]></category>
            <category><![CDATA[virtuswap]]></category>
            <category><![CDATA[uniswap]]></category>
            <category><![CDATA[impermanent-loss]]></category>
            <category><![CDATA[dex]]></category>
            <dc:creator><![CDATA[Evgeny Lyandres]]></dc:creator>
            <pubDate>Fri, 08 Jul 2022 15:27:29 GMT</pubDate>
            <atom:updated>2022-07-08T15:27:29.247Z</atom:updated>
            <content:encoded><![CDATA[<h3>How VirtuSwap Reimagines DEXes — Part II</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3hYmr-UYpaORpiBW" /></figure><p>In our <a href="https://medium.com/virtuswap/how-virtuswap-reimagines-dexes-part-i-62b20625cd4d">previous article</a>, we described one facet of the benefits brought about by VirtuSwap reserve-pool-based technology — significant reduction in trading costs. However, a natural question arises: in a zero-sum-game environment, who pays for the lower trading costs?</p><h3><strong>Who is footing the bill?</strong></h3><p>There are three main types of agents participating in DEX activities: regular traders (trading mostly for liquidity/sentiment reasons), arbitrageurs (or <a href="https://medium.com/@liamzhang/mev-a-deep-dive-part-1-3f389ef16d32">MEV bots</a>, as they are often referred to), and liquidity providers (LPs).</p><p>We surely do not want to make LPs’ lives harder — as the viability of any AMM-based DEX depends crucially on substantial liquidity in its pools. In addition, currently, liquidity providers’ net expected returns are typically quite low due to expected impermanent losses brought about by changes in the exchange rate between the two assets in a pool (see, for example, this <a href="https://pintail.medium.com/uniswap-a-good-deal-for-liquidity-providers-104c0b6816f2">article</a>). As a result, LPs currently rely heavily on “rewards” in the form of protocol governance tokens to compensate them for expected impermanent losses. This situation — in which fee-based revenue is insufficient to make liquidity provision profitable — is not sustainable in the long run. This implies that it is imperative to increase LPs’ expected returns from liquidity provision, and definitely not make them subsidize trading costs.</p><p>Arbitrageurs are a different story. While arbitrageurs play an important role in DeFi — after all, they are responsible for unrivaled price efficiency of DEXes — their rewards for performing arbitrage trades are outsized. Importantly, in DeFi, arbitrage transactions are financed mostly using flash loans (i.e. do not require upfront capital), and are atomistic (resulting in virtually zero risk). Remember that whatever profits arbitrageurs make — someone has to pay for, and, keeping the trading costs constant, this someone is LPs.</p><p>Thus, the only way to improve the conditions of both traders and LPs is to reduce the profits of the arbitrageurs — an elusive problem up to now, which VirtuSwap technology manages to partially solve.</p><h3><strong>Why are arbitrage profits lower on VirtuSwap?</strong></h3><p>Let’s return to an example from our <a href="https://medium.com/virtuswap/how-virtuswap-reimagines-dexes-part-i-62b20625cd4d">previous article</a>: a trader wants to buy MATIC for 10,000 USDC. In this example, to simplify matters, let’s compare two scenarios:</p><ol><li>Trading on a typical DEX on a USDC-MATIC pool (containing 500,000 USDC and 1,000,000 MATIC), or</li><li>Trading on VirtuSwap, on a ETH-MATIC pool, willing to accept USDC into its reserves, via virtual USDC-MATIC pool of the same magnitude (see our <a href="https://medium.com/virtuswap/how-virtuswap-reimagines-dexes-part-i-62b20625cd4d">previous article</a> for an explanation of construction of virtual pools).</li></ol><p>The differences between the two scenarios are illustrated in Figure 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FOF8fdsXdbxQb09j" /><figcaption>Figure 1: Trading on a real vs a virtual pool</figcaption></figure><p>The left part of the future illustrates a typical DEX — a trader deposits 10,000 USDC and withdraws 19,550 MATIC (after accounting for the trading fee and price impact), leaving the pool with 510,000 USDC and 980,450 MATIC. At this point, the pool is unbalanced, inviting MEV bots to take advantage of the difference between the pool-implied exchange rate between USDC and MATIC and exogenous exchange rate elsewhere. The lucky MEV bot who happens (or bribes a miner) to execute the transaction brings the pool back to equilibrium (in which the implied exchange rate is back to 2:1) by acquiring 9,971 USDC for 19,609 MATIC (accounting for the pool fee).</p><p>The implied profit from this arbitrage transactions is $9,971–19,609*$0.5=$166. This is money taken out from the pool by an arbitrageur — i.e. a reduction in the profits that LPs could have made.</p><p>The right part of Figure 1 illustrates a trade via a virtual pool on VirtuSwap. The trader receives the same 19,550 MATIC — but now from the ETH-MATIC pool, by depositing 10,000 USDC into the pool’s reserve. The ETH-MATIC pool also becomes unbalanced — but to a much lesser degree than the USDC-MATIC pool on the left-hand-side of the figure. The reason is that only one side of the transaction has been affected by the trade — the side from which MATIC is withdrawn, whereas the other side of the pool (ETH) has not been affected.</p><p>An MEV bot still makes an arbitrage trade bringing the pool’s exchange rate back to the exogenous level (2000 MATIC for 1 WETH in our example). However, the MEV bot’s trade is much smaller in magnitude — in this case, the optimal arbitrage trade is to acquire 4.905 ETH for 9,742 MATIC, resulting in a profit of 4.905*$1,000–9,742*$0.5=$34.</p><p>Not only the arbitrage trade size on VirtuSwap is half the trade size on a typical DEX — arbitrage profit on VirtuSwap is 5 times lower than that on a typical DEX! (The further reduction in arbitrage profits is due to the convexity of the pricing curve on an AMM.)</p><p>There is a caveat to this result. The example discussed above is of an arbitrage following a liquidity trade. Another type of arbitrage is a pool composition update following an exogenous exchange rate change — in which case VirtuSwap does not have advantages relative to traditional DEXes. However, the main conclusion remains — arbitrageurs’ profits on VirtuSwap are, on average, lower than those on traditional DEXes. The money not earned by the arbitrageurs is the money earned (or not lost) by LPs — increasing the expected returns to liquidity provision.</p><h3><strong>Is there a free lunch?</strong></h3><p>Do the increased expected returns to LPs, discussed above, come for free? Not quite (as you may have guessed). By providing liquidity on VirtuSwap, an LP agrees to take on themselves the risk of holding reserves of assets that are not native to her pool — making the LP exposed to risks of more than the two native assets of the pool.</p><p>Importantly, however, we take several precautions to mitigate this added risk — and make this risk quite negligible relative to extra returns to LPs.</p><p>First, the risk is limited in scope. The set of assets that are allowed to enter pool reserves is pre-approved by VirtuSwap governance token holders. Initially, this set of assets will be limited to only the more established ones.</p><p>Second, the risk is limited in size. We compute the ratio of the value of total reserves in a pool to the value of the pool’s two native assets — we call this the pool’s “reserve ratio” — and define a threshold, which this ratio cannot exceed as a result of a trade moving assets into the pool’s reserves. (If a proposed trade raises this ratio above the threshold, this trade is reversed.) This ratio currently equals 2% — implying that in the absolute worst case scenario, the risk to LPs for holding reserves is relatively low.</p><p>Third, this risk is short-lived. The reason is that we always actively seek to eliminate pool reserves. This is achieved by exchanging reserves among pools whenever that becomes feasible. Let’s return to our example — in which a reserve of USDC is deposited into WETH-MATIC pool. Imagine that another trade has occurred in the background, in which USDC was bought via a deposit of MATIC into WETH-USDC pool. Under such scenario, the two pools have reserves that can be exchanged — USDC can be moved from the reserve of WETH-MATIC pool to WETH-USDC pool (in which it is one of the two native assets), and MATIC can be moved from the reserve of WETH-USDC pool to WETH-MATIC pool (in which it is also one of the two native assets). Such exchange of reserves is illustrated in Figure 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I3HhV2zOyqe9pX44" /><figcaption>Figure 2 : VirtuSwap pools exchanging reserves</figcaption></figure><p>Note that reserves are exchanged using a single indirect implied exchange rate between MATIC and USDC (computed from the implied exchange rates in the WETH-MATIC and WETH-USDC pools), with no price impact and no fees. In reality, reserves can be exchanged across many combinations of pools, implying that such reserve exchanges happen with high frequency — but always using the indirect implied exchange rate. Our extensive (and ongoing) simulations show that due to these reserve exchanges, the reserve ratio rarely reaches 2%.</p><p>Fourth and finally, this risk is managed. In situations in which a reserve cannot be exchanged for an extended period of time, the protocol (or, the protocol DAO, to be more precise) initiates a sale of the reserve on one of the existing pools for one of the two pool’s native assets and returns of this native asset to the pool.</p><p>To summarize, while there are risks associated with holding reserve assets in pools, these risks tend to be dwarfed by increased expected net returns to liquidity providers.</p><p>Overall, while several DEXes attempt to make improvements either on the traders’ side or on the LP side, VirtuSwap is the only DEX that manages to improve the situation of both traders and LPs — at the expense of arbitrageurs.</p><h3>About VirtuSwap</h3><p>VirtuSwap is a new kind of DEX with unrivaled efficiency.</p><p>VirtuSwap team is comprised of finance professors and crypto veterans, and backed by industry heavyweights.</p><p>We are on a mission to make DEXes dominate the crypto trading landscape, and we are accomplishing it through research, financial engineering and data science.</p><h3>Learn More and Join the Conversation:</h3><ul><li>Read our <a href="https://virtuswap.io/white-paper/">White Paper</a></li><li>Follow us on <a href="https://twitter.com/VirtuSwap">Twitter</a></li><li>Join us on <a href="https://t.me/virtuswap_official">Telegram</a></li><li>Join us on <a href="https://t.co/FMBwUwmjWV">Discord</a></li><li>Read us on <a href="https://medium.com/virtuswap">Medium</a></li><li>Visit our <a href="http://virtuswap.io/">Website</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da2475715b1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How VirtuSwap reimagines DEXes — part I]]></title>
            <link>https://medium.com/@evgeny_lyandres/how-virtuswap-reimagines-dexes-part-i-62b20625cd4d?source=rss-968cb14eb602------2</link>
            <guid isPermaLink="false">https://medium.com/p/62b20625cd4d</guid>
            <category><![CDATA[decentralized-exchange]]></category>
            <category><![CDATA[uniswap]]></category>
            <category><![CDATA[dex]]></category>
            <category><![CDATA[efficiency]]></category>
            <category><![CDATA[virtuswap]]></category>
            <dc:creator><![CDATA[Evgeny Lyandres]]></dc:creator>
            <pubDate>Tue, 05 Jul 2022 14:16:59 GMT</pubDate>
            <atom:updated>2022-07-05T14:18:42.123Z</atom:updated>
            <content:encoded><![CDATA[<h3>How VirtuSwap Reimagines DEXes: Part I</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*83kiPtsVB-4elZ7B" /></figure><p>In our previous <a href="https://medium.com/virtuswap/why-the-dex-world-is-broken-8d3958a01bab">article</a>, we illustrated a significant inefficiency plaguing existing DEXes — a large fraction of trades is indirect (“triangular”) due to a lack of native liquidity pools of sufficient size — leading to unnecessarily high costs of trading (duplicate fees, price impact, and gas). These excessive costs are of tremendous magnitude — around $500M in our estimation were wasted over the past 12 months just on Uniswap and its forks.</p><p>In this article, we explain how Virtuswap mitigates this problem. In one sentence, VirtuSwap uses a novel pool architecture, based on reserve-powered virtual liquidity pools, which solve the problem of triangular trading by making every trade direct — even in the absence of a corresponding pool, and generates up to 50% savings.</p><h3><strong>How VirtuSwap works</strong></h3><p>Let’s come back to our hypothetical example of a triangular trade. As in our previous <a href="https://medium.com/virtuswap/why-the-dex-world-is-broken-8d3958a01bab">article</a>, assume that a user would like to buy MATIC and to sell USDC — however, the native MATIC-USDC pool does not exist. Pools WETH-MATIC and WETH-USDC do exist, leading to a triangular trade on a typical DEX, as illustrated in Figure 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GE_zGXRqBUxkBccv" /><figcaption>Figure 1: Illustration of a triangular trade</figcaption></figure><p>A crucial difference between VirtuSwap and all other DEXes is that on VirtuSwap, in addition to two “main assets”, every pool allows accepting “reserves” of other assets. Think of several safe deposit boxes attached to the pool — each allowed to hold one particular asset — but which are empty at first, when the pool is established. For example, the WETH-MATIC pool can accept reserves of USDC, USDT, DAI, and WBTC, and WETH-USDC pool can accept reserves of USDT, DAI, WBTC, and MATIC. (These lists are just for the sake of an example; in reality pools can accept and hold reserves of many more assets.) Figure 1 describes the virtual-pool-based architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GiRLLJb1HBLBHoju" /><figcaption>Figure 2: VirtuSwap pool architecture</figcaption></figure><p>So now, when our trader wants to swap USDC for MATIC, she goes to the WETH-MATIC pool (i.e. the pool that contains the asset she wishes to acquire) and just deposits her USDC as a reserve (i.e. to the appropriate safe deposit box) of the WETH-MATIC pool.</p><p>Reserves are kept in the pools for a limited amount of time, exchanged back for the pool’s native assets from other pools’ reserves (more on that in the following articles).</p><h3><strong>Example of a trade on VirtuSwap</strong></h3><p>How do we know the price (or, more precisely, the AMM trading curve) based on which the trader will receive MATIC in exchange for USDC sent to the WETH-MATIC pool? Let’s go over an example using concrete numbers.</p><p>Assume that WETH-USDC pool contains 1,000 ETH and 1,000,000 USDC, and WETH-MATIC pool contains 500 WETH and 1,000,000 MATIC. Assume that the trader wishes to acquire MATIC for 10,000 USDC.</p><p>On Uniswap, this trade would amount to sending 10,000 USDC to the WETH-USDC pool, receiving 9.871 WETH based on the <a href="https://medium.com/scalar-capital/uniswap-a-unique-exchange-f4ef44f807bf">constant product formula</a> used in Uniswap (after paying the 0.3% pool fee and around 1% price impact); and then sending 9.871 WETH to the WETH-MATIC pool, and receiving 19,304 MATIC (after paying the 0.3% pool fee and around 2% price impact). In addition to the overall trade cost (double fees plus double slippage of 20,000–19,304)/20,000=3.47%), the trader would have to pay the gas costs twice for the two legs of this triangular transaction.</p><p>Let’s come back to VirtuSwap. To enable trading via a reserve, we need to define a “virtual” USDC-MATIC pool. To avoid any possible exploits, VirtuSwap operates the most conservative virtual pools, which are based on the “lowest common denominator” between respective real pools. In our example, the lowest common denominator between WETH-USDC and WETH-MATIC pools is 500 WETH. Thus, a virtual USDC-MATIC pool, based on 500 ETH on each of the aforementioned real pools, “contains” 500,000 USDC and 1,000,000 MATIC.</p><p>From the trader’s perspective, there is complete indifference between trading on a real vs a virtual pool. In our example, the trader can sell 10,000 USDC on the virtual pool and receive 19,550 MATIC — resulting in 2.25% overall trade cost (fee plus price impact) and gas costs associated with only a single swap transaction.</p><p>In reality, since a trade via the virtual pool is just an abstraction, the trade has to happen on a real pool — via a reserve. Figure 2 describes a trade in which one of the base assets (MATIC) is taken from the pool and a reserve asset (USDC) is deposited into the pool reserve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0EKl-MXt73c5zp4z" /><figcaption>Figure 3: Trading via a reserve asset</figcaption></figure><h3><strong>Generalizations and conclusions</strong></h3><p>Abstracting from savings in gas, in this example the trade’s cost is reduced by 35%. The rate of reduction in trading costs depends on several factors, most important being the relative size of the pools used for a triangular trade on a standard DEX — the more similar the pool sizes used for a two-hop trade, the closer the savings on VirtuSwap to 50%; and if more than two hops are used on a standard DEX, VirtuSwap savings can be even larger.</p><p>The reality is somewhat more complex than the diagram in Figure 2, as oftentimes virtual pools can be created using various combinations of real pools. In case multiple virtual pools exist, VirtuSwap employs a smart routing algorithm (similar in spirit to Uniswap smart routing, but quite different in implementation) to minimize the overall cost of trading.</p><p>Importantly, the savings achieved from trading via VirtuSwap technology are robust to various modifications of constant-product AMMs, such as concentrated liquidity (as in Uniswap v3) and non-constant-product-based trading curves (as in Curve). In fact, savings obtained by trading on VirtuSwap are orthogonal to virtually any modification of a standard constant-function AMM technology. VirtuSwap V1 will be using the simple Constant Product formula, and we will be adding more sophisticated models in later versions.</p><p>To summarize, by using reserve-powered virtual pool architecture, VirtuSwap creates direct liquidity in places in which it did not exist before and makes trading more efficient.</p><p>In this article, we have described the benefits of VirtuSwap architecture to the traders. In the next article, we will be focusing on the gains to liquidity providers — which turn out to be significant as well!</p><h3>Learn More and Join the Conversation:</h3><ul><li>Read our <a href="https://virtuswap.io/white-paper/">White Paper</a></li><li>Follow us on <a href="https://twitter.com/VirtuSwap">Twitter</a></li><li>Join us on <a href="https://t.me/virtuswap_official">Telegram</a></li><li>Join us on <a href="https://t.co/FMBwUwmjWV">Discord</a></li><li>Read us on <a href="https://medium.com/virtuswap">Medium</a></li><li>Visit our <a href="http://virtuswap.io/">Website</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62b20625cd4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>