<?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 XDefiLabs on Medium]]></title>
        <description><![CDATA[Stories by XDefiLabs on Medium]]></description>
        <link>https://medium.com/@xdefilab?source=rss-38bf9c49e563------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nYHKwqG1sTLcWZ5s5oWfXA.jpeg</url>
            <title>Stories by XDefiLabs on Medium</title>
            <link>https://medium.com/@xdefilab?source=rss-38bf9c49e563------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 23 Jun 2026 08:51:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@xdefilab/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[xDeFi’s weight adjustment of farming pools]]></title>
            <link>https://xdefilab.medium.com/xdefis-weight-adjustment-of-farming-pools-7e22701d334e?source=rss-38bf9c49e563------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e22701d334e</guid>
            <dc:creator><![CDATA[XDefiLabs]]></dc:creator>
            <pubDate>Fri, 26 Mar 2021 08:46:33 GMT</pubDate>
            <atom:updated>2021-03-26T08:46:33.841Z</atom:updated>
            <content:encoded><![CDATA[<p>Based on the current pledged funds of the farming pools, xDeFi makes the following adjustments to the weights with block reward of the farming pools where the following tokens are in:</p><p>XDEX main pool: from the current weight of 45 to 115.2;</p><p>The pool of BAL : from the current weight of 5 to 2;</p><p>The pool of ZRX : from the current weight of 5 to 2;</p><p>The pool of SNX : from the current weight of 5 to 2;</p><p>The pool of KNC : from the current weight of 5 to 2;</p><p>The pool of INCH : from the current weight of 5 to 2;</p><p>The pool of UNI : from the current weight of 5 to 2;</p><p>The pool of BNT: from the current weight of 5 to 2;</p><p>The pool of CRV : from the current weight of 5 to 2;</p><p>The pool of LRC : from the current weight of 5 to 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/0*kKfQPRJkxdLd9bGc" /></figure><p>The total number of rewards for each farming pool remains unchanged, and the weight adjustment has been added to the time lock. The adjustment will take effect at 1:00 am on March 27th(UTC+8).</p><p>Reminder: xDeFi will conduct comprehensive data analysis of each farming pool according to TVL, and optimize and adjust the output weight of each pool block from time to time. Before each optimization, an advance announcement will be made in the community. Please refer to the the pool’s weight allocates your funds reasonably. After the DAO management is opened, the weight adjustment plan will be decided by the community to vote.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e22701d334e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The community rewards are already available]]></title>
            <link>https://xdefilab.medium.com/the-community-rewards-are-already-available-8733fea5d8c6?source=rss-38bf9c49e563------2</link>
            <guid isPermaLink="false">https://medium.com/p/8733fea5d8c6</guid>
            <dc:creator><![CDATA[XDefiLabs]]></dc:creator>
            <pubDate>Wed, 24 Mar 2021 15:51:23 GMT</pubDate>
            <atom:updated>2021-03-24T15:51:23.707Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-3JJgnjfaOh-jHmHhGbbeA.png" /></figure><p>The community rewards are already available, including the first round of testing on the Ethereum Kovan testnet, the second round of testing on the Ethereum Kovan testnet, the invitation bounty activity, and the first round of voting for the Binance Smart Chain (BSC) Grant. A total of 580,970 XDEX (worth approximately $1.2 million) were airdropped.</p><p>Airdrop reward collection address: <a href="https://xdex-airdrop.vercel.app/">https://xdex-airdrop.vercel.app/</a></p><p>Airdrop contract address: 0x25fB9a4A430120E945C48f4a0DC7CE9b41fFDe4F<br>Valid time: You can get it within 15 days from now</p><p>Yield farming on mainnet will be launched soon, stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8733fea5d8c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Tutorial about xDeFi’s Yield Farming]]></title>
            <link>https://xdefilab.medium.com/the-tutorial-about-xdefis-yield-farming-961f221b7c2b?source=rss-38bf9c49e563------2</link>
            <guid isPermaLink="false">https://medium.com/p/961f221b7c2b</guid>
            <dc:creator><![CDATA[XDefiLabs]]></dc:creator>
            <pubDate>Wed, 24 Mar 2021 15:18:41 GMT</pubDate>
            <atom:updated>2021-03-24T15:18:41.524Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>1、Login to xDeFi for buy and sell‌</strong></p><p>link to xDeFi：<a href="https://swap.xdefi.com/">https://swap.xdefi.com/</a>‌</p><p>It will be automatically linked and signature is required ( no gas cost) if your wallet is Metamask. The other wallets shall be activated accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*4xEct6jbz2A4wAQxAkiPLw.jpeg" /></figure><p>‌The Balance on the Swap page shows the token left in your wallet. If you have never traded with the account, please click unlock for approval. You can set your own transaction rules( including Slippage Tolerance,Interface Settings)by clicking little gear icon. Others are the same as common transactions, just by clicking Swap to buy and sell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*zuwJozNTCnEd0hlDrqg_RA.jpeg" /></figure><p><strong>2、‌Provide liquidity‌</strong></p><p>By clicking POOL at any page, you will come to the pool.‌</p><p>You can either create liquidity pools or add or cancel liquidity to the existing pools as well as search pools by clicking search button. For those pools named farming, by adding assets, one can start its liquidity farming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*-f8i62cKAUrzvcixo39tYA.jpeg" /></figure><p><strong>3、How to add liquidity</strong></p><p>In the first place, choose the pool that you want to add liquidity, by clicking ADD, then there you are.‌</p><p>Adding liquidity can be divided into two parts, multi assets adding and the single asset adding. The difference lies in the first one is being added directly, while the second one is being added when the asset is converted automatically to multi assets, which with appropriate ratio to the pool, basing on the current transaction prices.‌</p><p>Likewise, you should click approve ( gas is cost) first, if you have never unlocked any assets in the pool. The number shows red if your asset is lacking.‌</p><p>To facilitate your operation, we provide four kinds of ratios 25%, 50%, 75%, 100%. By clicking on one of them, your asset shall be filled in accordingly.‌</p><p>At last, you can add your liquidity by clicking Add Liquidity button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*elFuxrTHkOhbJCA3hzy6pQ.jpeg" /></figure><p>‌Single asset and multi assets have same procedures except for you should firstly choose which one to go through.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*NmYXNu5TkpU3Nz32rwwSTg.jpeg" /></figure><p><strong>4、Farming</strong></p><p>Enter in farming by clicking the Farm button at the top of any page.‌</p><p>There are main pools and normal pools. The main pools are characterized by fast speed, slow unlocking, normal pools are the converse. you can choose either of them, and enter in directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*_u0xYO8nmS_WUVgOGy6Thg.jpeg" /></figure><p>After entering the farming page, there are three messages on the left side: Earned, Unlocking, and Withdraw. Earned stands for the number of tokens that you have dug in all the pools below but still need to be unlocked. The unlocked number is the token you are unlocking. The number that can be withdrawn is tokens that you can withdraw directly to the wallet.‌</p><p>Harvest and Withdraw are on the right corner.‌</p><p>Click harvest button, you can withdraw earned tokens added to the unlock for unlocking. The unlocking value means your voting rights, and the larger the value is, the more voting rights you have. If the earned tokens are not transferred to unlocking process, no profit or voting rights will be obtained.‌</p><p>Click the withdraw button to withdraw the tokens that can be withdrawn directly to your wallet.‌</p><p>It should be noted that the three items earned, unlocked, and withdrawable on the upper left side of the ordinary pool are the sum of the income of all ordinary pools, instead of the income of a single pool.‌</p><p>When you click Harvest or Withdraw, you can only harvest or Withdraw from a single pool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*udiLFhNj9haBF8m-jSckug.jpeg" /></figure><p>If you do not approve, you need to click Approve to allow farming.‌</p><p>If you do not have the liquidity certificate (XPT) of the farming pool, namely, you have not deposited liquidity in the farming pool, the deposit and withdrawal of the farming pool are grayed out. In this case, you can click on other place of the farming pool to enter in the liquidity pool of the farming pool. For depositing liquidity, please refer to the previous chapter on add liquidity.</p><p>‌Click Confirm and start to farm after depositing the liquidity certificate (XPT) .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*_vC_opxW3H4UNYTPIwIFPA.jpeg" /></figure><p><strong>5、‌Halflife</strong></p><p>Entering into the page by clicking Halflife on the navigation bar.‌</p><p>Clicking on Pool, you can check the status of each stream.‌</p><p>Clicking on Mine, check streams relevant to yourself.‌</p><p>Clicking on New, create your own time lock for stream payments.‌</p><p>Clicking on Details, check details of each stream.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*8uI7bsswH9V0FNHrWe7NbQ.jpeg" /></figure><p><strong>‌Create halflife</strong></p><p>‌Click the select token input, you can select the token in the list, or enter the ERC20 address of a token in your wallet.‌</p><p>Click the total amount of capital flow token input box and enter the number of tokens that you want to send. The maximum amount of each currency in Halflife needs to be approved (for example: sending usdt, the maximum allowed amount was 100 before, if you want to send 1000 this time, you need to be re-approved).‌</p><p>Click the Recipent address and enter the ERC20 address you want to send to.‌</p><p>Start block fill in the start block of halflife, we automatically fill in the block 6 hours after the current time for you.‌</p><p>please fill in the number of blocks required to unlock once in the interval block, representing K in the formula.‌</p><p>Unlock Ratio should be the percentage of each unlock, meaning the ratio in the formula.‌</p><p>Half-life formula reference：‌</p><p>The time needed to unlock the half of the current‌</p><p>t=−K/log2(1−ratio)∗13.1s</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*6CcdYffaH3rZ3kKs-JjKCA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=961f221b7c2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[xDeFi Contracts Have Passed the CertiK Security Audit!]]></title>
            <link>https://xdefilab.medium.com/xdefi-contracts-have-passed-the-certik-security-audit-b7ab403f0aa8?source=rss-38bf9c49e563------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7ab403f0aa8</guid>
            <dc:creator><![CDATA[XDefiLabs]]></dc:creator>
            <pubDate>Fri, 05 Mar 2021 07:27:38 GMT</pubDate>
            <atom:updated>2021-03-05T07:27:38.783Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*2svHUHiGlUtz5G8Gn7Ib0w.jpeg" /></figure><p>The protocol stack of xDeFi is undergoing the second Ethereum Kovan testnet activity. Welcome everyone to our testnet to experience Swap, Pool, Farm and HalfLife functional modules.</p><p>Now the development team of xDeFi is pleased to announce to everyone that after many audits and communications, the Dex, Farm, and HalfLife contracts have officially passed the final audit of CertiK, and all known bugs and risk points found have been fixed.</p><h3>Smart contract audit</h3><p>Security Audit Certificate, check here: <a href="https://certik.org/projects/xdefi">https://certik.org/projects/xdefi</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3KIEi-uDhNBYZbI37tZStA.jpeg" /></figure><p>For a detailed audit report about xDeFi, check here: <a href="https://github.com/xdefilab/xdefi-base/blob/master/audits/Certik%20Final%20Report%20for%20XDeFi.pdf">https://github.com/xdefilab/xdefi-base/blob/master/audits/Certik%20Final%20Report%20for%20XDeFi.pdf</a></p><p>For a detailed audit report about XDEX-Gov-CertiK check here: <a href="https://github.com/xdefilab/xdefi-base/blob/master/audits/XDEX-Gov-CertiK-Final-Comments.pdf">https://github.com/xdefilab/xdefi-base/blob/master/audits/XDEX-Gov-CertiK-Final-Comments.pdf</a></p><p><strong>Thanks to the CertiK team for their unremitting efforts for the security of xDeFi’s contracts!</strong></p><p>The xDeFi team always believes that the security of the contract code is the cornerstone of DeFi.</p><p>More security audits will continue and will be released to the community as soon as possible in the future. Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7ab403f0aa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[xDeFi Contracts Have Passed the SlowMist Security Audit!]]></title>
            <link>https://xdefilab.medium.com/xdefi-contracts-have-passed-the-slowmist-security-audit-48e173b6f7f5?source=rss-38bf9c49e563------2</link>
            <guid isPermaLink="false">https://medium.com/p/48e173b6f7f5</guid>
            <dc:creator><![CDATA[XDefiLabs]]></dc:creator>
            <pubDate>Fri, 05 Mar 2021 07:27:18 GMT</pubDate>
            <atom:updated>2021-03-05T07:27:18.315Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*bNIQ3OvjeAxp7WPfqFoBGw.jpeg" /></figure><p>The protocol stack of xDeFi is undergoing the second Ethereum Kovan testnet activity. Welcome everyone to our testnet to experience Swap, Pool, Farm and HalfLife functional modules.</p><p>Now the development team of xDeFi is pleased to announce to everyone that after many audits and communications, the Dex, Farm, and HalfLife contracts have officially passed the final audit of SlowMist, and all known bugs and risk points found have been fixed.</p><h3><strong>Smart contract audit</strong></h3><p>Security Audit Certificate, check here: <a href="https://www.slowmist.com/en/security-audit-certificate.html?id=7b91209f526407299aee5f99688b62fb2c337a4316a6b305719a9e3cd5442348">https://www.slowmist.com/en/security-audit-certificate.html?id=7b91209f526407299aee5f99688b62fb2c337a4316a6b305719a9e3cd5442348</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QA-zxw5_LtzVniL-bhT8_g.jpeg" /></figure><p>For a detailed audit report about xDeFi-DEX, check here: <a href="https://github.com/xdefilab/xdefi-base/blob/master/audits/XDeFi-DEX%20Smart%20Contract%20Security%20Audit%20Report.pdf">https://github.com/xdefilab/xdefi-base/blob/master/audits/XDeFi-DEX%20Smart%20Contract%20Security%20Audit%20Report.pdf</a></p><p>For a detailed audit report about xDeFi-governance-token check here: <a href="https://github.com/xdefilab/xdefi-base/blob/master/audits/XDeFi-Gov%20Smart%20Contract%20Security%20Audit%20Report.pdf">https://github.com/xdefilab/xdefi-base/blob/master/audits/XDeFi-Gov%20Smart%20Contract%20Security%20Audit%20Report.pdf</a></p><p><strong>Thanks to the SlowMist team for their unremitting efforts for the security of xDeFi’s contracts!</strong></p><p>The xDeFi team always believes that the security of the contract code is the cornerstone of DeFi.</p><p>More security audits will continue and will be released to the community as soon as possible in the future. Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48e173b6f7f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The second award-winning on testnet about xDeFi]]></title>
            <link>https://xdefilab.medium.com/the-second-award-winning-on-testnet-about-xdefi-873c877b6612?source=rss-38bf9c49e563------2</link>
            <guid isPermaLink="false">https://medium.com/p/873c877b6612</guid>
            <dc:creator><![CDATA[XDefiLabs]]></dc:creator>
            <pubDate>Wed, 03 Mar 2021 07:37:02 GMT</pubDate>
            <atom:updated>2021-03-03T07:49:25.018Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*Tr-hHOl6rKRvBLPsnhJbvA.png" /></figure><p>The protocol stack of xDeFi was launched on the Ethereum Kovan testnet on December 15, 2020, and successfully completed the first testnet prize-winning from February 7th to February 21st, 2021（UTC+8).</p><p>During the first testing, the entire site had more than 10,000 UV in a single day, more than 4,000 people participated, and more than 7,790 Streams were created. A total of 9.94 million XDEX was locked. The Total Liquidity reached 10 Billion USD and the Total Volume reached 25 Million USD. XPT shares reached 860,578.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cVXhzQGl_bHxdrL1JsWRnw.png" /><figcaption>Screenshot of the “HalfLife” page of the testnet</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*chXCdN_bmZFCSUGSla8G9w.png" /><figcaption>Screenshot of the “Data” page of the testnet</figcaption></figure><p>At the same time, test users also gave feedback on many constructive improvements. Thank you very much for your active participation. The reward list of first test and the bug feedback are still under final review and will be announced at a later date.</p><p>Technical colleague have successfully repaired the bugs reported in the first test. In order to further check the missing parts and improve the product experience, the second testing activity is specially carried out. The test tasks and requirements are the same as the first time. All users are invited to test and experience Swap, Pool, Farm and HalfLife functional modules. During this testing activity, valid users participating in the testing activity can once again share 100,000 XDEX (not including bug rewards) token incentives.</p><p><strong>Activity Time</strong></p><p>2021.03.03 13:30 AM- 2021.03.10 13:30 AM (UTC+8)</p><p><strong>Activity contents</strong></p><p><strong>Activity 1 : Experience xDeFi immediately and share 100,000 XDEX</strong></p><p>Activity reward : 20 XDEX/person</p><p>Reward quota : First-come-first-served, this test will automatically end after the reward is issued.</p><p>Way of participation : Get the test coins through the faucet, you can view<strong> “How to get Kovan testnet tokens”</strong>.</p><ul><li>Log in to <a href="https://swap.kovan.xdefi.com;">https://swap.kovan.xdefi.com ;</a></li><li>Connect to the Ethereum Kovan test network through the MetaMask wallet ;</li><li>Complete the following operations on xDeFi through the Kovan testnet :</li></ul><p>a. Exchange (Swap) ;</p><p>b. Add liquidity, remove liquidity ;</p><p>c. Create stream with xHalfLife.</p><p>Activity Details<strong> ：</strong>2021.03.03 13:30 AM- 2021.03.10 13:30 AM (UTC+8), all users who complete tasks （3 times Swap + 1 time to add liquidity + 1 time to remove liquidity + 1 time to use xHalfLife to create a stream”）on the Koven testnet as required will have the opportunity to share event rewards.</p><p>Each user can get up to 20 XDEX until the 100,000 tokens are issued. After xDeFi is officially launched on the Ethereum mainnet, the XDEX token rewards on mainnet will be issued to the MetaMask address of each eligible user participating in the testnet activity.</p><p><strong>Activity 2 : Find bugs and win rewards</strong></p><p>Activity reward : 500 XDEX/ Bug</p><p>How to participate : If you find any bugs caused by platform problems during the “Activity 1” testnet experience, you can scan the QR code below to submit the bug description through the questionnaire, and you can also give us feedback on your experience and suggestions. After the xDeFi team confirms the bug as a valid bug, when the mainnet goes online, users who submit valid bugs will be issued 500 XDEX/bug rewards to their reserved Ethereum wallet address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*I1jqLShWmioe8Okl" /></figure><p>Activity Details :</p><p>a. When multiple users submit the same bug, the user who submitted the bug first will get the bug reward.</p><p>b. The same user can submit up to 3 bugs. The user reward is calculated according to the total number of adopted bugs, and each person can accumulate up to 3 times.</p><p>c. Users can check the bug adoption status and award status through the follow-up articles of this official account of xDeFi.</p><p><strong>​Precautions for this test</strong></p><ul><li>All rewards will be issued to the Ethereum MetaMask account address reserved by the user after the protocols are launched on the Ethereum mainnet.</li><li>Each IP corresponds to only one MetaMask account address, and the account creation time (the first account transaction record) requires more than 2 months. If there are multiple addresses, only the account with the most rewards will be issued rewards;</li><li>The final interpretation right of this test belongs to the xDeFi team.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=873c877b6612" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[xHalfLife Protocol：Smart Contract For Vesting]]></title>
            <link>https://xdefilab.medium.com/xhalflife-protocol-smart-contract-for-vesting-e5ee49857421?source=rss-38bf9c49e563------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5ee49857421</guid>
            <category><![CDATA[streaming-finance]]></category>
            <category><![CDATA[vesting]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[xdefi-protocols]]></category>
            <category><![CDATA[xhalflife]]></category>
            <dc:creator><![CDATA[XDefiLabs]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 10:29:12 GMT</pubDate>
            <atom:updated>2021-03-01T10:29:12.156Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Mathematically, you have no choices other than xHalfLife.</blockquote><h3>1. Practices of Streaming Protocols On Ethereum Blockchain: A Brief History</h3><p>In 2020H1, in order to increase users and attractiveness, Compound.finance tokenized its governance power by rewarding banking behaviors on its lending system, allowing users to participate in the voting activities to approve improvement plans.</p><p>This $COMP farming greatly simplified compound interest calculations block by blocks: Only new activities from users (Deposit/withdraw funds, or claim $COMP earnings ) will cause claimable $COMP transferred to users’ wallets, with gas cost paid by users themselves. The compound interest calculation on the Ethereum blockchain is continuous, but gas consumption is greatly reduced by this lazy claiming scheme.</p><p>In 2020Q2, Mainframe announced the acquisition of Sablier Protocol. Sablier is a real-time financial protocol on Ethereum that supports continuous, autonomous, and trustless payroll. In the form of linear unlocking, it was widely used on agreements between creditors (employees) and the debtors(employers), so it was also modified to simulate loan issuing patterns: Debtors issue tokenized loans and obliged to pay coupons to creditors on a block basis.</p><p>In 2020Q3, Sushiswap tokenizes its liquidity providers’ revenue to a unified $SUSHI tokens. With some codes modified from YAM, it still designs a webpage with LP farming revenue which is jumping every second. Theoretically, the mining contract exchanges the potential reward cashflows on LP token (liquidity service commitment certificate) to a $SUSHI bond ( which generates a set of future $SUSHI interests).</p><h3>2. xHalfLife Protocol: Thoughts, Improvements, and Implementation</h3><h4>2.1 Highly Unstable APY In Early Stages Of DEX Tokens’ Farming</h4><p>Farming projects have always faced a dilemma: Higher APY means extraordinary farming attractiveness which may cause rapid accumulation of TVL(Total Value Locked), but soon it will be converted to higher potential dumping power. Considering the case of $SUSHI, within a few days after launching, many LP pools are eligible for ~1400% APY in the early stages. After Chef quitted the SushiSwap team, a sudden dump on ETH itself ( about -40%) happened, which caused SUSHI-ETH liquidity to collapse, $SUSHI price reduced by 96%. Highly unstable tokenomics always lead to the problem of lacking confidence.</p><h4>2.2 xHalfLife: Mathematically No Other Choices</h4><p>The most commonly used vesting scheme among Internet companies is 4–6 years of linear or accelerated vesting (there are examples of 1/6 reward per year for 6 years, and examples of 15%-25%-25%-35% for 4 years).</p><p>At the end of 2020, after taking conventional vesting into consideration, the SushiSwap dev team maintained the confidence of SushiSwap holders by embedding the repurchase codes into their smart contracts, and 2/3 of the farming revenue will be vested for 6 months. The problem is, after 6 months later, vesting income will still be a considerable dumping power if the projects make no progress during this period. Comparatively, Filecoin mining designed a 25% released + 75% linearly vesting strategy which smooths the token distribution on the time span, but if someone backtraced many continuously released cash flows, for Solidity it will directly lead to “out of gas error”: Backtracking 6 months’ reward from every block means writing a “for” clause computing historical states involving over 1.2 million blocks.</p><p>How can we simplify vesting schemes and get rid of the highly gas-consuming loop? A compromising approach is computing rewards off-chain and push statistics back periodically ( just like what balancer.exchange did on distributing their $BAL), but the final solution on-chain is xHalfLife: Choosing half-life parameters, distributing rewards that are exponentially decayed on the continuous time span.</p><p>The vesting scheme of xHalfLife is strongly inspired by the decay of radioactive particles and the law of drug concentration falling in the blood: their state is only related to the previous moment T0: when the status of the previous moment is A0, the status in the next moment is A0* (1- mu*t), where mu is a parameter directly related to halflife period. The reason why the drug concentration is mentioned is that in order to ensure the adequate effect of the drug, people must take the drug on time repetitively to add up the concentration in the blood, which means status a may be increased from A0 to A0+a at arbitrarily any time, which is consistent with the logic that “DeFi farmers increase their continuous farming rewards at any time”.</p><p>“You don’t consider historical state paths”. It is an important feature of exponential distribution (continuously distributed), geometric distribution (discretely distributed), and Markovian random process ( continuous or discrete). Without considering the historical state, XDEX farmers earn rewards vested in xHalfLife vesting protocol to ensure the stability of the total tokenomics, and also get rid of computing on historical states million times on the Ethereum blockchain when they want to extract their earnings.</p><h4>2.3 Implementation</h4><p>The parameters of the xHalfLife protocol have 4 parameters: <strong>StartBlock, K, ratio</strong>, and <strong>eps</strong>. User’s funds are divided into two accounts: <strong>Vested Income</strong> and <strong>Withdrawable Income</strong>.</p><p>Any new fund goes directly to <strong>Vested Income</strong> first. From blockheight at <strong>StartBlock</strong>, whenever the blockchain height can be divisible by <strong>K</strong>, if <strong>Vested Income </strong>exceeds <strong>eps</strong>, smart contract will transfer the <strong>ratio*Vested Income to Withdrawable Income.</strong></p><p>The halflife period is estimated as -<strong>K</strong> / log_2(1-<strong>ratio</strong>) * 13.1 seconds.</p><h3>3 xHalfLife: Applications</h3><p>In the xDeFi&amp;Labs seed round financing process, the team led by the CTO won the championship at Dorahacks&amp;BSC Beijing Hackathon in 2020 with the full implementation of xHalfLife. Founders of xDeFi&amp;Labs continued to share ideas of xHalfLife to the community and investors since XDEX tokens are vested for XDEX farmers, teams, and investors by calling the exact same smart contract with different parameters.</p><p>The whole team is also actively seeking opportunities to integrate xHalfLife protocols to IXO platforms to meet different vesting requirements in different financing activities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5ee49857421" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[xDeFi Airdrop Invite Competition]]></title>
            <link>https://xdefilab.medium.com/xdefi-airdrop-invite-competition-61bdd6491eef?source=rss-38bf9c49e563------2</link>
            <guid isPermaLink="false">https://medium.com/p/61bdd6491eef</guid>
            <dc:creator><![CDATA[XDefiLabs]]></dc:creator>
            <pubDate>Tue, 09 Feb 2021 07:02:57 GMT</pubDate>
            <atom:updated>2021-02-09T07:16:01.796Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*q6Byh-_QrMLJIolnOiRrog.png" /></figure><p>The xDeFi’s protocol stack has launched on the Ethereum Kovan testnet on December 15, 2020, and from February 7, 2021, all users have been invited to test and experience Swap, Pool, Farm and HalfLife functional modules with prizes. In order to let more users that played DeFi pay attention to the xDeFi and experience related functions, we specially launched an activity of “Invite friends to follow xDeFi and win massive rewards”.</p><h4>​Activity time</h4><p>2021.02.09 15:00 PM- 2021.03.02 15:00 PM (UTC+8)</p><h4>Activity contents</h4><p>Activity: Invite friends to follow xDeFi’s community and win massive rewards</p><p>Way of participation:</p><ul><li>Log in to <a href="https://gleam.io/Lpo4o/xdefi-airdrop-invite-competition">https://gleam.io/Lpo4o/xdefi-airdrop-invite-competition</a>;</li><li>Log in to your account via email, discord, facebook, google, twitter;</li><li>Follow the activity rules to complete related tasks such as subscription.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*cyS1RbhWLDaplKHF9Zosiw.png" /></figure><h4>Activity Details</h4><p>1. Please complete as many task items in sequence as possible, and each item corresponds to the corresponding entries (which can be understood as the competition score). The first 10 tasks are to follow xDeFI’s community channels; the 11th is an invitation reward, through your exclusive invitation link, every time you successfully invite a friend, you can increase 20 entries, unlimited invitations; the last two tasks need to be unlocked at least 8 tasks before they can be unlocked.</p><p>2. The top 3 users with the highest accumulated scores will receive special rewards.</p><p><strong>Prize Pool:</strong><br>A total number of <strong>168k XDEX</strong> are prepared for the airdrop!</p><p><strong>Top 5000 participants </strong>will get <strong>30 XDEX </strong>(You have to get more than <strong>260 entries</strong> to be qualified.)</p><p>1st winner: <strong>10000 XDEX</strong></p><p>2nd winner: <strong>5000 XDEX</strong></p><p>3rd winner: <strong>3000 XDEX</strong></p><p>The rewards will be airdropped to the ERC20 wallet submitted by valid users after the competition ends and the project goes live on the mainnet. Please pay attention to the follow-up related award information.</p><p>Good luck everyone !！！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61bdd6491eef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On Knapsack Problems, Auction Mechanisms, And NFT Standards]]></title>
            <link>https://xdefilab.medium.com/on-knapsack-problems-auction-mechanisms-and-nft-standards-39438d48898d?source=rss-38bf9c49e563------2</link>
            <guid isPermaLink="false">https://medium.com/p/39438d48898d</guid>
            <category><![CDATA[liquidity-pool]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[auction]]></category>
            <dc:creator><![CDATA[XDefiLabs]]></dc:creator>
            <pubDate>Sun, 07 Feb 2021 11:16:35 GMT</pubDate>
            <atom:updated>2021-02-07T11:16:35.776Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>1 NFT Trading: A Perspective of the Discrete World</strong></h3><p>ERC-20 standard appeared on Ethereum blockchain in 2016, brought ICO mania in 2017 and De-Fi Cambrian in 2020 to this ecosystem. At the same time period, an unignorable trend was also slowly emerging, which is named Non-fungible Token, become one of the most important complement to ERC-20. It appeared in cat cultivation in Crypto-Kitties, real estate, and household auctions in Decentraland, 3rd party on-chain trading platforms of games like Enjin, and also ENS — Ethereum Name Services ( similar to DNS, Domain Name Service on the Internet). The most important similarity of these applications is that all single token minted are heterogeneous, under the same standard: Technically, tokens share the same interfaces to interact with people or smart contracts, but their internal utility and exterior may be very different.</p><p>When we make decisions in the physical world, our allocation of stocks, cash, and cryptocurrencies proportions are continuous, but the demand for specific real estate, luxury cars, yachts, or even private jets is often discrete: The result of the decision is basically a binary decision — which means we only have a choice between 0 and 1. AMM models like Uniswap, the most important innovation on trading ERC-20 tokens, has nearly nothing to do with massive NFT transactions unless you take some compromising approaches. Examples are given by UniSocks and NFTX: Unisocks simulate ERC-721 tokens with ERC-20 tokens through socks redemption, and NFTX directly turn ERC-721 into ERC-20 through its protocols to enhance liquidity just like REITS.</p><p>Computer theorists Merkle and Hellman proposed the Knapsack problem in 1978, which keeps the problem still in the discrete world. The problem can be formulated as Given a set of items, each item has its own weight and price. How do we choose goods within the limited total weight in order to pack up the goods with the highest total value? Similar problems often appear in the fields of business, combinatorics, computational complexity theory, cryptography, and applied mathematics. In the physical world, whether they are antique traders or collectors, they will all face a more difficult problem, since different collectors have different preferences on the same set of collections.</p><h3>2 On Mechanism Design: How Founders of Auctionomics won 2020 Nobel Prize in Economics</h3><p>On October 12th, Robert B. Wilson and Paul R. Milgrom from Stanford University in the United States shared this honor for “improving auction theory and inventing new auction methods”. The two economists not only designed a “simultaneous multi-round auction”, but also established Auctionomics. In the period from 1994 to 2014, the US government relied on this design to acquire a total of $120B USD from the radio spectrum license auction as fiscal revenue, effectively met the discrete combination requirements from 3 to 4 major mobile ISP for frequency bands that interfere with each other and simultaneously keep the rent close to the optima.</p><p>In the book “ Discovering Prices: Auction Design in Markets with Complex Constraints”, the principle of increasing marginal cost and the theory of British auctions and Vickery auctions are particularly impressive. In Uniswap’s model, the continuous British auction of ERC-20 enables a smooth depth for trading. By replacing ERC-20 with NFT, the actual price may fall somewhere between the British auction and the Vickery auction.</p><h3>3 On NFT Composability Standard: A Simple Exploration</h3><p>Since 2015, the Ethereum community and Ethereum-based NFT projects have spontaneously explored the concept of NFT, and standards such as ERC-721 and ERC-1155 have been implemented.</p><p>The Ethereum community proposed ERC-998 Composable NFTs (Composable NFTs, i.e. cNFT, <a href="https://github.com/mattlockyer/composables-998).">https://github.com/mattlockyer/composables-998).</a> It is an extension for NFT that allowing any NFT to contain other NFTs or FTs(In ERC-20 format). When transferring cNFT, it means transferring the entire hierarchical structure and ownership of cNFT. For example, ERC-721 in the housing transaction represents the abstract whole of the house, but in fact, a house is a collection of a whole set of things, such as a unique land use right (ERC-721), fish tank (ERC-721), and fish tank In the water (ERC-20). cNFT is a natural extension.</p><p>A simplified version of composability standard — ERC1155 is introduced by Enjin, for online game items that are “somewhat homogenous”, batch processing of ERC-721 standard tokens will be easier to operate. Based on the initial design of ENJ, DEGO team also proposed their improved version: ERC908, which consume DEGO token to call contract through interfaces of ERC908 tokens.</p><p>Project Hashmask is a bold move in the domain of NFT: It has not brought its own standard to NFT users yet, but it is very hopeful that the properties, the rarity of these properties, the name changing tokens(ERC-20) that NFT contains may form a group of necessary interfaces for NFTs. At the same time, NFTX provides a confidential wrapper smart contract to repack revealed NFTs back to the status of unrevealed: Rethink popular Gatcha culture in Japan, or newly listed $POPMART(HK09992).</p><h3>4 A Liquidity Design Proposed by xDeFiLabs</h3><p>After referring to UniSocks, Perpetual Protocol, NFTX, and other projects, xDeFiLabs proposed a demo of the NFT Gatcha first-time auction system based on vAMM:</p><h4>4.1 Mathematical model:</h4><p>(vaE+ aE) * (aG+vaG) = C</p><h4>4.2 Uniswap-style pool setup:</h4><p>One side is the Ethereum pool, with Etherum amount aE.</p><p>There is also a number of virtual Ethereum of amount vaE.</p><p>On the other side is the NFT list. The composition of the list is {sold NFTs (wish list)}, and {unsold NFTs}. The length of the list is determined when initialized. {unsold NFTs} amount aG participates in the calculation, and the initial status of {sold NFTs (wish list)} is the empty set.</p><p>There is also a vaG parameter, the number of virtual Gatchas.</p><p>C is the constant product.</p><h4>4.3 Bonding Curve</h4><p>If a pool is initiated in the way that 4.1 and 4.2 proposed, gatcha price will go up (increasing marginal cost). Considering a relatively fair auction, the price of the last Gatcha in the pool will not be too expensive.</p><h4>4.4 An Example:</h4><p>Gatcha ask and bid prices will be discrete:</p><p>Ask price:</p><p>C/(aG+vaG-1)-C/(aG+vaG)</p><p>Bid price:</p><p>C/(aG+vaG)-C/(aG+vaG+1)</p><p>With some initial parameters setup:</p><p>1st Gatcha price fp= ~0.25ETH</p><p>Highest Gatcha price hp = ~1ETH</p><p>Initial aE = 0</p><p>Initial aG = 100</p><p>Virtual amount parameters will be deducted as:</p><p>vaG = sqrt(ep/sp) * Initial aG — Initial aG = 100</p><p>vE = (Initial aG +vaG)*fp = 50</p><p>C = vaE * (Initial aG +vaG) = 10000</p><p>Each time a Gatcha is bough from, or sold back to this pool, ask and bid price will shift accordingly.</p><h4>4.5 Smart Contract Structure:</h4><p>A A pool of ETH</p><p>B An ordered dictionary of ERC721, which records sold/unsold Gatcha status</p><p>C Parameters</p><p>D Contract calculating ask/bid logic, refer to Uniswap</p><p>E The confidential contracts and necessary random number generators.</p><p>F A front-end displaying necessary information.</p><p>The long-tail liquidity of the NFT marketplace will be stimulated, instead of an “Art Hype”, this setup is close to the logic of Italian art collectors to trade any possible combination of the collection in their community.</p><h3>5 Conclusions</h3><p>After composability has been sufficiently built, art galleries with art wishlists will be assembled to reveal the preferences of collectors, which will also attract more NFT arbitrageurs ( Scientists worked so hard on ERC-20 tokens arbitraging ). The xDeFiLabs team will also continue their exploration on the possibility of multi-round multiple auctions of long-tail NFT assets.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39438d48898d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[xDeFi is launching reward on Kovan testnet]]></title>
            <link>https://xdefilab.medium.com/xdefi-is-launching-reward-on-kovan-testnet-fc9a31ef91b7?source=rss-38bf9c49e563------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc9a31ef91b7</guid>
            <dc:creator><![CDATA[XDefiLabs]]></dc:creator>
            <pubDate>Sun, 07 Feb 2021 09:17:14 GMT</pubDate>
            <atom:updated>2021-02-07T09:17:14.918Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*QgiDjzC8axbRGvoWSET5_w.png" /></figure><p>The protocol stack of xDeFi was launched on the Ethereum Kovan testnet on December 15, 2020, and now the user “Rewarded Test to Earn XDEX” activity is officially opened.</p><p>All users are invited to test and experience the Swap, Pool and xHalfLife functional modules. During this test, valid users participating in the test can share a token incentive of 100,000 XDEX tokens (excluding bug rewards).</p><h4><strong>Activity Time</strong></h4><p>2021.02.07 17:00 PM- 2021.02.21 17:00 PM (UTC+8)</p><h4><strong>Activity contents</strong></h4><p><strong>Activity 1 : Experience xDeFi immediately and share 100,000 XDEX</strong></p><p>Activity reward : 20 XDEX/person</p><p>Reward quota : First-come-first-served, this test will automatically end after the reward is issued.</p><p>Way of participation : Get the test coins through the faucet, you can view<strong> “How to get Kovan testnet tokens”</strong>.</p><ul><li>Log in to <a href="https://swap.kovan.xdefi.com;">https://swap.kovan.xdefi.com ;</a></li><li>Connect to the Ethereum Kovan test network through the MetaMask wallet ;</li><li>Complete the following operations on xDeFi through the Kovan testnet :</li></ul><p>a. Exchange (Swap) ;</p><p>b. Add liquidity, remove liquidity ;</p><p>c、Farm function；</p><p>c. Create stream with xHalfLife.</p><p>Activity Details<strong> ：</strong>2021.02.07 17:00 PM- 2021.02.21 17:00 PM (UTC+8), all users who complete tasks （3 times Swap + 1 time to add liquidity + 1 time to remove liquidity +1 time Farm+1 time to use xHalfLife to create a stream）on the Koven testnet as required will have the opportunity to share event rewards.</p><p>Each user can get up to 20 XDEX until the 100,000 tokens are issued. After xDeFi is officially launched on the Ethereum mainnet, the XDEX token rewards on mainnet will be issued to the MetaMask address of each eligible user participating in the testnet activity.</p><h4><strong>Activity 2 : Find bugs and win rewards</strong></h4><p>Activity reward : 500 XDEX/ Bug</p><p>How to participate : If you find any bugs caused by platform problems during the “Activity 1” testnet experience, you can scan the QR code below to submit the bug description through the questionnaire, and you can also give us feedback on your experience and suggestions. After the xDeFi team confirms the bug as a valid bug, when the mainnet goes online, users who submit valid bugs will be issued 500 XDEX/bug rewards to their reserved Ethereum wallet address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/0*8uV_ZqEvgQYknBsb" /></figure><p>Activity Details :</p><p>a. When multiple users submit the same bug, the user who submitted the bug first will get the bug reward.</p><p>b. The same user can submit up to 3 bugs. The user reward is calculated according to the total number of adopted bugs, and each person can accumulate up to 3 times.</p><p>c. Users can check the bug adoption status and award status through the follow-up articles of this official account of xDeFi.</p><h4><strong>​Precautions for this test</strong></h4><ul><li>All rewards will be issued to the Ethereum MetaMask account address reserved by the user after the protocols are launched on the Ethereum mainnet.</li><li>Each IP corresponds to only one MetaMask account address, and the account creation time must exceed 6 months. ​If there are multiple addresses, only the valid account with the most rewards will be issued rewards;</li><li>The final interpretation right of this test belongs to the xDeFi team.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc9a31ef91b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>