<?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 Robin Smith on Medium]]></title>
        <description><![CDATA[Stories by Robin Smith on Medium]]></description>
        <link>https://medium.com/@krobinalpha?source=rss-f00da823d680------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qk3evbVxKrfUsuzr</url>
            <title>Stories by Robin Smith on Medium</title>
            <link>https://medium.com/@krobinalpha?source=rss-f00da823d680------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:46:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@krobinalpha/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[What is APR and APY?]]></title>
            <link>https://krobinalpha.medium.com/what-is-apr-and-apy-56450cb55845?source=rss-f00da823d680------2</link>
            <guid isPermaLink="false">https://medium.com/p/56450cb55845</guid>
            <dc:creator><![CDATA[Robin Smith]]></dc:creator>
            <pubDate>Wed, 15 Jun 2022 14:19:11 GMT</pubDate>
            <atom:updated>2022-06-15T14:19:11.313Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is APR?</h3><p>APR (Annual Percentage Rate) is the annual rate of return — expressed as a percentage — before factoring in compound interest. You’ll run into this most often when considering terms for a loan. The APR make it simple to calculate your monthly payment.</p><p><strong><em>Example:</em></strong></p><p>Let’s say you would like to calculate how much interest will accrue today on your credit card. Your credit card charges 19.00% APR, compounds daily, and has a balance of $1000.</p><p>1. Express your APR as a decimal by dividing by 100.</p><p>2. Divide your APR by the number of compounding periods.</p><p>3. Multiply this number by your credit card balance.</p><p><strong><em>Daily Interest Accrued </em></strong><em>= 1000 x 0.19 / 365</em></p><p>*In this case, your daily interest accrued would be $0.52. This amount would then be added to your balance for tomorrow’s calculation.</p><p><em>Benefits</em></p><ul><li>Considers total interest paid on a loan</li><li>Best for calculating how much you owe each month</li></ul><h3>What is APY?</h3><p>APY (Annual Percentage Yield) is the annual rate of return — expressed as a percentage — once you factor in compound interest. You’ll run into this most often when considering deposit accounts, and how much you’ll earn on your deposit.</p><p><em>Example:</em></p><p>Let’s say you want to calculate how much interest your savings account will pay you after one year. Your savings account pays 2.00% APY, and you have a balance of $1000.</p><ol><li>Express your APY as a decimal by dividing by 100.</li><li>Multiply this number by your account balance.</li></ol><p><strong><em>Expected Annual Interest </em></strong><em>= 1000 x 0.02</em></p><p>*In this case, your expected annual interest accrued would be $20.00. Your expected balance at the end of the year would be $1020.00.</p><p><em>Benefits</em></p><ul><li>Accounts for differences in compounding frequencies</li><li>Best for calculating how much you’ll earn over a year</li></ul><h3>When do you use APR vs APY?</h3><p>The main difference between how APR and APY are calculated, and therefore used, is the effect of compounding. Simply put, APR is what you pay and APY is what you save. If you take a loan from a bank, this will most likely be priced as APR. Banks and other financial institutions will usually quote interest rates on savings products in APY. The rationale is that APR is better for knowing interest paid per period, so this makes it easy to understand what you owe each month on a home or car loan. Whereas APY makes it easy to calculate interest earned after a year using a specific savings rate, regardless of compounding frequency.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56450cb55845" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[what is mapping variable in solidity]]></title>
            <link>https://krobinalpha.medium.com/what-is-mapping-variable-in-solidity-c2dabd1842cb?source=rss-f00da823d680------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2dabd1842cb</guid>
            <dc:creator><![CDATA[Robin Smith]]></dc:creator>
            <pubDate>Wed, 15 Jun 2022 02:39:52 GMT</pubDate>
            <atom:updated>2022-06-15T02:39:52.011Z</atom:updated>
            <content:encoded><![CDATA[<p>mapping variable example:</p><p>mapping(_KeyType =&gt; _ValueType) public mappingName</p><p>Mappings act as hash tables which consist of key types and corresponding value type pairs. They are defined like any other variable type in Solidity:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/0*tHYfknlV4HOo2t63.png" /></figure><h3>Accessing Value Types from a Mapping with Key Types</h3><p>With this mapping in place we then built a function to identify a user’s current level in the game. Here we pass the currentLevel function an argument — i.e., a particular user’s address — and then we use the userLevel mapping to return that user’s associated level in the game:</p><pre>function currentLevel(address userAddress) public constant returns (uint) {     return userLevel[userAddress];}</pre><p>Using a mapping here is helpful because it can store many _KeyTypes to _ValueTypes. In this case there are many users playing the game all at once and they can each have their own corresponding userLevel.</p><h3>A mappings default value</h3><p>According to the <a href="http://solidity.readthedocs.io/en/v0.4.21/types.html">Solidity docs</a>, “<em>mappings can be seen as hash tables which are virtually initialized such that every possible key exists and is mapped to a value whose byte-representation are all zeros.</em>”</p><p>Essentially this means that mappings do not have a length. They also do not have a concept of a key or a value being set. We can only use mappings for state variables that act as storage reference types. It’s then possible to create a <a href="http://solidity.readthedocs.io/en/v0.4.21/contracts.html#visibility-and-getters">getter</a> function call (like public) in which the _KeyType is the parameter used by the getter function in order to return the _ValueType.</p><p>Let’s reflect back on our userLevel mapping from our game:</p><pre>mapping(address =&gt; uint) public userLevel;</pre><p>When userLevel is initialized it’s done in such a way that every possible Ethereum address exists in the mapping and is mapped to a corresponding level of 0. Whether it’s a random Ethereum user’s MetaMask address who perhaps has never even heard of our game before, or maybe an arbitrary smart contract on the Ethereum blockchain doing something totally unrelated, it doesn’t matter. Our mapping still maps them to a corresponding level of 0 in our game, or more appropriately, maps to a “<em>value whose byte-representation are all zeros.”</em></p><h3>Take aways</h3><ul><li>Mappings act as hash tables which consist of key types and corresponding value type pairs</li><li>Mappings are useful because they can store many _KeyTypes to _ValueTypes</li><li>Mappings do not have a length, nor do they have a concept of a key or a value being set</li><li>Mappings can only be used for state variables that act as storage reference types</li><li>When mappings are initialized every possible key exists in the mappings and are mapped to values whose byte-representations are all zeros</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2dabd1842cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Ethereum?]]></title>
            <link>https://krobinalpha.medium.com/what-is-ethereum-c46a460326dd?source=rss-f00da823d680------2</link>
            <guid isPermaLink="false">https://medium.com/p/c46a460326dd</guid>
            <dc:creator><![CDATA[Robin Smith]]></dc:creator>
            <pubDate>Tue, 14 Jun 2022 18:29:06 GMT</pubDate>
            <atom:updated>2022-06-14T18:29:06.087Z</atom:updated>
            <content:encoded><![CDATA[<p>In Short term Ethereum is powerful decentralized super computer running on blockchain technology. Ethereum aims to be a platform on which anyone can create applications for value and data exchange. Its technology is based on “<a href="https://en.wikipedia.org/wiki/Smart_contract"><em>smart contracts</em></a>”, programs that run on Ethereum and execute transactions of value and information.</p><p><strong>Is the technology ready to be used?</strong> Yes, so much so that <a href="http://bit.ly/2CHoo1B">the United Nations are using it to provide food to thousands of refugees</a>.</p><blockquote><em>Ethereum can be used to build unstoppable applications that coordinate the exchange of value and information for the public.</em></blockquote><p>Here below are some of the <strong><em>most interesting applications</em></strong> that can be built on Ethereum (with some real examples):</p><ul><li><strong>Identity management.</strong> Since each user on the Ethereum platform signs digitally all his/her interactions with smart contracts or other users, it is possible to associate an identity to a user and all actions performed by that user will be connected to his/her identity. — <a href="http://bit.ly/2CKeY9E"><em>Civic</em></a><em> and </em><a href="http://bit.ly/2AI7Sg8"><em>Blockstack</em></a><em> are two projects that aim at managing identity on the blockchain.</em></li><li><strong>Trust and Transparency. </strong>Every time an agreement can be expressed via programming language, smart contracts can be used as a way to replace (and enforce) contracts between parties. It can also be used for transparency. For example: let’s say you want to donate to a non-for-profit organisation but want to make sure they use the funds to support clean water projects in Africa. You can write an application on Ethereum that monitors how your funds are used in real time. — <em>Take a look at </em><a href="http://bit.ly/2CHxfn1"><em>AidCoin</em></a><em>.</em></li><li><strong>Crowdfunding. </strong>Ethereum smart contracts allow you to generate tokens that can be sold in exchange for “real money”, effectively funding your new project or new venture. Very much like Kickstarter or Indiegogo, but without the need to rely on a third party. — <em>Read more about </em><a href="http://bit.ly/2qtWhBc"><em>Initial Coin Offering</em></a><em> (ICO).</em></li><li><strong>Marketplaces.</strong> Imagine building an Airbnb where guests can interact directly with hosts and that has no service charges, or a Facebook where users interact directly own all their data and get a share of the payment advertisers do to gain their attention. Ethereum enables that too. — <em>A</em> <em>decentralised version of LinkedIn called </em><a href="http://bit.ly/2CtHLep"><em>Indorse</em></a><em> is already live.</em></li><li><strong>Copyright/ownership repository. </strong>When you send a transaction on the Ethereum network the information you add to such transaction are permanently stored on the Ethereum blockchain. They are immutable, have a time stamp of when they have been added and cannot be removed. For these reasons you can store a proof of ownership, register your IP or the copyright of a song or a book, on the Ethereum blockchain with the certainty that nobody can delete it and you will always be able to prove that you are the author/owner of such document. — <em>MIT built a system to release certificates on the blockchain called </em><a href="http://bit.ly/2m14yYT"><em>Blockcerts</em></a><em>.</em></li><li><strong>Governance. </strong>Ethereum is a good platform to handle voting systems at scale. Since each user of this global computer can interact with it in a secure way, Ethereum can be used to implement voting systems for elections, corporate governance, decision making and consensus agreement. <em>— </em><a href="http://bit.ly/2CKvyFy"><em>Abu Dhabi Stock Exchange</em></a><em> and the </em><a href="http://bit.ly/2CZ18wW"><em>Russian government</em></a><em> are now experimenting voting systems based on blockchain.</em></li></ul><p>So, Ethereum is an extremely powerful platform on which we can build applications that can exchange value and information in a very secure way. Being still in its infancy it has several limits (i.e. it can only execute 10–15 transactions per second at the moment), but it is evolving rapidly thanks to the large community of developers working on it. Hopefully, this new technology will be leveraged to solve some of the <a href="http://bit.ly/2EgnzgI">biggest problems</a> we are facing today and not just to collect some <a href="http://bit.ly/2F7ewji">virtual kitties</a>.</p><h3>How can I use Ethereum?</h3><p>The first step to use Ethereum is to get your own <em>Ethereum wallet</em> and buy some <a href="http://bit.ly/2FacsqN"><em>Ether</em></a> (ETH) in order to make your first transactions. You can do so on exchanges like Coinbase (<a href="http://bit.ly/2kkI86I">10$ for free with my invitation</a>). Once you have set up your wallet, you can interact with Ethereum applications and transfer Ether between accounts. If you would like to learn how to code in Solidity (the programming language of Ethereum), <a href="http://bit.ly/2D3LRe9">these zombies</a> are a good way to get started. Are you a developer? <a href="http://bit.ly/2DES94l">Here</a> you can find an in-depth, professional course to learn how to program Ethereum.</p><p>If you would like to learn more about how Ethereum works behind the scenes, the short article below covers the logic and mechanics of how Ethereum works.</p><h3>Useful links</h3><ul><li>Learn more about Ethereum project — <a href="http://bit.ly/2EcWvih">link</a></li><li>See the network of computers running Ethereum in real time — <a href="http://bit.ly/2CKdAnh">link</a></li><li>How to get your own Ethereum online wallet — <a href="http://bit.ly/2kkI86I">10$ free on Coinbase</a></li><li>How to keep your Ether safe — <a href="http://bit.ly/2o88gky">link</a></li><li>How to install and run your own Ethereum node — <a href="http://bit.ly/2qu1OaV">link</a> (pro)</li><li>Learn more about how the blockchain works — <a href="http://bit.ly/hdblock">link</a></li><li>How to keep your Ether safe — <a href="http://bit.ly/2o88gky">link</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c46a460326dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>