<?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 youearndefi on Medium]]></title>
        <description><![CDATA[Stories by youearndefi on Medium]]></description>
        <link>https://medium.com/@youearndefi?source=rss-a9b481c43ffd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OnZglJ3wyrvwYzs70TD3Tw.png</url>
            <title>Stories by youearndefi on Medium</title>
            <link>https://medium.com/@youearndefi?source=rss-a9b481c43ffd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 07:10:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@youearndefi/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[Introducing the YouEarn Governances and Staking Rewards]]></title>
            <link>https://medium.com/@youearndefi/introducing-the-youearn-governances-and-staking-rewards-b7ac25ffac2b?source=rss-a9b481c43ffd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7ac25ffac2b</guid>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[ico]]></category>
            <category><![CDATA[governance]]></category>
            <dc:creator><![CDATA[youearndefi]]></dc:creator>
            <pubDate>Tue, 06 Oct 2020 15:40:19 GMT</pubDate>
            <atom:updated>2020-10-06T15:40:19.971Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*YQzFcUbf-RzwZGOvrICCUQ.png" /><figcaption>Source: rewardpartners.co.za</figcaption></figure><p><strong>Simple Abstract</strong></p><p>Today many projects have raised millions of dollars with the ICO or the Token Sale by the cryptocurrency, then disappear with the funds. And according to a report by <a href="https://www.financemagnates.com/cryptocurrency/news/failed-expectations-why-86-of-icos-are-worth-less-than-when-they-started/">financemagnates.com</a>, 86% of ICOs are worth less than when they started. Significant losses for investors caused both of them. This article will introduce some smart contracts that will help manage the funds (avoid “exit scam”) and keep prices at least as the issue price.</p><p><strong>I. The Government Fund Smart Contract</strong></p><p>As the name of the contract, this contract will manage the fund of the project. That means all the funds raised by the token presale will transfer to this contract. The fund will use to develop the whole YouEarn’s protocol, other products, and use as a backed-asset to keep the YEF token price at least as the issue price.</p><p>There required a person or group of people to manage the contract. It’s called <em>the governor.</em></p><p>The governor is responsible for the development of the protocol. At any time, the governor needs funds for development purposes. Governor will call the function `propose` on the smart contract to propose a withdrawal. The proposal must contain the `withdrawAddress` `withdrawAmount,` and the `hash` is a hash of URL that describes the purpose of the fund withdrawal on Github. Anyone holding the YEF token will be able to vote (a full 1 uint is not required) the proposal. The proposal period is 3 days. After the ending time, the governor will be able to execute the proposal, if 50% of the vote is agreed, the fund withdrawal will pass. Voters could earn the rewards by staking the YEF token to the `Staking Contract` (described below) by a percent of the withdrawal amount determined by the community.</p><p>Take an example:</p><p>The presale token raised 2,000 ETH. All of them will be transferred to the fund governance smart contract. Then the governor needs 100 ETH for the contract auditing. The governor will propose a proposal that contains the receiver’s address, 100 ETH, and a lecture on the Github. Imagine the withdrawal fee commission currently is 5% (determines by the community). Person A vote for with 100 YEF, B vote for 200 YEF, C vote against 50 YEF. In conclusion, the ayes are 85.7%, the noes are 14.3%, then the withdrawal will be passed (assume that the minimum quorum is just 3). The total reward amount is 5%*100 = 5 ETH. A is staking on the staking contract will earn 100/350*5 = 1.43 ETH. B earns 200/350 = 2.86, C is not staking will not earn anything. Please note, by staking on staking smart contract and vote in a proposal, your staking withdrawal will be locked plus 3 days.</p><p>A governor has a fixed term of 1 year. After one year, the community can add the new candidates and vote for a new governor or old governor. Or the governor will be eject by a 95% voting ayes.</p><p>By voting on the election, stakeholders earn the reward fees determined by the community before the election starts.</p><p><strong>II. The YouEarn Governance Contract</strong></p><p>YouEarn introduces a governance contract that will decide the future of the protocol.</p><p>The proposed function could be called by anyone who stakes some YEF on the staking smart contract.</p><p>There are some fixed types of the proposal could be executed automatically (immediately changed on the smart contract), such as:</p><ul><li>Change the minimum quorum is required (&gt;=50%)</li><li>Change the governor (&gt;=95%)</li><li>Change the fund governance’s minimum quorum is required</li><li>Change the fund withdrawal fee commission</li><li>Change the maximum fund withdrawal fee commission</li><li>Change the minimum staking amount to proposed a proposal on the main governance smart contract.</li></ul><p><strong>III. Staking Contract</strong></p><p>YEF token holders could stake the tokens to the staking contract to earn the reward fees when contributing to the fund withdrawal proposals or vote on the election.</p><p>By stake YEF token to the staking contract, the stakeholder receives back the sYEF token (an ERC20-standard token but cannot transfer between accounts). The sYEF token can be used to stake in other pools reward or use as the collateral or other YouEarn’s future products.</p><p><strong>IV: Conclusion</strong></p><p>By design, YouEarn’s fund governance contains a majority attack (in this scenario, its labeled a 95% attack). That means anyone who holds 95% of the YEF total supplies will be able to set the governor and withdraw all the funds in the smart contract by themselves. To avoid this attacking, do not sell your YEF below the presale price or equivalent value with the ETH amount holding in the contract.</p><p>You can find the source code of the contract on Github: <a href="http://github.com/youearndefi/governance">github.com/youearndefi/governance</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7ac25ffac2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does Affiliate Program work?]]></title>
            <link>https://medium.com/@youearndefi/how-does-affiliate-program-work-d845c75f516c?source=rss-a9b481c43ffd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d845c75f516c</guid>
            <category><![CDATA[defi]]></category>
            <dc:creator><![CDATA[youearndefi]]></dc:creator>
            <pubDate>Wed, 23 Sep 2020 15:09:30 GMT</pubDate>
            <atom:updated>2020-09-23T15:09:30.855Z</atom:updated>
            <content:encoded><![CDATA[<p>YouEarn Affiliate Program works a little tricky. By default YouEarn presale smart-contract allows the purchaser to pass the address of the referrer user. Kindly check the code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/408e0b760b4bada85a82fa0f9a7e21ae/href">https://medium.com/media/408e0b760b4bada85a82fa0f9a7e21ae/href</a></iframe><p>For every purchase contains a referrer address, this function will send 6% of the purchase amount to the referrer address and emit an event to notice that.</p><p>Because of the statistics and tracking purposes, YouEarn website has implemented a server to handle that.</p><p>When you get an address, an API call will store your address. Then when your friends connect their wallet, an API will be called in order to store the reference data.</p><p>When your friends make a purchase, the frontend will call an API to get the referrer of their address (it’s your address). In case that the address is nulled, the frontend will attempt to get the cookie. If the cookie is nulled frontend will use the referrer as a zero address, and no one will earn 6%.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d845c75f516c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduce YouEarn Token Presale]]></title>
            <link>https://medium.com/@youearndefi/introduce-youearn-token-presale-a9e38678b085?source=rss-a9b481c43ffd------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9e38678b085</guid>
            <category><![CDATA[yearn-finance]]></category>
            <category><![CDATA[defi]]></category>
            <dc:creator><![CDATA[youearndefi]]></dc:creator>
            <pubDate>Wed, 23 Sep 2020 14:29:16 GMT</pubDate>
            <atom:updated>2020-09-25T14:59:51.856Z</atom:updated>
            <content:encoded><![CDATA[<p>Today DeFi is a trendy term in the cryptocurrency industry. There are so many products, and Yearn is a yield aggregator for DeFi lending platforms that rebalances for the highest yield during contract interaction, which supports Compound, dYdX, Aave, and DDEX protocols.</p><p>But these DeFi products are too complex for common users. So that why YouEarn exists. YouEarn will provide modern ways to maximize user’s return as well as provide an easy interactive protocol.</p><p>YouEarn will make a presale of YouEarn’s token in the next few days as the following details:</p><p><strong>Token Name: YEF</strong></p><p><strong>Hard cap: 15,000 YEF</strong></p><p><strong>Public Sale: 15,000 YEF (100%)</strong></p><p><strong>Price: 1 ETH = 0.3 YEF</strong></p><p><strong>Sale Method: Throw a smart-contract (</strong><a href="https://github.com/youearndefi/yef-token"><strong>view source code on GitHub</strong></a><strong>)</strong></p><p>Website: <a href="http://youearn.finance/">youearn.finance</a></p><p>All unsold tokens will be burned.</p><p><strong>Affiliate Program</strong></p><p>By referring friends to buy YEF token, you will receive 6% of their purchase amount. Click on the Affiliate tab and connect your wallet to get your link.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9e38678b085" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>