<?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 Cryptonomore on Medium]]></title>
        <description><![CDATA[Stories by Cryptonomore on Medium]]></description>
        <link>https://medium.com/@cryptonico21?source=rss-3eb7d13da43a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*n1O8kvCt8QLmmDdq</url>
            <title>Stories by Cryptonomore on Medium</title>
            <link>https://medium.com/@cryptonico21?source=rss-3eb7d13da43a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 18:41:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cryptonico21/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[The Maiar Exchange Explained]]></title>
            <link>https://medium.com/@cryptonico21/the-maiar-exchange-explained-fdb40f33e520?source=rss-3eb7d13da43a------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdb40f33e520</guid>
            <category><![CDATA[maiar-exchange]]></category>
            <category><![CDATA[elrondnetwork]]></category>
            <dc:creator><![CDATA[Cryptonomore]]></dc:creator>
            <pubDate>Mon, 20 Sep 2021 09:46:16 GMT</pubDate>
            <atom:updated>2021-09-20T09:46:16.152Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>Introduction</strong></li></ol><p>The Elrond team has made an incredible job to create a nice, fast and elegant decentralized exchange, the <a href="https://maiar.exchange/">Maiar Exchange</a>. Everything they do responds to the highest standards. We could already see this care with the network itself and its incredible speed, scalability and security among many other things, then also with the web wallet, the fantastic Maiar app, and now the Maiar Exchange.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*59jOoCwivHCENoqO-M8TrQ.png" /><figcaption>Maiar Exchange Home Page</figcaption></figure><p>The exchange user interface is exquisite and using it is delightful: it is fast, responsive and elegant.</p><p>But this dex, like Uniswap for example, is a decentralized crypto exchange, and that comes with specific concepts that are new for many, even for crypto holders.</p><p>Some of these concepts are not intuitive at first, so I will review them here, with my own words, to try and make them as clear as possible.</p><p><strong>2. What is a decentralized exchange?</strong></p><p>Let’s start with the basics: what is a decentralized exchange, or “DEX” ?</p><p>A DEX is better understood when compared with a classic centralized exchange or “CEX”. Simply put, a CEX is a platform, like a web site, with a database, an application layer (for identification, logic, …) and a UI (web page or mobile app). Users can connect to the platform and place buy or sell orders that are stored in the database and matched. As it is centralized, all the orders can be matched together and compose the order book. This is quite well understood.</p><p>Now a DEX is a new form of exchange, it’s completely different as it is based on a blockchain, that is run by thousands of nodes, instead of being run on 1 server (to simplify) owned by a company.</p><p>Because of that, there cannot be a centralized order book where users can see their orders matched. So the question is: how can anyone buy or sell?</p><p>This is where the concepts of Automated Market Maker (AMM) and Liquidity Pool (LP) come in.</p><p><strong>3. What are liquidity pools and automated market makers ?</strong></p><p>For a certain pair to be traded, there has to be liquidity. As mentioned, liquidity on a CEX comes from other users. It doesn’t work like that in a DEX. Let’s review the liquidity pool concept with an example: the EGLD-BUSD pair.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nKYVbKJoD207oMPqqfEfYQ.png" /><figcaption>The 2 liquidity pools of the testnet Maiar Exchange</figcaption></figure><p>A first thing to know is that each pair requires its own liquidity pool (LP). A LP is essentially a smart contract where users can deposit tokens, thereby providing liquidity, allowing other users to tap into that liquidity and buy or sell. In exchange for providing liquidity, users receive so called LP tokens.</p><p>This will allow the swap functionality of the exchange to work. Of course, the exchange will provide initial liquidity at launch. But then anyone will be able to add to the LP, until the initial liquidity can be removed.</p><p>The automated market maker (AMM) is the algorithm of the liquidity pool. You could think of an Automated Market Maker as a bot that’s always willing to quote you a price between two assets. These swaps instantaneously happen against assets that are pooled to provide liquidity. You can also provide liquidity in these pools and be rewarded based on their utilization. This allows essentially anyone to become a market maker on an exchange and earn fees for providing liquidity.</p><p>In its current testnet version (Sepember 2021), the Maiar Exchange has 2 traded pairs, and thus 2 liquidity pools:</p><ul><li>EGLD-MEX</li><li>EGLD-BUSD</li></ul><p>The MEX token is the governance token of the exchange, while BUSD is the Binance stable coin that will be available at launch. More on the MEX token later.</p><p><strong>4. What are LP tokens ?</strong></p><p>Important: to provide liquidity to a LP, a user must provide both assets. Example with the EGLD-BUSD LP.</p><p>Let’s imagine that 1 EGLD = 300 BUSD. In the pool, at time t, there are1000 EGLD and 300 000 BUSD.</p><p>User Bob comes and wants to add 10 EGLD to the LP. To do that, Bob must accept to lock 10 EGLD AND 3000 BUSD.</p><p>After Bob does that, the pool will contain 1010 EGLD and 300 300 BUSD. So Bob just added exactly 1% to the LP (this is not a realistic number as pools can be very big and shares are usually much smaller).</p><p>In exchange for the liquidity, Bob will received LP tokens representing its current share of the pool. Of course, if the pool size increases or decreases later on, then Bob’s share will adapt accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kLDI6C0k01H8WAqsWAWhNg.png" /><figcaption>The “My Liquidity” tab of the Maiar Exchange</figcaption></figure><p>In the screenshot above, I have received 5.48 LP tokens from the EGLD-MEX liquidity pool, representing a 0.001% share of the pool.</p><p><strong>5. Why LP tokens at all ?</strong></p><p>LP tokens can be used in different ways:</p><ul><li>Get your tokens back. To remove your liquidity from the pool and get it back, you have to give your LP tokens back</li><li>But you can also stake your LP tokens, more on that part (the Farm) later</li></ul><p>When you want to get your tokens back, you somehow “exchange” or swap your LP tokens against your locked assets, here EGLD-BUSD.</p><p>BUT, in the meantime, the price of the assets may have changed. In the case of the EGLD-BUSD pool, as BUSD is a stable coin, only the EGLD price can change. But in the EGLD-MEX pool, both prices can evolve in their own direction.</p><p>So you when you give your LP tokens back, you will receive the equivalent of your initial SHARE of the pool.</p><p>This means that when a user provides 10 EGLD and 3000 BUSD to the pool, that user, when withdrawing, may receive different quantities of each asset, but will always receive the same share. This is called impermanent loss and can be easily understood.</p><p>So these LP tokens represent a share of the pool, and this is what a user receives when providing liquidity, and what a user gives back when withdrawing that liquidity. They could have been called “Pool Share Tokens”.</p><p><strong>6. Impermanent Loss and The constant formula</strong></p><p>Let’s understand what is impermanent loss and how it works.</p><p>The EGLD-BUSD liquidity pool, at a certain point in time, will contain x EGLD and y BUSD. This is the constant formula: x * y = k.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/0*kmAHuZGatPie8_PJ.png" /><figcaption>The constant formula</figcaption></figure><p>For clarity’s sake, let’s consider a simplistic example to make the concept clear.</p><p>Let’s say there is a liquidity pool with 90 <a href="https://twitter.com/search?q=%24egld&amp;src=cashtag_click">E</a>GLD and 27000 BUSD with 1 EGLD worth 300$. At this moment:</p><p>x * y = k<br>90 * 27 000 = 2 430 000</p><p>You decide to add 10 EGLD so the pool will have 100 EGLD and 30 000 BUSD.</p><p>x * y = k<br>100 * 30 000 = 3 000 000</p><p>k is a “constant” at this moment, provided that the pool size doesn’t change again. If new liquidity providers come in, or existing ones withdraw liquidity, it will change. So let’s assume that doesn’t happen.</p><p>Now people can come and swap EGLD and BUSD in that pool. When that happens, the rule is that k must always remain the same.</p><p>So if someone “buys” EGLD and swaps 10 EGLD, and removes them from the pool, we can compute how many BUSD must stay in.</p><p>90 * ? = 3 000 000 <br>so y = 3 000 000 / 90 = 33,333.333</p><p>So it means the following: after the swap, the amount of BUSD went from 30 000 to 33,333.333.</p><p>So the cost of buying 10 EGLD was 3,333.333.<br>So each EGLD has cost on average: 333.3 $</p><p>After this happens, should you decide to remove your 10% by redeeming your LP tokens, what will you get? Well, the SHARE so 10% of 90 EGLD and of 33,333.3 so:</p><p>9 EGLD and 3,333 BUSD..</p><p>So had you not provided liquidity you have kept 10 EGLD and 3000 BUSD so 10 * 333 + 3000 = 6333.</p><p>Now you have:</p><p>(9 * 333) = 2997 + 3333 = 6330.</p><p>So a tiny bit less. This is called impermanent loss and is more an opportunity cost than a loss really. Usually, the fees that liquidity provider receives for providing liquidity can make up for this loss.</p><p><strong>7. What fees does a liquidity provider receive?</strong></p><p>The trading fees (swap fees) paid by users who use the liquidity pools to swap tokens are distributed automatically among all liquidity providers, proportional to their stake. There is a 0.3% fee for swapping tokens, from which</p><ul><li>0.25% goes to the liquidity providers,</li><li>and for the remaining 0.05%, the contract will buy MEX from the EGLD-MEX pool and burn it.</li></ul><p>The 0.25% are simply added immediately to the pool without minting (creating) any new LP token. So this has the effect of splitting the transaction fee proportionally between all the existing liquidity providers.</p><p>So these fees are not immediately available to the liquidity provider. The liquidity providers will receive the fees when removing liquidity from the LP.</p><p>But that’s not all. The real fun begins when these LP tokens are staked in the farm.</p><p><strong>8. The farm</strong></p><p>On Maiar DEX, LP tokens can be staked in a staking pool specific to each liquidity pool so that even more rewards are earned, in the form of MEX tokens.</p><p>So a liquidity provider will earn rewards from 2 streams: the fees from the LP and MEX for staking the LP tokens in a staking pool.</p><p>However, these fees will be earned at a different schedule:</p><ul><li>The LP fees, as explained above, are earned only when removing liquidity from the pool</li><li>The MEX (or locked MEX) rewards are earned on a permanent basis and visible immediately in the farm under “My Earned Mex”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M7P5BMKTnRls6kOJCnDiHA.png" /><figcaption>The Maiar Exchange Farm</figcaption></figure><p>Attention: when you stake your LP tokens, the corresponding line(s) from the “My Liquidity” tab will disappear.</p><p>So these yields, from the farm, are meant to incentivize long term liquidity by giving an additional revenue stream to liquidity providers.</p><p>These rewards are in MEX but a user can decide to lock these rewards during 1 year and therefore enjoy 2x APR. If you choose to do so then the rewards will be “Locked MEX” (LKMEX)instead of MEX.</p><p><strong>9. What are LKMEX ?</strong></p><p>These LKMEX have the same value as MEX.</p><p>As these LKMEX are to be locked during 1 year, but users can come in all the time, well each month a new LKMEX token is created that will be unlocked after 1 year. This means there are multiple different LKMEX tokens, that differ only from their release schedule. These tokens will be numbered as follows:</p><p>LKMEX#1: to be unlocked for example in Oct 2022<br>LKMEX#2: to be unlocked in Nov 2022<br>…</p><p>These tokens are periodically merged automatically, there’s nothing to worry about.</p><p>The LKMEX time lock mechanism will begin on the first day of the Maiar exchange deployment.</p><p>All LKMEX tokens issued over the course of 1 month will have the same release schedule.</p><p><strong>10. APR / APY</strong></p><p>Do you know what these are and the difference between them? According to <a href="https://www.investopedia.com/personal-finance/apr-apy-bank-hopes-cant-tell-difference/">Investopedia</a>, b<a href="https://www.investopedia.com/personal-finance/apr-apy-bank-hopes-cant-tell-difference/">oth are used to calculate interest for investment</a>. But while APR and APY may sound the same, they are quite different and not created equal.</p><ul><li>APR = Annual Percentage Rate</li><li>APY = Annual Percentage Yield</li></ul><p>What does it mean? Simple enough: APY takes into account compounding, but APR does not.</p><p>Compounding refers to earning or paying interest on previous interest, which is added to the main sum of a deposit.</p><p>So APY does take into account the frequency with which the interest is applied — the effects of intra-year compounding.</p><p>There are multiple APY calculators available online. The most important parameters are the APR and the compound frequency.</p><p>Let’s review a few examples :</p><p>APR: 10%<br>Frequency: Monthly =&gt; APY = 10.47%<br>Frequency: Daily =&gt; APY = 10.52%</p><p>So the difference is small with a 10% APR.<br>Now let’s review bigger APR’s like crypto can provide (unlike banks).</p><p>APR: 100%<br>Frequence: Monthly =&gt; APY = 161.30%<br>Frequence: Daily=&gt; APY = 171.46%</p><p>Bigger difference here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*uTm3o8LiYDwTsYhcjT5k1w.png" /></figure><p>Now with the testnet Maiar DEX current numbers.</p><p>APR = 653%<br>Frequence: Monthly =&gt; APY = 18279.35% !<br>Frequence Daily =&gt; APY = 64597.85 !!!</p><p>Huge difference in APY now. So the bigger the APR, the more important is the compounding frequency. With the Maiar Exchange, the rewards are paid basically every few seconds, so the frequency can be quite high. However, while the Elrond network transaction fees are very low, compounding too low amounts too often can be counter productive as there are fees attached to these actions. As low as they are, paying them hundreds of times per day might not make sense.</p><p>I haven’t heard of an automated way to compound yet, but that will probably happen.</p><p><strong>11. What can a user do in the Farm?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wvMv5DLblQY8r6pH2UIG7g.png" /><figcaption>The Farm Actions</figcaption></figure><p>Well, a user can:</p><ul><li>Stake</li><li>Harvest rewards</li><li>Reinvest all</li></ul><p>There currently 3 farms:</p><ul><li>the MEX farm</li><li>the EGLD-BUSD farm</li><li>the EGLD-MEX farm</li></ul><p>Staking in the MEX farm means staking MEX or LKMEX tokens.<br>Staking in the EGLD-BUSD farm means staking LP tokens from the EGLD-BUSD Liquidity Pool.<br>Staking Staking in the EGLD-MEX farm means staking LP tokens from the EGLD-MEX Liquidity Pool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*uQkTbQZLFf-smsJPqlbVTA.png" /><figcaption>Stake in the Maiar MEX Farm</figcaption></figure><p>In the MEX farm, you can choose to stake MEX or LKMEX tokens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*HuZID52H1SHZnEcBgo3sFA.png" /><figcaption>Staking in the Maiar EGLD-MEX farm</figcaption></figure><p>In the EGLD-MEX farm, you can stake EGLDMEX LP tokens, or Locked EGLDMEX LP tokens (second line: the EGLDMEX with the small yellow lock icon). You get those when adding liquidity to the EGLD-MEX LP, by using LKMEX instead of MEX.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*yPFtysdMzSHcehykbzVXnw.png" /><figcaption>Staking in the Maiar EGLD-BUSD farm</figcaption></figure><p>In the EGLD-BUSD farm, you can stake only EGLDBUSD LP tokens. This is different from the EGLD-MEX farm and makes sense, as here no MEX are involved, and therefore no LKMEX.</p><p><strong>12. Quick recap</strong></p><p>I hope this made sense. I made this small visual of the EGLD-BUSD liquidity pool, I hope it helps.</p><p>In there I consider 2 types of users:</p><ul><li>The trader</li><li>The liquidity provider</li></ul><p>while anyone can be both of course.</p><p>So a trader can swap tokens, and the fees are used to enlarge the liquidity pool, and burn MEX.</p><p>A liquidity provider can provide liquidity, for which he get LP tokens.<br>Then he can stake these LP tokens in the the EGLD-BUSD staking pool or farm, and receive MEX or Locked MEX rewards in exchange.<br>Finally, the liquidity provider can redeem his LP tokens and remove the liquidity he provided, from the pool, according to the initial share he provided.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*tT7DeK1MWoBiSDVLKcn93w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdb40f33e520" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>