<?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 Pedro on Medium]]></title>
        <description><![CDATA[Stories by Pedro on Medium]]></description>
        <link>https://medium.com/@pedronv?source=rss-98445327fa9c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MhhFepWIlVf0HLJusPGNoA@2x.jpeg</url>
            <title>Stories by Pedro on Medium</title>
            <link>https://medium.com/@pedronv?source=rss-98445327fa9c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 16:22:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pedronv/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[Timeswap: Revolutionizing Lending & Borrowing]]></title>
            <link>https://medium.com/@pedronv/timeswap-revolutionizing-lending-borrowing-8f21b93b82fc?source=rss-98445327fa9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f21b93b82fc</guid>
            <category><![CDATA[polygon]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Pedro]]></dc:creator>
            <pubDate>Tue, 19 Apr 2022 16:32:30 GMT</pubDate>
            <atom:updated>2022-04-19T16:32:30.327Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3KsbEbk7262X-Ba_PIqi6w.png" /></figure><p>A couple of weeks ago we saw Timeswap go live on Polygon mainnet for the first time, and just as Uniswap revolutionized the way we swap between tokens, Timeswap has revolutionized the way we lend and borrow our tokens — using their own constant product formula to create a truly permission-less, oracle-less, and decentralized platform.</p><p>Timeswap is one of the DeFi projects I’m most bullish on right now, so it would be a shame if I didn’t talk about them.</p><p>In this article I’ll go over everything you need to know about Timeswap so you can start using the platform for yourself, and hopefully earn some $TIME tokens via airdrop as soon as the token officially drops.</p><h3>What Is Timeswap</h3><p>The <a href="https://timeswap.io/whitepaper.pdf">original whitepaper</a> for the project was written in February 2021 by the three co-founders: Ricsson Ngo, Harshita Singh, and Ameeth Devadas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HFoLlCIJJUc92CgyP8C3kw.png" /></figure><p>In this paper, the team described the idea for <strong><em>the first decentralized AMM based money market protocol</em></strong>, Timeswap.</p><p>In short, Timeswap is a lending and borrowing platform where any user can create their own money market pools. Setting their own maturity times, and using <strong>any</strong> ERC-20 token pair they choose.</p><p>Users can then lend or borrow from these various pools according to interest and collateral rates that are determined automatically by the <strong><em>three variable constant product formula.</em></strong></p><p>Since this formula is what makes the platform so revolutionary, let’s take a look at that first.</p><h3>XYZ=K</h3><p>Timeswap’s three variable formula was inspired by Uniswap’s own constant product formula, so let’s start there.</p><h4>Uniswap’s Constant Product Formula</h4><p>As most of us already know by now, Uniswap is an AMM decentralized exchange that allows users to swap between tokens.</p><p>An AMM exchange is a lot different then a traditional order book exchange that we’re used to interacting with in traditional finance. Order book exchanges use order books to represent liquidity and determine prices. They also require intermediary infrastructure to match orders between buyers and sellers.</p><p>Vitalik first introduced the idea of an AMM exchange in one of his reddit posts from 2017. Uniswap then popularized this model by building the AMM decentralized exchange we know and love today, relying on that constant product formula to give users correct prices.</p><p>AMM’s allow for the permissionless trading of assets by <strong>using liquidity pools rather than order books</strong>. Users provide liquidity, and prices are determined based on a certain mathematical formula. For Uniswap this formula is their constant product formula: x*y=k. I won’t go over this here, but if you’re interested you can read more about it in <a href="https://docs.uniswap.org/protocol/V2/concepts/protocol-overview/how-uniswap-works">this Uniswap docs page</a>.</p><p>Some advantages for AMM’s include: decentralization, security, token accessibility, non custodial, and no manipulation.</p><h4>Timeswap’s Constant Product Formula</h4><p>Inspired by Uniswap, Timeswap uses a three variable constant product formula: <strong><em>xyz=k</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dQB44JXYwWidQBD4YePtIg.png" /></figure><ul><li><strong><em>X:</em></strong> principal pool — a virtual pool equal to the amount of assets that can be borrowed - sum of lenders assets</li><li><strong><em>Y:</em></strong> Interest rate pool — a virtual pool that determines the interest amount per second of the pool</li><li><strong><em>Z:</em></strong> Collateral factor pool — determines the collateral to be locked by borrowers</li></ul><p>“Asset Pool” and “Collateral Locked Pool” are also displayed in the image above. <strong><em>Asset Pool </em></strong>represents the assets deposited by lenders, and assets paid back by borrowers. While the <strong><em>Collateral Locked Pool</em></strong> represents the collateral assets locked up by the borrower.</p><p>Using this xyz=k formula, Timeswap determines <strong><em>both collateral and interest rates automatically</em></strong>, based on the proportion of reserves in a pool.</p><p>Looking at the image below, we need the formula (see-saw) to be balanced. So when more assets are deposited by lenders into a given pool, colateral and interest rates drop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_q8d92QoMZp6uOrBKb2GRA.png" /></figure><p>Again looking at the image below, when more assets are being borrowed, collateral and interest rates rise to keep the formula constant (keeping the see-saw balanced).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V28JtUV1RZATuH5dINe8sA.png" /></figure><p>Utilizing this constant product formula gets rid of the need for oracles.</p><p>Oracles are third party data feed services that bring off-chain data onto a blockchain or provide on-chain data to other applications.</p><p>This quote from one of <a href="https://timeswap.medium.com/price-oracles-to-be-or-not-to-be-8f1db37877d3">Timeswap’s article post</a> says it best: “<em>the current money market design in DeFi that relies on Oracles are inherently not scalable to long tail assets due to the low liquidity and susceptibility to price manipulation.”</em></p><p>Today money markets use oracles to determine both interest rates, and fair market value of collateral. Oracles can lead to price manipulation, especially for tokens with very low liquidity, which is why the big platforms we’re used to today only accept high quality assets.</p><p>So just as Uniswap is used to swap between those long tail assets all you degens love, Timeswap can be used to lend and borrow between those long tail assets as well.</p><p>A truly permissionless platform where you can create a market for any (<strong>ANY</strong>) ERC-20 assets. Again, this is made possible thanks to the three variable constant product formula Timeswap has come up with.</p><h3>Issues With Existing Platforms</h3><p>There are three key issues Timeswap is solving:</p><ol><li><strong>Full Decentralization: </strong>As we’ve come to find out, most money markets are not fully decentralized — market creation requires you to go through a governance voting system. “This restricts liquidity for long tail assets wherein projects are dependent on the money market token holders who decide which token can be used as a collateral.”</li><li><strong>Capital Inefficiency:</strong> Tokens with different tisk profiles have similar collateralization ratios. This is because it would require even more governance overhead to decide which assets should be allowed as collateral for each token you can lend out.</li><li><strong>Oracle Dependency:</strong> Price oracles feed the liquidation engines in money market protocols, which has led to millions drained from the DeFi ecosystem thanks to price manipulation. These oracles are holding platforms back from scaling outside of the top assets.</li></ol><h3>Features</h3><p>Features of Timeswap include:</p><ul><li><strong>Market Driven Interest and Collateral Rates:</strong> Using their constant product formula: xyz=k</li><li><strong>Oracle-less:</strong> Oracles aren’t needed because of the rationality of, if at close to maturity date of the loan the value of collateral is greater than the value of a given loan, then the protocol can expect the borrower to pay back the loan on time. However if the value of collateral is less then the loan, then the protocol can expect a default on the loan, which leads to a liquidation event.</li><li><strong>Permission-less:</strong> Anyone can create a money market for any token they choose. No more having to go through a governance system!</li><li><strong>Fixed maturity:</strong> This can enable the creation of fixed maturity products, like options or bonds.</li><li><strong>Isolated Markets:</strong> This means that the collapse of one collateral asset, won’t effect the other markets.</li></ul><h3>Use Cases</h3><p>Some use cases of the protocol include:</p><ul><li><strong>Initial Debt Financing Offerings (IDFO): </strong>Instead of an ICO or other traditional methods, projects could opt for an IDFO to make the token launch fair, while still gaining funding. As described in <a href="https://timeswap.medium.com/enabling-permissionless-debt-financing-in-defi-11c0f35f5fe5">this article</a> written by the Timeswap team: <em>“With Timeswap, project treasuries can now elect to conduct an IDFO instead of selling chunks of the treasury itself. Pairing the project token with a stablecoin and enabling lending on such a market allows the project to have a revenue stream to build out its product. Borrowers get early exposure to a new project without many of the downsides of buying the token itself and liquidity providers gain a new market to earn fees from.” </em>Check out the article I linked to above to learn more about this.</li><li><strong>Reputation based financing:</strong> Someone could create a social credit score system using some type of ERC-20 token that assigns value to the reputation of an individual, group or organization. This token will be able to be used as collateral to borrow other assets on Timeswap.</li><li><strong>Using NFT’s as collateral to borrow assets:</strong> One can fractionalize their valuable ERC-721 NFT into ERC-20 tokens, and use these as collateral on Timeswap to borrow other assets.</li><li><strong>Liquidity Financing:</strong> You can even use LP tokens from other defi platforms as collateral.</li></ul><h3>Users</h3><p>There are three main users of the platform:</p><ul><li><strong>Lenders:</strong> Lenders use the protocol for fixed yields on the tokens they lend. After maturity of the loan they can claim their principal amount lent, along with any accrued interest. If the borrower defaults, their collateral goes to the lenders.</li><li><strong>Borrowers:</strong> Borrowers interact with the same pool as lenders. They lock token B as collateral in order to borrow token A. Before maturity date they pay back the principal along with any interest on token A to withdraw back their collateral. If they don’t pay back the loan before maturity date, the collateral goes to the lender. Users may want to borrow tokens for present usage, leverage, to short, or for futures.</li><li><strong>LP’s:</strong> LP’s initialize the pools and add liquidity to them. They can be thought of as both the lender &amp; borrower– “they lend token A so that there is liquidity for borrowers, and lock token B as collateral with token A as debt, to back future claims for lenders to receive” — LP’s are the market makers of the pool. They create markets for both lending and borrowing transactions. LP’s receive a transaction fee reward as an incentive to create these markets.</li></ul><p><strong>Lenders &amp; Borrowers:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kkgmV-w2LSNzM8cokAq4Xw.png" /></figure><p>Timeswap utilizes its constant product formula to automatically calculate interest (APR) and collateral rates (CDP).</p><p>Lenders receive this APR rate as a reward for lending out their tokens, which is paid out by the borrowers who pay a certain percent APR to borrow assets.</p><p>Borrowers have to lock up collateral to borrow assets. This collateral acts as insurance for the lenders, incase the borrower were to default on their loan.</p><p>Lenders and borrowers interact with the same pools, and the interface for both are very similar.</p><p>As a lender, you’ll see something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_nb1ZXmdBmcWZQoagqvdBQ.png" /></figure><p>Here you can choose your asset, collateral that you want backing your loan, the maturity date, the amount of tokens you want to lend out, and your risk tolerance.</p><p>One of the great things about Timeswap is that you can adjust the APR based on your own level of risk tolerance.</p><p>You’ll see a bar like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*xumERNjKQiufKJAPwARmVg.png" /></figure><p>By toggling to “Advanced” on the platform, you can adjust the APR rate to your liking. You just slide a bar from left to right depending on the amount of risk you want to take on. The higher the APR, the less insurance for the lender.</p><p>As a borrower you’ll see a very identical screen, which looks something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*smCrz2ksAhTV1AnHVmYOJQ.png" /></figure><p>Here you do the same thing essentially. Choose the asset you want to borrow, the collateral token you want to lock up, maturity date, amount of tokens you wish to borrow, and adjust the APR to your liking. Either keeping the “Recommended” setting, or adjusting it, as mentioned earlier.</p><p>This was just a very quick explanation, but to learn more about how to get started with the platform today, you can check out <a href="https://timeswap.medium.com/timeswap-mainnet-user-guide-6d90e53f2909">this in depth article </a>written by the Timeswap team.</p><p>Keep in mind that right now Timeswap is still in its very early stages of launch, which means that to be safe, they’ve only set up one pool for us to interact with: the USDC-MATIC pool.</p><h3>Native Tokens</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a1bkYeIPLI2t2odcg7_3WA.png" /></figure><p>Let me start by saying that the tokens I’ll be referring to in this section are completely different from the $TIME token that the platform will be releasing later this year. I’ll talk more about the $TIME token down below, but right now let’s focus on the six tokens that get distributed once a transaction is made on Timeswap.</p><p>Looking at the image above we can see the six different tokens listed: Bond Principle Token, Bond Interest Token, Insurance Principal Token, Insurance Interest Token, Liquidity Token, and Collateralized Debt Token.</p><p>We can see that four of these tokens go to the lender, one goes to the borrower, and one goes to the LP.</p><p>I’ll go over them briefly here, but if you want to dive in further on the subject you can check out <a href="https://timeswap.medium.com/timeswap-native-tokens-50a5da587be0">this article</a>.</p><h4>Lender Receives:</h4><ul><li><strong>Bond Principal Token (BPT): </strong>This token is issued to lenders who deposit assets into a pool. After maturity date for a loan position, you can swap these BPT tokens and claim back the underlying asset the you lent out.</li><li><strong>Bond Interest Token (BIT): </strong>This token keeps track of the amount of interest owed. The owner of these BITs can burn these tokens after maturity to receive the interest due, according to the amount of BIT’s owned.</li><li><strong>Insurance Principal Token (IPT): </strong>This token acts as a hedge incase of a borrower default. So if a borrower defaults, I can burn these to claim whatever percentage of funds I’m owed.</li><li><strong>Insurance Interest Token (IIT):</strong> This token is also issued to lenders as a hedge against the default risk of borrowers. These tokens act as a hedge for any BIT tokens the lender was not able to receive.</li></ul><p>Lenders can trade their positions before maturity if they wish to exit, either in full or partially since they’re ERC-20’s.</p><h4>Borrower Receives:</h4><ul><li><strong>Collateral Debt Position Token (ERC-721-NFT): </strong>This token is issued to users who deposit collateral and borrow from the pool. Whenever someone borrows assets from Timeswap, they’ll receive an NFT representation of that position. This CDT acts as a receipt for the amount of funds the user owes. In order to claim back your collateral, you have to pay back the loan before maturity, then you can burn this NFT to withdraw back your collateral.</li></ul><p>Borrowers can downsell their loans since they’re NFT’s. Meaning you can sell your borrow positions.</p><p>The NFT will look something like this, depending on your exact position of course:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*FaOQs7S3cJPB_xGgGbGo9Q.png" /></figure><h4>LP’s receive:</h4><ul><li><strong>Liquidity Token (LT’s):</strong> If you’ve ever provided liquidity to a DeFi protocol, then you’re probably already familiar with LP tokens. Liquidity providers receive ERC-20 LTs as proof of their asset and collateral deposits into a pool in exchange for transaction fee rewards. “After maturity, these LTs provide a proportional claim over all the assets in the principal pool &amp; collateral locked pool after the settlement process for lenders is accounted for.”</li></ul><p>LP’s can also trade their positions, since they’re erc-20’s. Allowing them to exit a position before maturity.</p><p>In Timeswap there can be multiple pools for the same token pair, each pool having a different maturity date.</p><h3>Social Tokens</h3><p>According to The Defiant: <em>“A social token represents a fractionalized share in the intrinsic value of a community, brand, or human. It’s a form of the ownership economy giving participants exposure to the growth trajectory of whatever the community is clustered around as well as the potential to help shape that trajectory.”</em> In other words, the community grows and shares in the benfits together.</p><p>There are three main types of social tokens:</p><ol><li>Community Tokens</li><li>Creator Tokens</li><li>Personal Tokens</li></ol><p>With Timeswap, anyone holding a social token can create a lending pool for it, enabling these tokens to be used for yield by lending them out, or as collateral to borrow other assets.</p><p>If you want to learn more about social tokens and how they can be used in Timeswap, you can check <a href="https://timeswap.medium.com/social-tokens-and-timeswap-45449cede687">this article</a> out.</p><h3>Stats</h3><p>Timeswap has only been live on mainnet for a couple of weeks now (since late March), and so far we’ve seen about:</p><ul><li>Over 282,000 USDC lent out</li><li>Over 300,000 USDC borrowed</li><li>Over 10,000 transactions</li><li>Over 3,000 unique wallets</li></ul><p>You can check these numbers for yourself <a href="https://dune.xyz/ameeth/Timeswap">here.</a></p><h3>Investors &amp; Advisors</h3><p>As we can see on their website, Timeswap has some big name backers and advisors:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AEibncDcdsmf9vYCNKzv9Q.png" /></figure><p>Some of the biggest VC’s in the game, along with Polygon co-founders Sandeep Nailwal, and Jaynti Kanani acting as advisors for the platform.</p><p>I should also mention that the third Polygon co-founder, Mihailo Bjelic is an angel investor to the platform.</p><h3>Wen Token</h3><p>$TIME will be the native token for the Timeswap platform. The token is not out yet so don’t be fooled! It should be releasing at some point this year, so airdrop opportunity for early users maybe?</p><p>In terms of utility, it will be used for governance over things such as: protocol/LP fees, strategic partnerships, future products, and the DAO treasury. Now this isnt the best utility for number go up — so when I say I’m bullish on the project, I mean I’m bullish in the sense that I think they’ll be a big player in the sector, along with an Aave or Compond. I think they’ll continue to grow their user base over time, along with adding more products to the platform.</p><p>Anyway, I’d keep my eye on their <a href="https://twitter.com/TimeswapLabs?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor">twitter</a> or <a href="https://timeswap.medium.com/">blog account</a> to stay up to date with the latest on their $TIME token release.</p><h3>Closing Thoughts</h3><p>Timeswap is without a doubt revolutionizing the lending and borrowing market.</p><p>They’re creating a true permission-less platform where any user, holding any ERC-20 token can create their own money market pool. This means we’re finally getting a reliable lending and borrowing platform for those long tail assets us degens are used to owning. No more having to go through governance voting to get assets approved!</p><p>There’s still a lot more I didn’t time to mention. For example they recently awarded early users of their gamified testnet with airdropped NFT’s, that will most likely hold certain unique utility within the protcool in the future. I’d imagine them being used as collateral maybe? These NFT’s are more fun, and look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0umE1IfU0ibHVHHWbCRBag.png" /><figcaption><a href="https://opensea.io/Timeswap">Link to Opensea page</a></figcaption></figure><p>Timeswap is definitely one of the DeFi projects I’m most bullish on right now, and being such a young platform still, I’m excited to see how far they go over time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f21b93b82fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Polygon Zero: The Most Performant zk-Rollup]]></title>
            <link>https://medium.com/@pedronv/polygon-zero-the-most-performant-zk-rollup-a3c53b786364?source=rss-98445327fa9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3c53b786364</guid>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[polygon-network]]></category>
            <dc:creator><![CDATA[Pedro]]></dc:creator>
            <pubDate>Fri, 11 Mar 2022 19:32:38 GMT</pubDate>
            <atom:updated>2022-03-11T19:39:23.630Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1B7Wmy8Aj7zO-p5L_Cdqrw.png" /></figure><p>Last month, I wrote a deep dive article on <a href="https://medium.com/@pedronv/a-deep-dive-into-the-polygon-ecosystem-matic-88ae99b99c48">Polygon</a>. While doing my research on the project, I quickly realized that there was no way I was going to be able to go over everything in one go.</p><p>If you’re familiar with Polygon, you know just how much they’re working on over there. Like I’ve been saying, they’re the Swiss Army Knife of L2 scaling solutions.</p><p>Although their Polygon PoS chain is the one we’re most familiar with today, there’s a whole suite of zk-rollups being developed right now, waiting to be rolled out in the near future.</p><p>For the past couple of weeks, I’ve been going over these different zk-rollup solutions one by one: <a href="https://medium.com/@pedronv/deep-dive-on-polygon-hermez-bringing-scalability-to-ethereum-using-zk-technology-4acfbcff78f4">Hermez</a>, <a href="https://medium.com/@pedronv/polygon-nightfall-deep-dive-a-private-rollup-for-enterprises-a01b298721c5">Nightfall</a>, and <a href="https://medium.com/@pedronv/polygon-miden-deep-dive-a-stark-based-zk-rollup-600564264613">Miden</a>.</p><p>In this article I’ll be going over the fourth zk solution, <a href="https://polygon.technology/solutions/polygon-zero">Polygon Zero</a>. I’ll be talking about what Polygon Zero is, how it got to where it is now, and what makes them different from any other zk solution.</p><h3>Quick Timeline</h3><p>In 2019, Brendan Farmer and Daniel Lubarov started <em>Predicate Labs</em>, which was the development team that built the first version of the <em>Mir protocol</em> (now Polygon Zero).</p><p>According to <a href="https://mirprotocol.org/blog/Introducing-Mir">this article</a> they published a couple of years ago:</p><p>“<em>Mir is a platform for decentralized applications that’s powered by zero-knowledge proofs. Mir has a simple goal: to empower developers to build scalable and private decentralized apps.”</em></p><p>Whenever a program was executed on the Mir network, a recursive zk-proof of validation would be generated. In short, recursive proofs is like generating a proof of a proof. So it involves generating a single zk-proof, that verifies a set of transaction proofs were valid.</p><p>Recursive proofs are a very young technology that were first introduced in theory in 2014.</p><p>In 2019, Mir was able to generate recurisve proofs in 2 minutes. This is a long time to generate a proof obviously, and there was no way something like this wold be able to scale. For this to actually scale, the time to generate a recursive proof would have to be a lot lower.</p><p>In 2020, Mir took a huge leap forward thanks to advancements from the Aztec team, which figured out how to generate recursive proofs in 60 seconds.</p><p>Following this breakthrough from the team at Aztec, the Mir team developed Plonky, a proving system that allowed the Mir protocol to generate recursive proofs in 15 seconds.</p><p>Then in December 2021, Polygon purchased Mir for $400 million. This acquisition included the whole team of cryptographers and developers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7iyteq8e4GF8B5PVspYWAg.png" /></figure><p>According to Mir co-founder Brendan, they were impressed by Polygon’s vision for the future, and their commitment to zk scaling. Of course we know by now about the $1 billion pledge Polygon made towards zk scaling.</p><p>Initially, Mir was building a zk enabled chain (so their own separate L1 chain), but now they’ll be building a decentralized zk-rollup on top of Polygon.</p><p>This acquisition also came with a name change, from the Mir protocol, to Polygon Zero.</p><p>In January 2022, not long after the acquisition, the team announced <a href="https://github.com/mir-protocol/plonky2">Plonky2</a>, which allowed for recursive proofs to be generated in just 170 ms… on a Mac-Book Pro. This was the fastest implementation of recursive proofs ever.</p><p>So in a matter of 3 years or so, recursive proofs went from taking 2 minutes to generate, to 170 ms (about 300 ms on a Mac-book Air) — this was huge!</p><p>These advancements in recursive proofs were all in service of developing Polygon Zero:<em> “the most scalable zkEVM powered by Plonky2.”</em></p><h3>What Is Polygon Zero</h3><p>Polygon Zero is a zk L2 solution, powered by the most fast and efficient recursive proof system, Plonky2.</p><p>Before I go any further, I want to mention that I’m not a cryptographer by any means, so instead of me trying to explain how everything works, I’ll just leave links to certain topics incase you feel like diving deeper on the subject.</p><p>This section probably isn’t too important for most of us, so feel free to skip down to where I talk about what is acually being built using Plonky2.</p><h4>Plonky2:</h4><p>Plonky2, is an iteration of Plonky1, which was an advancement from the proving system Aztec built in 2020.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cCsZNTD-M3ucTq4VPo963A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3K9kAVCVd6fBnmH4A8xl7Q.png" /></figure><p>The one common denominator between all three of these is <a href="https://vitalik.ca/general/2019/09/22/plonk.html">Plonk</a>, so let’s look at that first:</p><p>Recall that a zk-proof involves generating a proof of a certain computation, without revealing anything other then the proof of the validity of that computation. So no info gets revealed, just the proof.</p><p>There are two major families of zk-proofs: SNARK’s and STARK’s. Without going into detail here, the major difference includes the fact that SNARK’s rely on elliptic curves for security, while STARK’s rely on hash functions for security — using hash functions means quantum resistance. Plus, another difference is the fact that STARK’s are transparent, while SNARK’s are not.</p><p>Plonk is the name of a proving system — in short, it’s a type of SNARK.</p><p>Now let’s look at the different types of commitment schemes that were combined with Plonk:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bm2TzKbcP2HXOC7ycpDcew.png" /></figure><p>If we recall, Aztec used Plonk + <a href="https://alinush.github.io/2020/05/06/kzg-polynomial-commitments.html">KZG</a>, for recursion proof time of 60 seconds.</p><p>Plonky1 used Plonk + <a href="http://www.doc.ic.ac.uk/~ids/dotdot/crypto_papers_etc_worth_reading/coin_mixing/Halo_iacr_2019_1021.pdf">Halo</a>, for recursion proof time of 15 seconds. Halo was first introduced by Zcash in 2019, and was the first recursive proof scheme that didn’t require a trusted setup. The downside with using Halo here, was that it was not Ethereum compatible, which is why Mir initially wanted to build their own seperate L1 chain.</p><p>Plonky2 uses Plonk + <a href="https://vitalik.ca/general/2017/11/22/starks_part_2.html">FRI</a>, for recursion proof times of 170ms. In 2021, co founder Daniel mentioned the idea of combining FRI with Plonk, instead of Halo. FRI is a commitment scheme used for STARK’s, which means that by using FRI, you’re essentially turning Plonk into a STARK (recall that Plonk was initially a type of SNARK), which also means you’re adding transparency to the system. At the time, there was only one other project (Fractal) that had implemented recursive FRI proofs, and the proving times for that protocol was about 10 minutes — not scalable. That being said, the Polygon Zero team was able to get recursive proofs down to 170 ms using FRI. So basically, Plonky2 takes the first version of Plonky, and replaces that commitment scheme (Halo) with a new one, FRI. If you look at the chart above, the proving speed for FRI is “variable.” That’s because the FRI model uses something called the Blowup Factor, which basically means how much data you want to cmmit to. The less data you commit to, the faster proving you get. Of course there’s also the fact that with less data, means a little bit less security.</p><h4><strong>So what’s being built with Plonky2?</strong></h4><p>As mentioned earlier, “all of this is in service to developing Polygon Zero…the most scalable zkEVM powered by Plonky2.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hQcSDjGoUcDfuSSkZ2D6eQ.png" /></figure><p>Basically, they’ll be building a zk-rollup — and every zk-rollup needs a zkEVM to actually be able to process computations. The zkEVM used for Polygon Zero’s zk-rollup will be powered by Plonky2, the most efficient, fastest zk prover system today.</p><p>Developers will be able to deploy their smart contracts on top of Polygon Zero, and leverage its very high performance level, while also leveraging the security of Ethereum. According to one of the co-founders, apps on this L2 (Polygon Zero), can run more opcodes and functionalities.</p><p>Also, think of how decentralized a zk-rollup like this can get when you allow for such low proving times — on a MacBook. No fancy hardware or anything, I’ll literally be able to generate very fast proofs on the computer I’m typing this article on.</p><p><strong>What’s the difference between Polygon Zero and Starkware?</strong></p><p>Most rollups, including Starkware, involves taking a bundle of ttransactions, and generating a proof that proves that every transaction inside that bundle was valid.</p><p>With Polygon Zero, recursive proofs are used. So a bunch of very fast proofs are made simultaneously for every transaction. Then these individual transaction proofs are bundled together to create a bigger proof. A proof that verifies the validity of other proofs.</p><p>This essentially means that Polygon Zero can scale horizontally. So if you have a bunch of machines generating these transaction proofs in parallel, adding more machines (Macbook for example) means more transactions can be proved. What this all means is that by using recursive proofs here, you can scale to a large number of transactions, without sacrificing latency.</p><h4>Here are some of the Polygon Zero stats listed on their website:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*635vZkeuGoBHOiEkT8VWpA.png" /></figure><h3>Roadmap — Wen Launch?</h3><p>According to <a href="https://blog.polygon.technology/zkverse-polygons-zero-knowledge-strategy-explained/">a recent blog article</a> released by the Polygon team: <em>“Polygon Zero is moving toward a testnet in Q4 2022, with mainnet to follow.”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3c53b786364" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Polygon Miden Deep Dive: A STARK Based zk-Rollup]]></title>
            <link>https://medium.com/@pedronv/polygon-miden-deep-dive-a-stark-based-zk-rollup-600564264613?source=rss-98445327fa9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/600564264613</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[polygon-network]]></category>
            <dc:creator><![CDATA[Pedro]]></dc:creator>
            <pubDate>Fri, 25 Feb 2022 20:25:14 GMT</pubDate>
            <atom:updated>2022-02-25T20:25:14.573Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XUuuvhrguXh7xJ1baclXuQ.png" /></figure><p>Over the past weeks, I’ve been going over the different zk solutions within the Polygon framework one by one: Hermez, Miden, Nightfall, and Zero.</p><p>I started this series by going over<a href="https://medium.com/@pedronv/deep-dive-on-polygon-hermez-bringing-scalability-to-ethereum-using-zk-technology-4acfbcff78f4"> Polygon Hermez</a>, a zk rollup optimized for cheap, secure transfers and payments on Ethereum. Then followed this up by going over <a href="https://medium.com/@pedronv/polygon-nightfall-deep-dive-a-private-rollup-for-enterprises-a01b298721c5">Polygon Nightfall</a>, a privacy enabled zk rollup for enterprises.</p><p>Today I’ll be continuing on this series by going over <a href="https://polygon.technology/solutions/polygon-miden">Polygon Miden</a>, a STARK based zk rollup.</p><p>First, I wan’t to point out that there wasn’t too much information about Polygon Miden, so I’m sure there’s a lot that I missed. That said, most images and info I took for this article can be found in this video presentation<a href="https://www.youtube.com/watch?v=pLu7XeEN-f4&amp;t=1099s"> here</a>.</p><h3>From The Beginning</h3><p>Bobbin Threadbare is in charge of the development of Polygon Miden.</p><p>He made several contributions to the zk space, including leading the development of Distaff VM, and Winterfell — both of which are core components of the Polygon Miden framework.</p><p><strong>GenSTARK:</strong></p><p>His jorney into the whole world of STARK based systems, began in 2019 when he developed GenSTARK, a STARK based prover that was able to generate proofs for any kind of computation. However the issue with this tool was that it wasn’t developer friendly, so he wanted to find a way to fix this.</p><p><strong>Distaff VM:</strong></p><p>He started thinking more about a STARK based VM and how something like this could even be possible to make. This resulted in him writing a piece called: <a href="https://ethresear.ch/t/a-sketch-for-a-stark-based-vm/7048">“<strong>A sketch for a STARK based VM,”</strong></a><strong> </strong>in February of 2020 — and only a couple years later, he decided to build his own STARK VM using the ideas from this piece he wrote, as a way to prove that it could actually be done.</p><p>This led to the development of Distaff VM in April 2020, which ended up being a foundational piece for the current Miden project.</p><p>Distaff VM is a zero knowledge virtual machine.</p><p>Whenever a program is executed inside a zk-VM, a zk-proof of execution is generated to verify that the program ran correctly, without having to actually run that program. There are two methods in which knowledge can be proven here — either using a SNARK proof, or a STARK proof.</p><p>Distaff is a STARK based virtual machine.</p><p>According to their github page:</p><p><em>“For any program executed on Distaff VM, a STARK-based proof of execution is automatically generated. This proof can then be used by anyone to verify that a program was executed correctly without the need for re-executing the program or even knowing what the program was.”</em></p><p>What Miden VM does, is take this Distaff VM, and adds a more efficient proving system to it — Winterfell.</p><p><strong>Winterfell:</strong></p><p>A year after the development of Distaff VM, Bobbin led the development of Winterfell over at Facebook.</p><p><a href="https://github.com/novifinancial/winterfell">“<em>Winterfell is is a fully-functional, multi-threaded STARK prover and verifier for arbitrary computations.”</em></a><em> </em>— essentially a much more performant, up to date version of GenSTARK.</p><p>Both Distaff VM and Winterfell, are foundational pieces of Polygon Miden.</p><h3>What Is Polygon Miden</h3><p>Polygon Miden is a general purpose STARK based general purpose zk-rollup. Now let’s break this down.</p><h4>zk-rollups:</h4><p>Most of you probably already know what a zk rollup is, but incase you don’t, here’s a very brief explanation:</p><p>In a zk-rollup, users (you and I), send our transactions to system operators, who aggregate as many transactions as possible into a giant batch. Once this batch is executed, a zk-proof is generated, proving that all the transactions that were executed within the single batch, were done so correctly. These zk-proofs represent the state change in the ledger.</p><p>There are several advantages to using zk-rollups, including:</p><ul><li><em>100x </em>Lower fees: We get lower fees because instead having to execute transactions 1 by 1, a whole bundle with thousands of transactions included, gets executed all together. Meaning the gas fee is split between everyone whos transaction was included in the bundle. This also means that the more transactions that are included inside a bundle, the cheaper it gets for the individuals.</li><li>High security: zk-rollups derive their security from their L1 chain, in this case Ethereum.</li><li>High throughput: Bobbin mentioned in an interview that 20k TPS after sharding is a possibility.</li></ul><p>zk-rollups rely on validity proofs, and there are two ways in which one can achieve these validity proofs: SNARK’s, or STARK’s. Both are acronyms for the method by which the two parties prove their knowledge.</p><p>Both SNARK’s and STARK’s are zero knowledge proof technologies, which means one individual can prove to another individual that something is valid, without having to disclose any information aside from the validity of the statement (the proof). This means that zk technologies can be both a privacy preserving solution, and a scalability solution.</p><h4>STARK based:</h4><p>Remember that when a batch of transactions gets executed in a zk-rollup, a proof is generated proving that all transactions were valid. These zk proofs let me prove to you that I performed some action correctly, without having to disclose any of the actual information within the transaction. It works something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XewZIC8qMnfngv88htktpw.png" /></figure><ul><li>A prover runs the program, in this case executes a bunch of transactions, and generates a proof for all the transactions.</li><li>He then sends this proof to a verifier to check for correctness. No information about the actual transaction gets disclosed, only the single proof is shown.</li></ul><p><strong>SNARK’s:</strong></p><p>zk-SNARK’s were first coined in January 2012, by a professor at UC Berkeley named Alessandro Chiesa. Considering SNARK proofs came first, they had a bit of a head start in terms of adoption. Z-Cash frist popularized the usage of SNARK’s within its own blockchain community — plus Loopring and JP Morgan also adopted SNARK technology. Because of the wider adoption within this technology, SNARK’s have more published code, developer libraries, projects, and developers for people to use and learn from.</p><p>SNARK’s rely on elliptic curves for security, which already is a diffference between the two zk proof technologies. All we need to know about the use of elliptic curves here, is that it means SNARK’s are not quantum resistant.</p><p>One of the biggest differences between the two proof technologies, is that SNARK’s require a trusted setup to kickstart the whole proof system. It’s basically like stating the rules. When these rules are established, keys are generated — and these keys generate the SNARK proofs and also verifies these proofs. So if someone has access to these keys, they’d be able to generate false proofs and cheat the system essentially. That’s why it’s very important for the keys to be destroyed immediately after this initial trusted setup phase. We’re trusting that the parties involved in this trusted setup, actually destroyed these keys.</p><p>Finally, the proof size for SNARK’s are smaller, which means less on chain data storage, which means less gas paid by end users.</p><p><strong>STARK’s:</strong></p><p>Although SNARK’s are more developer friendly and require less gas to the end user, STARK’s offer some unique advantages, which actually led to Vitalik himself calling them the <a href="https://vitalik.ca/general/2017/11/09/starks_part_1.html">“newer, shinier cousin.”</a></p><p>Eli Ben-Sasson, Iddo Bentov, Yinon Horeshy and Michael Riabzev first coined STARK’s in 2018.</p><p>STARK’s rely on hash functions instead of elliptic curves, which already is one of the advantages for them. Using hash functions means STARK’s are quantum secure, which I would imagine will be pretty important in the future.</p><p>Another huge advantage with STARK’s is transparency, which means no trusted setup is required.</p><p>These advantages are great, however they come at a cost — gas. With STARK’s, proof sizes are a lot bigger, which means it takes longer to verify them, which means more gas paid by the end user:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V9rnci2hhwX4IokXl2ULEg.png" /></figure><p>Ultimately, STARK systems are superior in my opinion, however the technology hasn’t been as widely adopted as SNARK’s. This is why I’m super bullish on projects like Starkware and Polygon Miden, that are actually working on bringing this STARK technology mainstream.</p><h4>General Purpose:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RBmbEuaUeMMI-o1Odf1IIw.png" /></figure><p>There are 2 types of zk-rollups one can develop, a specialized rollup, or a general purpose rollup.</p><p>Specialized rollups specialize in a certain field or action. For example one zk-rollup could be built to handle payments, while another rollup could be built to handle NFT minting and sales.</p><p>Then there’s general purpose rollups that can handle any type of logic. So in a general purpose rollup, all logic executed on Ethereum, could be executed on a rollup as well. Building a general purpose zk-rollup is harder to accomplish because it requires a zk virtual machine (zkVM).</p><h3>What’s a zkVM:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DYaAzCjlXYev8oKVdfwjHg.png" /></figure><p>A virtual machine takes some initial state and set of programs, executes them, and gives you a final state along with a proof that everything was correct. The crucial piece is that the VM could take any number of different programs, and execute them all at once, generating a proof that verifies all the programs.</p><p><strong>Polygon Miden has the Miden VM:</strong></p><p>Miden VM is essentially Distaff VM, with Winterfell as the backend prover.</p><p>Some of the Miden VM highlights include:</p><ul><li><strong>Developer friendly:</strong> The goal is to make it so that developers don’t even have to learn anything about cryptography, or zk-proofs, in order to run smart contracts on top of this zkVM.</li><li><strong>Multi Language Support:</strong> The team is working on adding support for multiple programming languages, while keeping Solidity as the “first class citizen.”</li><li><strong>Safety Centric Design:</strong> According to Bobbin, his goal is to make this Miden VM, “safer than EVM itself.”</li><li><strong>Privacy Focused:</strong> Although this isn’t the focus right now, the Miden team is already putting the pieces in place so that privacy could be added at some point in the future. According to Bobbin, privacy should come after recursive STARK’s.</li></ul><h3>Polygon Miden Architecture:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rz-ynloWGV3MoP2OrZ48NA.png" /></figure><ul><li>All our transactions get sent to Miden operators.</li><li>These operators bundle up 5,000 of our transactions at once, into 1 single block, and generates a STARK proof</li><li>200 of these blocks get aggregated together, and 1 single STARK proof is generated, proving these 200 bundled blocks (filled with 5,000 transactions each) are valid</li><li>The single STARK proof is the sent to L1 Ethereum for consensus &amp; finality.</li></ul><h3>Polygon Miden Stats:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9LBfn_E9Rp7hfcGeLeMMBg.png" /></figure><h3>Roadmap</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8oYU9YVLFsck13rmBFCwJQ.png" /></figure><p>Miden v0.1 was released in December last year.</p><p>The goal over the next couple of months is to keep building on top of this version by adding more and more functionality. So v0.2 involves adding memory, v0.3 involves adding storage, etc.</p><p>Mainnet launch is expected to happen in Q1 2023.</p><h3><strong>Wrapping It All Up</strong></h3><p>The goal of Polygon Miden is to build a zk-rollup using Miden VM. Again, this VM is what makes it possible to run zero knowledge logic.</p><p>Any project will be able to deploy their smart contracts on top of this zk-rollup.</p><p>The difference between this zk-rollup and most others, is the fact that Miden generates STARK proofs. Although using STARK proofs is more expensive, they’re ultimately more secure.</p><p>Plus, as Miden founder Bobbin mentioned, at some point in the future he’s going to start working on recursive STARK proofs — making the STARK based rollup cheaper! A recursive STARK is basically just taking let’s say 1,000 SNARK proofs, and generating a STARK proof of those 1,000.</p><p>Once we get recursive proofs on Polygon Miden, the team will start working on adding privacy to the network.</p><p>It’s going to be very interesting to see the adoption for Polygon Miden once mainnet launch happens. Projects like DYDX, and Immutable are great examples of the success that could come with STARK based systems.</p><p>Anyways, I’m very excited for the potential of a STARK based zk-rollup built on top of a super user friendly platform like Polygon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=600564264613" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Polygon Nightfall Deep Dive: A Private Rollup For Enterprises]]></title>
            <link>https://medium.com/@pedronv/polygon-nightfall-deep-dive-a-private-rollup-for-enterprises-a01b298721c5?source=rss-98445327fa9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a01b298721c5</guid>
            <category><![CDATA[polygon-network]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Pedro]]></dc:creator>
            <pubDate>Fri, 11 Feb 2022 23:10:56 GMT</pubDate>
            <atom:updated>2022-02-13T01:08:49.386Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*8Eqsxz9NHJQAxK6-XA4GWw.png" /></figure><p>This is my second week into this whole Polygon zk solutions journey, and honestly the more research I do on these different zk solutions for Polygon, the more and more bullish I become on the project.</p><p>For those that are new, I wrote <a href="https://medium.com/@pedronv/a-deep-dive-into-the-polygon-ecosystem-matic-88ae99b99c48">this article</a> going over the whole Polygon project in general, in which I mentioned that I would spend the following weeks going over all of the different zk solutions Polygon will offer, one by one.</p><p>A lot of people still look at polygon today and assume all they have is a PoS chain, but it’s important to know that Polygon is way more than a PoS chain. This PoS chain was done more to keep users and developers on Ethereum while further scalability solutions were accomplished, and considering the amount of adoption they’ve gained, it seems like this worked.</p><p>Like I said, Polygon is much more than a PoS chain. They’re literally a Swiss Army knife.</p><p>Below you can see a spectrum of the different solutions Polygon will provide:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_Sq6UZTqgds41TGn3uzWg.png" /></figure><p>On the far right of the spectrum we see all the zk solutions they’re currently working on: <em>Hermez, Miden, Nightfall, and Zero.</em> All these zk solutions bring something unique to the table, and so I thought each solution deserved to be looked at individually in greater depth.</p><p>This zk journey started with polygon Hermez last week, which if you’re interested in learning more about, you can check that out <a href="https://medium.com/@pedronv/deep-dive-on-polygon-hermez-bringing-scalability-to-ethereum-using-zk-technology-4acfbcff78f4">here</a>.</p><p>Continuing on this zk journey, I wanted to look at <strong><em>Polygon Nightfall</em></strong> this week and go through everything they’re currently working on, and how they add their own unique value not only to Polygon, but for the whole Ethereum ecosystem in general.</p><p>Nightfall is a privacy enabled rollup focused on making it easy to onboard enterprises on chain.</p><p>It basically lets me send someone an asset without you or anyone else being able to see what that asset was, how much value was sent, where it was sent to, or anything.</p><h3>From the Beginning</h3><p>In 2019, EY (a global professional services and technology firm) announced the first version of <strong><em>Nightfall, which was a set of protocols</em></strong> <strong><em>allowing for private transactions on Ethereum.</em></strong> So just think of the Hermez payment platform that I talked about last week, but now imagine that with prvacy included within each transaction. This means that Alice can send Bob an asset, but no one else will be able to see what the asset was, how much value was included, or where it went.</p><p>The reason they wanted to focus in on privacy is because this was something that was crucial for the main type of clientele they were aiming for, enterprises.</p><p><strong>Why Do Enterprises Need Privacy</strong></p><p>As we all know, everything we do on a blockchain is made public for anyone to see.</p><p>That’s why they need privacy.</p><p>If we look at a typical business relationship, it usually involves someone with money, and someone else with the goods. The issue with this type of relationship taking place on chain is that the details within this busines agreement should probably be kept secret. If you own a business, you probably don’t want your competition being able to see what you bought, how much you bought, how much money you have, etc. This is one reason we don’t have too many enterprises jumping in yet.. but that’s also why the potential for Nightfall is insane in my opinion.</p><p>So for about six years, EY has been researching and developing different technologies to help improve privacy on chain.</p><p><strong>Nightfall Is Born</strong></p><p>The first version of Nightfall was announced in 2019, enabling privacy on Ethereum. However the issue was that it was still too expensive for any project to start using.</p><p>According to Paul Brody, it took them $3,000 to do a sample set of transactions in the first supply chain protocol they built using Nightfall. This was when gas fees were a lot cheaper too. Turns out it’s way to expensive to have privacy directly on Ethereum.</p><p>One of the big use cases for Nightfall is supply chains, and if they’re goal is to put everything involved in this process on chain, from sourcing raw materials, to manufacturing, transportation, etc. They need to be able to scale hundreds of millions of transactions per day (at peak levels).</p><h4>In Comes Polygon</h4><p>After realizing building enterprise chains was to expensive to have on chain, they decided to start building on L2. Considering EY has brought a lot to the space, they were a very attractive opportunity for any L2 to partner with.</p><p>They had several options too choose from, but eventually landed with Polygon because of their understanding of how to build enterprise chains, and because of their strong commitment to Ethereum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s5fkmhtcbwP-mJLTn74Png.png" /></figure><p>The goal of the partnership was to build private enterprise chains on Polygon, using the Nightfall tachnology.</p><p>At this point Nightfall had iterated a couple more times, until they landed on Nightfall 3, the version integrated into the Polygon framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZCuAcPAAKLsc7l6b6KPcDA.png" /></figure><p>Each iteration of Nightfall has been about improving efficiency.</p><p>The main difference I want to point out about version 3, is that this uses a combination of optimistic rollups and zk cryptography. So we’re getting the scalability provided by optimistic rollups, along with the privacy provided by zk proofs.</p><h4>What Exactly Is Polygon Nightfall</h4><p>Polygon Nightfall is a optimistic rollup that leverages zk cryptography for privacy. A defi project, or any big enterprise could deploy on top of Polygon Nightfall to leverage privacy.</p><p>Really, all Nightfall covers is the private exchange of money and assets. It doesn’t take care of making the actual business rules of the contract private (what you paid, etc.) That’s where Starlight and other technologies EY has developed come into play.</p><p>The partnership between Polygon and EY involves using the Nightfall technology to build industry chains that allow enterprises to have anchored side chains connected to L1 with predictable low fees, and under regulatory guidelines.</p><p>The goal is to take the different technologies that EY has developed over the years (all with a focus on privacy for enterprises), and put them together to create the ideal private chains enterprises need, while leveraging Polygon for low fees and scalability.</p><p>So using Nightfall, I’ll be able to send someone tokens (erc-20, erc-721, erc-1155) without anyone being able to see the contents within that transaction. You cant see what I sent, how much I sent, who I sent it to, etc. All you can see is that some transaction took place on chain, that’s it.</p><p>In order to have private business logic, we need another technology EY is developing, <em>Starlight</em>.Starlight is a general purpose compiler for zk circuits. So I put a solidity contract in, and a private version comes out on the other side (kind of — I don’t want to get too into detail here).</p><p>Two other EY developed technologies that will be used to create these enterprise chains, include a <em>locations</em> <em>service</em> that allows for the adding of location information into tokens (essential for companies with physical assets). Plus the <em>baseline</em> product EY has developed, which basically allows companies to post proofs and links on chain, instead of the actual contents of their transactions. This is a technology Microsoft has integrated into their blockchain. No big deal right?</p><p>So all these pieces together make it safe and reliable for companies to start deploying on chain.</p><h3>How Nightfall Works</h3><p>Let’s start by looking over at this image I took from the Nightfall team during one of their video presentation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*12bXW-iGRhI0KDmSA00NnQ.png" /></figure><p>I’m going to try and keep this short and simple here. Basically, the bottleneck issue in scalability comes down to “state”, or the fact that storing data on chain is expensive. So the goal of a scaling solution is to keep lowering the amount of data stored on chain.</p><p>One of the first questions a solution answers is whether or not they want to store data on or off chain. Off chain would be through validiums, side chains fall somewhere in between the two, and on chain would be through rollups.</p><p>The advantage of storing data off chain is more scaling, but the tradeoff is security, because of the trust assumptions required with storing data off chain.</p><p>From here there are two types of rollups a solution one can use: a zk rollup, which uses zero knowledge proofs, or an optimistic rollup which uses fraud proofs. With optimistic rollups we assume all transactions are good, but if anyone thinks one of the transactions should be invalid, then they have 7 days to submit a challenge using a fraud proof, which proves if the transaction was invalid or not. With zk proofs there is no 7 day challenge period, a transaction has to be valid from the beginning to even be included inside a block. This is the beauty with using zk rollups, but the issue is that it’s expensive to compute the zk proofs.</p><p>Finally the solution decides if they want the transactions to be private or not. So looking at the image above, you would add an extra layer of zero knowledge cryptography if you want privacy — “zk” would be private, and “non zk” not private.</p><h4>Nightfall vs. Aztec</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tGCZjS2F84Uqqf1gb0d6gQ.png" /></figure><p>Above is an image displaying two different approaches for enabling privacy. Polygon Nightfall on the left, which uses optimistic rollups with zk cryptography, and Aztec on the right, which uses zk rollups and zk cryptography. Ultimately, the ideal solution would be a zk/zk approach similar to Aztec, but the issue with this approach today is that zk is too expensive.</p><p>Eventually, I’m sure Aztec or some other project will figure out how to reduce fees, but until then, Nightfall will continue using the optimistic/zk approach.</p><p>I do want to note that the Nightall team is planning on switching to a zk/zk approach once fee reduction issues are solved.</p><h4>Nightfall vs Hermez</h4><p>If you’ve read my previous article on Polygon Hermez, you may remember that they also have a payments platform.</p><p><strong>So what’s the difference?</strong></p><p>The difference is privacy.</p><p>Hermez uses zk rollups, but without adding the extra layer of privacy. In the image above, they would fall under the same area as zkSync, opting for scalability rather than privacy.</p><p>There’s obviously a lot more to Hermez, so just check out my article if you’re interested in learning more about that.</p><h3>Actors Involved</h3><p>Below we can see the architecture of Nightfall, and who the actors involved are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-3aD7GiZ4y6v6ExKuKCwcA.png" /></figure><p>Keeping this simple:</p><p>There’s <em>transactors</em> (the poeple actually transacting) that submitt transaction requests. These get picked up by <em>block producers</em> who take as many of these transactions as they can, validates them, rolls them up into blocks, and provides a proof that all the transactions these block producers included in the rolled up batch, were done so correctly. This is done on L2 and is how we get cheap fees.</p><p>That proof then gets sent to the L1 main chain. Once it reaches L1, there’s a 7 day challenge period where any challenger can submit a challenge saying “hey this transaction isn’t valid, here’s the fraud proof I made to prove my claim.” If the challenger was correct, then the block producer that submitted this invalid transaction gets slashed, and the challenger receives this slashed bounty as reward.</p><p>The other actors are liquidity providers, who allow us to have instant withdrawals. Usually with optimistic rollups, you have to wait 7 days for your tokens to be withdrawn (the 7 day challenge period I talked about earlier). However Nightfall avoids this issue by giving users the option for “instant withdrawal.” The way this works is that the liquidity providers essentially switches spots with you. He gives you the funds for your instant withdrawal, and he takes your spot in the 7 day wait period.</p><h3>Use Cases</h3><p>There are several use cases for Nightfall:</p><ul><li>One of the obvious ones is for financial enterprises and institutional investors. If you think about it, big institutional buyers want to transact in privacy without having to affect the market too much. This creates a big opportunity to onboard portfolio management firms that want to keep their transactions and swaps private.</li><li>Another use case is supply chain traceability, which means how they deal with supplies, carry out sales orders, how they pay for them, etc. Supply chains is one of the bigger segments they want to tackle, and there’s actually a beer company today that already uses EY tech for traceability. This company produces an NFT for every batch of beer they produce (Polygon can make this cheap), and this would keep track of how much beer there is, where it is (I think that location product I mentioned earlier comes in play here), how much beer is getting shipped, etc — privately. I was listening to this video interview where Paul Brody, Global Blockchain Leader at EY, mentions that their biggest traceability client today, a pharmaceutical company, generates 60,000 NFT’s per day. One for every product in their production line. Just think about that — that’s just one company. Imagine how many NFT’s will be minted on Polygon in the future.</li><li>ESG is another big use case, and one that is actually in play already. There’s a platform using this technology to create secret ballets essentially, where users can donate to a certain charity without disclosing that exact charity. Funds are transferred using Nightfall to keep this information private. Not only that, but by adding the supply chain of charities on chain, we would be able to tell if what they claim they’re doing with the money, is actually being done.</li><li>Us users can benefit a lot from a platform like Nightfall. I mean I’m sure there’s some transactions you want to keep private.</li></ul><p>I really want to make it clear that the goal of this Polygon + EY partnership is all about building private blockchains for enterprises, using the Nightfall technology, along with other pieces of technology EY has developed over the years. They want to build industry chains.</p><p>So if I’m understanding that correctly, it would be like having a blockchain solely dedicated for wine products (I live in Napa okay), where other wineries can just plug into. There could be a token involved that uses zk technology to prove a buyer is over the age of 21, without having to show their birth date. Basically optimizing the chain to make the business of wine as easy as possible. They’re not including things that’ll help with loans, or trading or anything — solely adding features that’ll make the process of buying and selling wine easy. This could just be one of the enterprise chains that are built, however there can also be an enterprise chain more tailored towards insurance, or warehousing — you get the point.</p><h3>What About Regulations?</h3><p>Well for one, EY is also an audit firm that has alredy developed a tool called a <strong>EY CryptoPrep</strong>, which takes your private transaction data and matches it to data and proofs on chain, allowing you to verify simple questions like: Did you do what you said you did?</p><p>So a compnay could have their own KYC list, which basically matches the name on that list to the proofs on chain.</p><p>Also, the zk-proof technically is the audit — it’s the proof that the input matches the output. Remember that zk-poofs don’t allow for any invalid transactions to begin with.</p><p>The team at Polygon Nightfall has made it very clear that the point isn’t to keep infomation private from regulators, but to keep enterprise information private from competition.</p><h3>Wen Launch</h3><p>Polygon Nightfall is currently under testnet, and is expected to go live this year.</p><h3>Conclusion</h3><p>I’m starting to realize there’s too much to cover with just one of the Polygon zk solutions alone. There’s a lot more I missed regarding Nightfall, so maybe I’ll write some more content around this solution over time.</p><p>For example I didnt go over the fact that a lot of the enterprise chains that will be built on Polygon Nightfall will use Polygon Avail for data availability. So maybe a topic for another day?</p><p>There’s a lot to cover, so I’m sorry if I missed anything important.</p><p>That said, Nightfall got me so hyped for the future of Polygon. Paul Brody from EY said that he plans on getting over half of the companies he works with to transition 100% on chain by 2030.</p><p>Not only that, but Polygon co-founder Sandeep also mentioned that he sees huge adoption within Polygon Nightfall over the next 12–18 months, and I can see why now. I mean if they can make dedicated industry chains, that are both private and cheap, and if they can make it extremely easy for any company to plug right into the network — then the potential is insane.</p><p>In terms of how the MATIC token will be used in Nightfall, there’s no official mechanism as of now, but if I had to guess — I would imagine the MATIC token gets used by the block producers to take part in validating the network.</p><p>Nightfall is a optimistic rollup that uses zk cryptography to allow for the private transfer of tokens. Using Nightfall, along with other technologies, the Polygon and EY team will build private enterprise chains, allowing for companies to start leveraging blockchain technology at ease.</p><p>It’s very clear the focus with this rollup will be enterprises, however users like you and I can benefit extremely from private transactions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a01b298721c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Dive on Polygon Hermez: Bringing Scalability To Ethereum Using zk-Technology]]></title>
            <link>https://medium.com/@pedronv/deep-dive-on-polygon-hermez-bringing-scalability-to-ethereum-using-zk-technology-4acfbcff78f4?source=rss-98445327fa9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4acfbcff78f4</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[polygon-network]]></category>
            <dc:creator><![CDATA[Pedro]]></dc:creator>
            <pubDate>Sat, 05 Feb 2022 01:44:08 GMT</pubDate>
            <atom:updated>2022-02-05T01:44:08.109Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*FjlxNaWGNoIWlFLDbMIeZA.png" /></figure><p>If you’re already familiar with Polygon, then you probably already know how big a player they are for the future of Ethereum scalability.</p><p>For those unfamiliar, Polygon is a L2 scaling solution built on top of Ethereum. However the difference with Polygon and other L2 scaling projects, is that Polygon offers a whole suite of scaling solutions. They’re literaly like a swiss army knife:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6dOwX9Jx-uEH0BiWqhLPNA.png" /></figure><p>Above is an image displaying a spectrum of the different scaling solutions Polygon offers. On the left we see Polygon SDK, which is a modular framework that allows developers to create customized blockchains. Next to that we see Polygon PoS, which is the Polygon chain we’re most familiar with today. Towards the middle we see Polygon Avail, which is part of their data availability solution. Then on the far right we have 4 different zk solutions:<strong><em> Hermez, Miden, Nightfall, &amp; Zero.</em></strong></p><p>Last week I wrote <a href="https://medium.com/@pedronv/a-deep-dive-into-the-polygon-ecosystem-matic-88ae99b99c48">this article</a> going over the whole Polygon project in general, with more of a focus on the Polygon PoS chain. In that article I mentioned that for the following weeks I’d go over the different zk solutions Polygon offers, 1 by 1.</p><p>With all these zk solutions bringing something different to the table, it would just be impossible to go over them all in one go.</p><p>To start this zk journey, I’ll be going over Polygon Hermez.</p><p>It’s important to note that although the Hermez team have released some of their 2.0 docs (yes there’s two versions of Hermez), they’re still a work in progress with a lot more to be added in over the following weeks. That said, as soon as the whole set of 2.0 docs are out, I’ll make sure to go over them and write about any new and important updates I find in there.</p><h3>TLDR:</h3><ul><li>3 MBA colleagues started a company called Iden3. Their first project was about self sovereign identities, however they realized further scaling improvements were needed in order for the masses to take advantage of this new type of digital id. In order to do stuff like voting with them.</li><li>The 3 founders pivot and start a new project called Hermez. Hermez 1.0 is payments platform that is currently up and running. This platform allows users to transfer any registered ERC-20 tokens from one Hermez account to another, through one simple to use web/mobile interface.</li><li>Last July the team announced the start of their development of a zkEVM, Hermez 2.0, which essentially means smart contracts on top of a zk-rollup. This is expected to roll out sometime this year.</li></ul><h3>Polygon Acquires Hermez</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c_wqs4h5m9MqTPiUiWfvjA.png" /></figure><p>About 6 months ago, Polygon announced the merger/acquisition of the Hermez for a total of $250 million, which at the time was the first full-blown merger of two blockchain networks.</p><p>At this time Hermez only had one product running, an L2 payments platform based on zk technology. However just before this merger, during the <em>EthCC 4</em> conference, Hermez <a href="https://blog.hermez.io/introducing-hermez-zkevm/">had announced</a> its plans to develop a zkEVM. In short, this means that developers could run smart contracts directly on top of a zk rollup. This is a huge deal in the scalability space, and is what really interested Polygon.</p><p>Polygon was able to acquire the whole Hermez team of 26 people at the time, its technology, and solutions. Literally everything.</p><h4>Why The Merge?</h4><p>According to <a href="https://blog.hermez.io/polygon-hermez-merge/">this blog post</a> from the Hermez team, this merger was made possible because of the <em>“harmony between both teams, which share the common goal of scaling and bringing the world to Ethereum.”</em></p><p>This merger was ultimately huge for both parties. Hermez would bring their existing zk technology and tools to the growing user base Polygon provides. Plus it means Polygon will be able to support in the development of the zkEVM (again, part of Hermez 2.0). For Polygon it means fully compatible smart contracts on a zk rollup.</p><h4>HEZ Token</h4><p>As part of this merger, the HEZ token which was a utility token that belonged to the Hermez Network, will cease to exist and instead Hermez will be implementing the MATIC token into its solution.</p><p>HEZ token holders were able to exchange their HEZ tokens for MATIC at a rate of: 1 HEZ = 3.5 MATIC.</p><p>So again, this HEZ token is no longer used in the Hermez ecosystem.</p><p>Okay now i can talk about what the Hermez project actually is.</p><h3>History of Hermez</h3><p>The journey of the Hermez team began about 5 years ago when three MBA colleagues got together and decided to start their own company:</p><p><strong>Jordi Baylina — Technical Lead</strong>: Jordi is one of the best Solidity developers around, having founded projects like The White Hat Group, &amp; Giveth, and audited some of the biggest web3 companies, like MakerDAO’s stable coin system &amp; Aragon. Plus he wrote numerous other smart contracts for Ethereum.</p><p><strong>David Schwartz — Project Lead: </strong>David has 20 years of experience in the IT sector, holding different engineering and executive positions in numerous companies throughout those years.</p><p><strong>Antoni Martin — Polygon Enterprise Lead:</strong> Antoni comes from the banking industry where he spent 17 years holding different roles.</p><p>The company they decided to start was called <strong><em>Iden3</em></strong>, and the first project they worked on was a self sovereign identity solution.</p><h4>Self Sovereign Identity (SSI)</h4><p>The first project these three decided to work on was a self sovereign identity solution. For those unfamiliar with SSI, I’ll go over it very briefly here.</p><p>So basically there are three types of digital id’s:</p><p><strong>Siloed:</strong> This type of digital ID means that each organization issues new identity credentials to each new user, which means you would need a new ID for every organization you join. For example if I’m currently a member at Gold’s Gym, I’d need to get a whole new, different digital ID if I wanted to go and join the Planet Fitness gym instead. Another example is when you visit a new doctor and they have you fill out the same forms of information you already filled out so many times. I mean our data is going everywhere.</p><p><strong>Federated:</strong> For this type of digital ID just think of “login with Google.” Although this is a very simple and convenient method for us users, it comes at a cost, our personal data. With this method, our digital ID’s are managed and outsourced to companies with a financial interest in our personal data, meaning there’s a central server somewhere that holds all our data from all the apps we opened using this “login with x” method. I mean look no further than “login with Facebook” to see the privacy and security concerns with this method of digital ID’s.</p><p><strong>Self Sovereign ID (SSI):</strong> This type of digital ID became possible thanks to developments in three different technologies: blockchain tech, decentralized identifiers, and verifiable credentials. SSI means your digital ID is your own, you control your own data and only allow companies to see what you let them see. It would be like proving to someone that I’m over the age of 21, without actually revealing my date of birth. Or like proving to someone I live in California without showing them my address. So just imagine your crypto wallet holding all your certificates in one place, ready to use at ease without actually showing any of the information disclosed inside those certificates or other documents you hold in there. From gym memberships, to your drivers license and school diploma. Just think of that convenience and privacy.</p><p>Okay let’s continue now.</p><p>After a couple years of working on this SSI project, the three colleagues realized that further scalability was needed in order for SSI to become mainstream. However I still wanted to bring all this up because it looks like they haven’t given up on this project yet. It’s still something I hear co-founder Antoni Martin bring up in recent interviews.</p><p>So I’m very hopeful that eventually at some point in the future, Polygon Hermez will accomplish this goal, and that voting polls in the future will be powered by Polygon. This is not to say that it’s definitely going to happen, we are still way too early in the crypto space to accomplish something of this magnitude. There’s still so much that has to go right for something like this to happen. What I am saying is that I’m excited that there’s a team on Polygon working very hard to accomplish this SSI goal.</p><p>Anyways, after realizing further scalability was needed in order for SSI to become mainstream, the team of three decided to pivot and work on a new project, Hermez.</p><h3>What Is Polygon Hermez</h3><p>Hermez is a decentralized L2 rollup solution based on zk technology.</p><p>There are two versions of Hermez: 1.0, which is a payments platform that is currently up and running, and 2.0 which will bring a fully compatible zkEVM to Ethereum once development is finished.</p><h3>Hermez 1.0</h3><p>Hermez initially started off as a zk-rollup focused on scaling payments and token transfers on Ethereum. In short, zk-rollups work by taking a bundle of transactions and executing them off chain.</p><p>As we know, Ethereum gets very congested very quickly. I mean there’s literally millions of us all around the world competing to have our transaction included inside an Ethereum block. With Ethereum only being able to handle about 20 transactions per second (TPS), you can imagine why the network get’s congested very easily. This is where L2’s come in.</p><p>An L2 is basically a layer built on top of Ethereum. There are different L2 mechanism out there, but for now all you need to know is that L2’s involve taking transactions from the mainchain (Ethereum) and executing them off chain, and that the best type of L2 scaling solutions in existence today are zk rollups.</p><p>First, I should make it clear that there are two types of rollups used for scaling: Optimistic rollups (Arbitrum, and Optimism are the popular ones), and zk-rollups. The difference in the two lies in the types of proofs that are used to verify that all the off chain transactions were done so correctly. Optimistic rollups use fraud proofs, while zk-rollups use zk-proofs. zk proofs are universally known as superior.</p><p>When using zk-proofs, there are two ways in which knowledge can be proved, either by using SNARK proofs, or STARK proofs. You don’t need to know what exactly this means, but here are some of the tradeoffs between the two if you’re interested:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXq46EVn_ktnMNUF2Kmt5g.png" /><figcaption><a href="https://consensys.net/blog/blockchain-explained/zero-knowledge-proofs-starks-vs-snarks/">Image taken from the Consensys website</a></figcaption></figure><p>A rollup uses Ethereum for data storage instead of computation. In other words, instead of taking every single transaction and executing them one by one on Ethereum, a rollup takes a bundle of transactions (thousands) and executes them all at once off chain.</p><p>When these thousands of transactions get executed off chain, in the case of Hermez a zk-SNARK is generated. This zk-SNARK is just the name of the proof that is used to prove that the thousands of transactions that were done off chain, were done so correctly. The SNARK proves validity of every transaction in the batch, which means you don’t need Ethereum to verify every single transaction we make. Ethereum only verifies the proof (the SNARK in this case), not the transactions.</p><p>The cool thing with zk rollups is that we get instant validity. With a zk-proof it’s impossible to add an invalid transaction into a batch, which is why we get instant withdrawals as opposed to using optimistic rollups and having to wait 7 days.</p><p>“This ability to be able to verify proofs both efficiently and in constant time is at the heart of all zk rollups.”</p><p>This zk technology is what allows Hermez to be able to process 2,000 TPS. Oh and while listening to one of the interviews with the Hermez team, I heard them mention that this number could increase by a lot more in the future, so that’s very exciting.</p><h4>How it Works For Users</h4><p>If none of what I said about zk technology made sense, well that’s okay because that’s only what’s going on under the hood. Us users only have to deal with an interface, and luckily Hermez has made theirs extremely easy to use, both for web and mobile. The web interface looks something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcMbKOwg_t_XvHVI83LJpw.png" /><figcaption>To send tokens to another Hermez account, you just enter in the token, the amount, and the recipient address.</figcaption></figure><p>Through the Hermez interface, users can register and obtain their Hermez address by simply connecting their Metamask wallet.</p><p>Then with the click of a button users can deposit, withdrawal, or transfer any registered ERC-20 tokens they posses.</p><p>If you want to learn how to deposit funds into Hermez and play around in there, you can check out <a href="https://docs.hermez.io/Hermez_1.0/users/hermez-wallet/">this post</a>, or <a href="https://www.youtube.com/watch?v=OhW5-VNI0A4&amp;t=80s">this video</a>. Both are short and very easy to understand and follow along with incase you’re interested.</p><p>In total, there’s three different transactions you can make on Hermez:</p><ol><li><strong>Deposits:</strong> Sends any registered ERC-20 tokens from L1 Ethereum to L2 Hermez. Deposits require paying Ethereum gas fees of course.</li><li><strong>Transfers:</strong> Sends any registered ERC-20 tokens from one Hermez account to another Hermez account. Sending tokens from one account to another is very cheap and instant. To send and receive funds, your address could either be copied and pasted, or a QR code could be generated for easy scanning.</li><li><strong>Withdrawals:</strong> Send your ERC-20 tokens back from L2 Hermez to L1 Ethereum. Withdrawals require paying Ethereum gas fees.</li></ol><p>One thing to note about withdrawals is that Hermez offers a protection mechanism, <em>“force withdrawal”</em> that allows me to transfer my funds at any time from L2 Hermez back to L1 Ethereum, even if the coordinator (I’ll explain what this is down below) tries to act maliciously.</p><h4>Coordinators &amp; Proof of Donation</h4><p>Coordinators are the Hermez version of block producers. These are the guys that generate the zk-proof to prove the validity of the transactions we make off chain.</p><p>The coordinator essentially takes our transaction requests and places them in a bundle. Remember that rollups work by executing thousands of transactions at once. Coordinators are the ones that build these bundles. Once they create that bundle, they generate a zk-proof. This zk proof is then verified by a smart contract on Ethereum.</p><p><strong>So now that we know what a coordinator does, how do we become one?</strong></p><p>The reason Hermez is considered decentralized is because anyone can become a coordinator and earn fees (rewards) in return for their service.</p><p>There can be any number of coordinators on the network at once, however only one is able to actually process the transactions and earn rewards for any given time slot, which is 10 minutes long.</p><p>The Hermez network chooses its next coordinator through an auction process. Basically anyone can place a bid using MATIC tokens, and the person that bids the highest amount wins the right to process as many transactions as they can for 10 minutes, until the next coordinator is chosen. This is a very efficient process because it requires coordinators to fit as many transactions as they can within those 10 minutes so that the rewards they make outweigh their bids.</p><p><strong>What happens to the MATIC tokens used for bids?</strong></p><p>If you lose the bid you can either use those funds again in a future auction, or transfer them back to your wallet. If you win, this is how those funds you used to bid are used:</p><ul><li>30% burned permanently</li><li>40% goes towards a donations account managed by the Ethereum Foundation</li><li>30% for network incentives, to help drive further adoption of the Hermez network.</li></ul><h4>Features</h4><p>The following image was shown during the<a href="https://www.youtube.com/watch?v=dcR1lbJCqP8"> “Polygon Hermez Fireside Chat” </a>posted not too long ago. I wanted to show it because it lays out all the features Hermez 1.0 provides very clearly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_wO1uqDshJNKkxXS97H9HA.png" /></figure><h4>Current Use Cases</h4><p>This following image was also from the same “fireside chat” video I linked to up above. It’s a great image showcasing the use cases hermez provides:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gwtk9Wew3rQXO7xmjunhug.png" /></figure><p>Atomic transfers are very useful in preventing scams. These types of swaps only work if both parties involved in the transaction both send the required funds. So for example let’s say Alice wants to send Bob 1000 DAI in return for 1 ETH. For this transaction to go through using atomic swaps, both Alice and Bob have to send their tokens to each-other. One cannot process without the other.</p><p>Believe it or not this is an actual problem in some developing countries, so you can see how this feature could be very powerful.</p><h4>How Can A Company Actually Use This?</h4><p>Considering Hermez is a decentralized open network, any merchant or company is free to create their own Hermez account and start accepting instant payments at very low costs.</p><p>If for example the “Mom &amp; Pop” shop down the street wanted to start using the Hermez network to start accepting crypto payments, the shop just has to use their Metamask (or any other accepted wallet) to register their account, and that’s it. They now have a Hermez address to start accepting payments to.</p><h3>Hermez 2.0</h3><p>In July of last year, during the <em>EthCC 4 </em>conference, the Hermez team announced that they were ready to start the development of their <strong><em>zkEVM</em></strong>, Hermez 2.0. Shortly after this is when Polygon reached out about the merger/acquisition. So yeah, pretty big deal.</p><p>It’s a big deal because for Ethereum to scale we need smart contracts to run off chain, and this is what the zkEVM is trying to do. Run smart contracts on a zk-rollup.</p><p>There are a lot of projects working on developing their own zkEVM right now, even within the Polygon ecosystem we have both Polygon Zero &amp; Polygon Hermez working on their own versions. However every project is attacking this in a different way, and each have their own tradeoffs.</p><p><a href="https://docs.google.com/presentation/d/17AmfkaKZd4QVXeyNLLnWHMD3DbOeW8fQAbUdgJjw3eQ/edit#slide=id.ge50625de6e_0_52">Here</a> is a powerpoint slide I pulled from the Hermez team that displays the different approaches as to how to create a zkEVM:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JSQEpjRsV0Hl3FN6qnr1-Q.png" /></figure><p>The main benefit with the Hermez approach is that you get full compatability with Ethereum, in terms of tooling, ecosystem, and security. This also means that ideally, a smart contract running on L1 Ethereum should be able to run on L2 Hermez. The developer shouldn’t care if he/she is writing a smart contract for an L1 chain, or an L2 chain.</p><p>Basically smart contracts will be able to run on zk-rollups without having to change much, if any code. This is part of the compatability I mentioned, and this is the big deal.</p><p>Just think of how easy it was for projects to deploy their smart contracts on Optimism or Arbitrum, which both use a different kind of rollup: optimistic rollups. I mean literally as soon as these two platforms launched, tons of projects and users immediately migrated over. Now imagine this except on a zk-rollup, the superior type of rollup.</p><p>Think about that for a second. If Hermez is successful in their method (and I’m sure they will be), we could see that same type of network effect here.</p><h4>Souped Up Car</h4><p>Look as users we honestly don’t have to know what this means, so feel free to skip this portion of the article.</p><p>According to Hermez founder Antoni Martin, this is their zkEVM concept:</p><p><em>“if you take the best part of each solution, you can build up the best car…taking the best part of each manufacturer.”</em></p><p>If we recall, you may remember that Hermez 1.0 uses SNARK proofs. Well in 2.0 they use both SNARK’s and STARK’s for max efficiency and proof generation times.</p><p>SNARKS &amp; STARKS are the types of zk-proofs used in zk-rollups. Each of these have their own advantages, which is why the Hermez team wanted to get the best of both worlds.</p><p>The way it’s gong to work with Hermez is that when transactions are processed and new blocks are produced off chain, a STARK proof will be generated proving that these transactions were all valid. The issue with STARK proofs is that they are expensive to validate on chain (on Ethereum). This is where the other type of zk proofs come in, SNARK’s.</p><p>A SNARK proof is used to validate the STARK. From here all Ethereum has to do is validate the SNARK proof.</p><p>There’s a lot more to the architecture of the Hermez zkEVM, but again, as users we don’t have to worry about what any of this means. If you’re a giga brain and want to dive further into the architecture of this zkEVM though, you can check out <a href="https://docs.hermez.io/zkEVM/architecture/introduction/">this set of 2.0 docs.</a></p><h4>Hermez zkEVM Features</h4><p>Below is another image I pulled from the Hermez team that displays the different features their zkEVM offers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*urPnYtANIkabYJ0esel_8g.png" /></figure><p>Recall that the 2.0 set of docs is still under completion.</p><p>One thing I’m waiting to find out is how the new consensus model will look. What roles will coordinators play in this new 2.0 version of Hermez?</p><p>Something else to note is that they’re working on a permissionless bridge that will move assets from L2&#39;s to other L2’s. Personally, I can’t wait for this.</p><h4>Wen Launch?</h4><p>Here is the roadmap for the launch of 2.0 on mainnet:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aOLPCP-ghYdjeq-vcHD9SA.png" /></figure><p>As you can see, mainnet launch is coming up ;)</p><h3>Closing Thoughts</h3><p>Okay that was a lot to take in I’m sorry.</p><p>Yes, Hermez 1.0 is not too popular right now, however Polygon co-founder Mihailo did mention that one of Polygon’s best features was that they know how to drive adoption. They have the connections in place to get things rolling. I also did notice that Hermez co-founder Antoni Martin has been holding interviews recently while in Africa. So it looks like they’re working very hard in bringing more adoption from the developing countries that really need this technology.</p><p>Personally, I’m excited to see if the Hermez team will be able to pull off their fully compatible version of a zkEVM. I mean this could be huge, as it would allow developers to take existing smart contracts and run them on top of a zk-rollup without having to change much code.</p><p>Again, new information relating to Hermez 2.0 may arise from the team in the near future, so I’ll be sure to keep an eye out for that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4acfbcff78f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Deep Dive Into Polygon ($MATIC)]]></title>
            <link>https://medium.com/@pedronv/a-deep-dive-into-the-polygon-ecosystem-matic-88ae99b99c48?source=rss-98445327fa9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/88ae99b99c48</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[polygon-network]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[investing]]></category>
            <dc:creator><![CDATA[Pedro]]></dc:creator>
            <pubDate>Sat, 29 Jan 2022 01:09:13 GMT</pubDate>
            <atom:updated>2022-02-01T17:46:11.872Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9YXSyoHk_Q-uwUTvZ_9g-g.png" /></figure><p>I think it’s safe to say the L2 wars have begun.</p><p>I genuinely think 2022 will be the year of Layer 2 ecosystems. Between zkSync, Starkware, Optimism, and Arbitrum, etc, there’s just so many talented, hardworking teams trying to scale Ethereum right now. While all of them bring something unique to the table, there’s one project that stands out the most for me right now, Polygon.</p><p><strong><em>Polygon is an L2 blockchain built on top of Ethereum. Bringing high speed, high throughput, and low gas fees to the Ethereum ecosystem.</em></strong> The reason Polygon sticks out the most for me, is the insane rate of adoption by both users and developers. Although Polygon is technically an L2 chain, they definitely have the numbers to compete with the L1 chains you might be more familiar with.</p><p>Initially this article was super long. However the more and more research I did on Polygon, the more I fell in love with it, and the more bullish I became for the long term outlook of the project. Especially considering they’re still only valued at around $11 billion.</p><p>Because Polygon became one of my biggest positions after the giant sell off we had in the market recently, I decided to focus more heavily on Polygon and its ecosystem for the following weeks. I’ll be writing about all the different solutions (Hermez, Nightfall, Zero, Miden) Polygon brings to the table on a weekly basis, I’ll go over some of the bigger NFT projects on Polygon, as well as over some of the different growth metrics that I find interesting along the way.</p><p>That said, in this article I’ll stick to the basics of what Polygon is, some partnerships they’ve gained, and some growth metrics.</p><h3>Why Scale Ethereum?</h3><p>At this point, if you’ve been around the crypto space at all you’ll know how hard it is for a regular user like you and me to transact on the Ethereum blockchain.</p><p>It’s no secret that Ethereum is becoming more and more unsusable for the average retail investor like you and me. This is mainly because of the fact that Ethereum has seen massive adoption this past year (thank you NFT’s). You see everytime you want to have your transaction included inside a block, you have to place a bid for the validators to include your transaction inside the block (<em>this is the gas fee</em>). The problem is that there is only so much block space, which means there’s only so many transactions you can fit inside a single block. When there are too many people wanting to have their transactions filled at the same time, the Ethereum network gets congested, and thus gas fees go through the roof. If your gas bid is too low, then the validator most likely won’t include your transaction inside a block, which means you have to wait another 14–20 seconds, until the next Ethereum block is mined.</p><p>The reason why gas fees have exploded this past year, is because of the amount of adoption Ethereum has gained, from both retail and institutions. Now you’re competing with millions upon millions of people around the world, trying to have your transaction be the next one included into a block. This is why I’m a firm believer Ethereum is meant for blockchains, while the Ethereum layer 2’s (Polygon, along with all the other L2 rollup solutions) are meant for us humans.</p><p>At the end of the day, every L1 chain will eventually need their own scaling solution, assuming they’re able to continue to grow its user adoption over the years. I mean if you look at another L1 network like Avalanche for example, even their gas fees are increasing as more and more users join the platform, and they’re no where near the amount of users Ethereum has yet. This isn’t a knock on AVAX, I actually like this network also, it just is what it is. Not to mention the giant Solana issues during the big sell off recently.</p><h3>So How Do We Scale?</h3><p>There are two main ways to scale a blockchain, either through the base layer, Layer 1, or by offloading some of the work off chain to a different layer, layer 2 .</p><p>There are several L2 scaling solutions in existence today:</p><ol><li><strong><em>Channels </em></strong>are one type of scaling solutions<strong><em>. </em></strong>There are 2 main types of channels, state channels and payment channels. The drawbacks of channels include no open participation, and the fact that it is application specific, which means channels can’t be used to scale general purpose smart contracts. Bitcoin’s Lightning Network is an example of a channel.</li><li><strong><em>Sidechains</em></strong> are independent chains that run along side the main ethereum chain. Sidechains usually provide their own consensus model and security. Interoperability with Ethereum is made possible by using the same Ethereum Virtual Machine (EVM), which means contracts deployed on the base layer (Ethereum), can be directly deployed on the side chain.</li><li><strong><em>Plasma</em></strong> is another type of scaling solution. Without going into detail, plasma leverages smart contracts and Merkle Trees to enable the creation of an unlimited number of <em>child chains</em>, or copies of the <em>parent chain,</em> Ethereum. This child chain periodically submitts snapshots of its state to its base chain (Ethereum in Polygon’s case), where it reaches consensus and finality. The drawback with plasma is the long withdraw times for users who wish to withdraw their funds from L2, as well as the fact that Plasma also cannot be used to scale general purpose smart contracts. However the beauty with Plasma, is that if for some reason the plasma chain were to go offline, users will still be able to withdraw their funds safely and securely by referencing the most recent snapshot of the Matic chain that was submitted to the base chain (again, Ethereum in Polygon’s case).</li><li><strong><em>Rollups (Optimistic, and zk), </em></strong>which<strong><em> </em></strong>include bundling up, or “rolling up”, and executing a bunch of transactions together at the same time in 1 single transaction. So for example a rollup could take let’s say 1000 transactions all at once and execute them off chain together in one single transaction, instead of executing every single transaction one at a time like it’s done in Ethereum or any other base chain. After executing these transactions off chain, a proof is generated stating that all 1000 transactions that were done off chain have been done correctly. There’s 2 types of rollups, optimistic rollups (Arbitrum, and Optimism for example), and zk rollups. Optimistic rollups assume every transactions is valid unless challenged within a 7 day period. With optimistic rollups, if you think a transaction is invalid you use a fraud proof. Then there’s zk rollups, and these are the holly grail of Ethereum scaling. These use a different kind of proof, <em>zero knowledge proofs</em>. With zk rollups there’s no 7 day challenge period at all. If a transaction is included inside a zk rollup, then it’s already valid by default. I’m keeping this very short so that I don’t confuse you even more, but if you want to dig deeper into this subject, I’ll leave <a href="https://blog.polygon.technology/zk-and-the-future-of-ethereum-scaling/">this article here</a> for you.</li></ol><p>Ethereum will be scaling its base layer (L1) through Eth2.0, which will introduce both proof of stake and sharding to the network. Although this network upgrade will increase transaction throughput, it won’t be enough to handle the 1 billion plus users we envision the network of having one day. For this goal we still need L2 scaling. In fact, Vitalik Buterin himself wrote this piece:<a href="https://ethereum-magicians.org/t/a-rollup-centric-ethereum-roadmap/4698"> “A rollup-centric Ethereum roadmap,”</a> where he mentioned that by the time sharding comes along, most of us will already be living on L2 rollups. So instead of having us transfer our funds back to the base chain, it’ll just be easier to combine both rollups and sharding. This is done by essentially giving each rollup its own dedicated shard to host its data on.</p><p>If none of this made any sense but you’re interested in learning more about Ethereum scaling and sharding, I’d highly recommend <a href="https://newsletter.banklesshq.com/p/ultra-scalable-ethereum">this article</a>, or this <a href="https://www.youtube.com/watch?v=xjxyjgWiqLE">podcast episode</a>. Both done by the Bankless team in a very clear, detailed manner.</p><h3>History of Matic Network</h3><p>Matic Network was founded in 2017 by 3 Indian founders, Jaynti Kanani, Sandeep Nailwal, and Anurag Arjun, in hopes of solving Ethereum scalability issues.</p><p>They were originally inspired from a paper written by Vitalik Buterin, and Joseph Poon, titled: “<a href="https://www.plasma.io/plasma.pdf">Plasma: Scalable Autonomous Smart Contracts”</a>. About a year later, Matic founder Jaynti worked with developers at Decentraland to create <em>“More Viable Plasma,”</em> a more efficient version of Plasma. This version of Plasma became the basis for the Matic network.</p><p>The Matic team originally offered 2 scaling solutions: Plasma chains, and a Proof of Stake chain. This PoS chain is constantly referred to as a side chain, however I do want to note that it’s technically not a side chain, but a commit chain instead. It’s a commit chain for the simple fact that it literally lives on the Ethereum chain, which means it benefits from Ethereum’s security. The most secure blockchain in the world behind Bitcoin.</p><h4>Matic Becomes Polygon</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sPCNrSJ4uZrb8ARsR1QlZg.png" /></figure><p>In early 2021 the Matic team rebranded themselves to Polygon, aspiring to become the swiss army knife of scaling solutions, and turning Ethereum into an “Internet of Blockchains”. Something similar to the Polkadot or Cosmos framework.</p><p>Polygon also introduced a 4th founder to the team after this name change, Mihailo Bjelic. By the way, if you’re one that likes to invest in dedicated, hardworking teams (like myself), check out any one of his interviews to see how passionate this man is, not only about Polygon, but about the whole crypto space in general.</p><h3>What is Polygon</h3><p>Polygon is a L2 network that lives on Ethereum and provides several different scaling solutions for developers to choose from. It’s much more than just a plasma chain now.</p><p>Developers can either use the SDK and take advantage of the pluggable modules to create their own custom blockchain, they could deploy their smart contracts directly on the PoS chain for quick deployment, or use one of the many different zk solutions Polygon provides, once these zk solutions are live.</p><p>To understand Polygon, it may be helpful to understand the following image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*plPHu0s20UiNHTwvEtFRxA.png" /></figure><p>Polygon’s thesis is that Ethereum will become the global settlement layer for a suite of different scaling solutions. Which means us users will only be interacting with L2 solutions in the future, while still maintaining the same security assurances as the Ethereum main chain. Like I said earlier, I’m a firm believer that ETH is for blockchains and L2’s are for users.</p><p>In the image you can see a bunch of L2’s all hovering around Ethereum. You see <em>Aztec</em>, a pioneer in the zk space. We also see <em>Starkware</em> in there, which is another zk rollup solution (might be good to note that <em>zkSync</em> is missing in the image, but they’re a big player in the zk space as well). There’s <em>Optimism</em> and <em>Arbitrum</em>, which are optimistic rollup solutions that you’ve probably heard of already. Then there’s a bunch of Polygon solutions all around.</p><p><strong>So let’s now take a look at Polygon’s different solutions:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JKnXReKFInp2YhEzHraqfw.png" /></figure><p>Above is an image that was showcased at Polygon’s zkDay last month. It shows a spectrum of the different scaling solutions Polygon will provide. There’s Polygon SDK, enabling plasma based solutions, a PoS chain, and 4 different zk solutions all horizontally connected to eachother. Remember zk rollups are the holly grail of scaling. This is one huge reason why I’m super bullish on Polygon long term. Also the beauty with Polygon’s framework is that regardless of where a project deploys inside the Polygon ecosystem, <strong><em>they’ll all have interoperability with one another.</em></strong></p><p>It’s important to note that of all their solutions, only Polygon SDK and Polygon PoS are currently live. Polygon Hermez is expected to go live on mainnet in Q3 of this year, and both Polygon Zero &amp; Polygon Miden are expected to launch their testnet versions of their platforms in Q4 of this year.</p><p><strong><em>There are 2 types of chains the Polygon network supports: stand alone chains, and secured chains</em></strong><em>.</em></p><p>On the far left of the spectrum you see the “stand alone chains,” and on the far right you see “secured chains.” So let’s explain what these terms mean first:</p><p><strong>Stand alone chains</strong> are essentially side chains. They’re fully sovereign and give projects the ultimate amount of independence and flexibility. The drawback with stand alone chains is that they have to derive their own security, which is hard to do because of the amount of validators you need to make sure the chain is secure enough. These types of chains are best for enterprises, and established projects with large communities that they can leverage for validator security.</p><p><strong>Secured chains</strong> use the “security as a service” option, which is either provided by Ethereum directly through proofs, or by a pool of professional validators. Secured chains offer the highest amount of security, but provide less independence.</p><p>All of the Polygon solutions fall somewhere in between this spectrum of stand alone and secured chains.</p><h4>SDK — Now Polygon Edge</h4><p>On the far left we have Polygon SDK, which stands for Software Development Kit, and is essentially a tool that lets you build and deploy your own customizable, sovereign blockchain at ease using existing tools and modules provided by the Polygon SDK. One thing to note is that just recently, Polygon renamed its sdk to “Polygon Edge”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dOkig72snW7b0-mOrOQYzQ.png" /></figure><h4>PoS</h4><p>Next to SDK we have the Polygon Proof of Stake chain. This is the chain we are most familiar with right now, and is the chain I’ll be using later on to show some cool metrics about Polygon growth. This chain is also where most projects on Polygon are deployed right now. What makes this PoS chain different than others is that it sits directly on top of Ethereum, which means you get Ethereum’s security. Polygon’s PoS chain is one of the most popular chains right now, with some of the highest Daily Active Users (DAU’s). A project could very easily just take their existing smart contracts that are deployed on main chain, and deploy them directly on the PoS chain very quickly.</p><h4>Polygon Avail</h4><p>Polygon Avail is their data availability solution. It’s essentially like what Eth2.0 shards will be when they roll out.</p><h4>Polygon Hermez</h4><p>Hermez is an EVM compatible, decentralized zk rollup solution “optimised for secure, low cost, and usable token transfers.” Oh and literally like 2 days ago the Hermez team announced the release of Hermez2.0, so I’m excited to dig into this deeper in the coming weeks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*74lO-NepJwGZWYIeiqJQkA.png" /></figure><h4>Polygon Nightfall</h4><p>Polygon Nightfall is a hybrid optimistic/zk rollup solution focused on privacy for enterprises. This solution is all about private transfers and payments at scale.</p><h4>Polygon Miden</h4><p>Polygon Miden is a generic zk STARK based rollup solution. There are 2 types of proofs you could generate for a zk solution: SNARK’s and STARK’s. Most zk solutions use SNARK based proofs right now, so the fact that Miden is STARK based is a big deal. Some STARK advantages include: more transparent, scalable, and it requires no trusted setup. If none of this made sense, don’t worry I’m going to be going over Miden in the near future in much more depth.</p><h4>Polygon Zero</h4><p>Finally we have Polygon Zero. One of the beauty’s with Polygon Zero is that usually, zk rollups require a huge amount of computational resources to generate the zk proofs. The team behind Polygon Zero built the worlds fastest zk proving technology, and is extrememly efficient to run. This means you could basically run zk proofs on a macbook. This is a game changer, especially for decentralization.</p><p><strong><em>All these zk acquisitions came after Polygon announced their $1 billion pledge towards zk solutions:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NxiNeZ-E1XZEcWfzAyPplQ.png" /></figure><p>Like I said, zk solutions are the holly grail of Ethereum scaling, and the fact that Polygon has 4 different zk solutions is amazing to me.</p><p>As a developer you could choose any one of Polygon’s scaling solutions. Whether you want to build your own custom independent chain using the SDK, whether you want to just directly deploy your smart contracts on the PoS chain, or whether you want to take advantage and build on top of any of the 4 different zk solutions, it’s all up to you.</p><p>There’s so much more I could say about all of these. So throughout the following weeks I’ll be going over the different zk solutions 1 by 1 incase you’re interested in that.</p><h3>Architecture</h3><p>Now let’s take a look under the hood.</p><p>Polygon’s architecture consists of 4 layers:</p><ol><li>Ethereum layer</li><li>Security layer</li><li>Polygon networks layer</li><li>Execution layer</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmU6ZciiNaNT5ca82kDTXQ.png" /></figure><p><strong><em>The 1st layer</em></strong> is the Ethereum layer, and this is where the important Polygon smart contracts are deployed and maintained. This is an optional layer and is not required for a blockchain to be able to deploy on Polygon. As you can see from the image above, these contracts handle things like: <em>finality, staking, disputes, and messaging.</em></p><p><strong><em>The 2nd layer</em></strong> is the security layer, and this layer is also optional. This layer consists of a set of validators that provide the “security as a service” model for a fee.</p><p><strong><em>The 3rd layer</em></strong> is the first required layer. This is the ecosystem of blockchain networks built on Polygon. Each of these networks handles transaction collation, local consensus, and block production for its respective community.</p><p><strong><em>The 4th layer</em></strong> is the execution layer, and this one is also required. This one is pretty straight forward, It’s the execution environment where transactions get executed.</p><p>I didn’t want to go into too much detail here so that I don’t confuse anyone. Besides, it’s not critically important to understand this for our investment purposes.</p><h3>MATIC Tokenomics</h3><p>Polygon has a max total supply of 10 billion tokens, of which only about 7.5 billion are in circulation right now. The remaining 2.5 billion tokens will be unlocked periodically over the next 4 years.</p><p>Polygon held its initial exchange offering (IEO) on Binance using the Binance launch pad in April 2019. They were able to sell 19% of their tokens at a rate of $.00263/MATIC through this launchpad.</p><p>Shortly after this IEO, Polygon held 2 additional funding rounds. The first was a seed round where they sold 2.09% of the total MATIC tokens at a rate of .00079/MATIC. The second was a a token sale dedicated to early supporters, where 1.71% of MATIC tokens were sold at a rate of $.00233/MATIC.</p><p>The total breakdown of the MATIC token supply is as follows:</p><ul><li>private sale (seed round + early supporters): 3.8%</li><li>Binance Launchpad: 19%</li><li>Team: 16%</li><li>Advisors: 4%</li><li>Staking Rewards: 12%</li><li>Foundation: 21.86%</li><li>Ecosystem: 23.33%</li></ul><p>As I mentioned, the remaining 2.5 billion MATIC tokens that aren’t in circulation yet, will be distributed over the next 4 years according to the following vesting schedule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_hUk72v9cG0hupYahpHOZQ.png" /></figure><h4>What Is The MATIC Token Used For</h4><p>The MATIC token holds 2 main functions:<em> </em><strong><em>gas fees, and staking.</em></strong></p><p>Anyone transacting on any one of the many d’apps in the Polygon ecosystem has to pay a gas fee using MATIC tokens.</p><p>Anyone wanting to become a validator or delegator has to stake MATIC tokens.</p><p>It’s also important to note that according to the team, the MATIC token will be the sole token for the whole Polygon ecosystem. This means MATIC will be the native token <strong>for all</strong> of the different solutions Polygon provides. The full details of how this will play out haven’t been released yet.</p><p>These are some pretty great tokenomics if you ask me though.</p><h4>EIP-1559</h4><p>Polygon also recently launched its own version of EIP-1559. For those unfamiliar, this basically means that a portion of the transaction fees we pay to use the network will be burned out of circulation. So the higher the adoption of the network, the more transaction fees get paid, which means the more MATIC tokens get burned. What all this means is that at some point down the line, MATIC will become deflationary. Assuming adoption and usage continues to grow over time.</p><p>If you’re familiar with EIP-1559 already, then you probably know how wildly successful it’s been for Ethereum.</p><p>It’s only been about 2 weeks since Polygon deployed this upgrade, and so far these are the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*j3T2qqOi9UO3WU0Klr9HWA.png" /></figure><p><strong>Over 500K MATIC tokens burned already!</strong></p><h3>Ecosystem</h3><p>Polygon’s ecosystem is alive and thriving. I mean it’s literally one of the biggest chains right now, and yet everyone is still so focused on the bigger L1 names. Which means you’re still very early to Polygon.</p><p>The number of teams building on Polygon’s PoS chain has been doubling every 2 months. They currently have <strong>over 7,000 d’apps</strong> running on the network, from literally the biggest names in the industry. This number by the way is growing at such a rapid pace, it’s insane. It literally grew from 3,000 to 7,000 d’apps in a span of 3 months. <strong><em>Over half of these projects are building exclusively on Polygon too!</em></strong></p><h4>DeFi</h4><p>In terms of defi they have the biggest names you can think of. From Aave, Sushi, Curve, and 1inch. To more recently Uniswap, after 99% of UNI token holders voted to deploy on Polygon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VYZnZokpocQ8mp4Q0FWUGA.png" /></figure><h4>NFT/Gaming</h4><p>Around mid last year, Polygon announced the launch of <strong><em>Polygon Studio</em></strong>, commiting $100 million to gaming and NFT projects:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BzmsxsSX2iuzGC8colXlnA.png" /></figure><p><strong><em>Here are some of the projects already involved in Polygon Studio, you’ll be surprised at some of the names:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*naR5t9s-ZoIMOnabQ34tXg.png" /></figure><p>There’s also the fact that Draftkingz will be building out their NFT marketplace on Polygon (Draftkingz will also become a validator on Polygon, adding to the security of the network). Plus there’s rumor of Coinbase launching their NFT marketplace on Polygon as well (over 70 million users- pretty much set in stone already). Dolce &amp; Gabanna, and the Adidas/Prada collab will both take place on Polygon also. I mean you get the point, a bunch of big brands are already onboarding.</p><p><strong><em>The network effect is real</em></strong>.</p><p>Something I thought was pretty cool was to hear co-founder Sandeep on the Bankless podcast talk about how of all the gaming projects in existence, he believes at least 6/10 are on Polygon.</p><p>If you’re interested in checking out the other projects on Polygon, you can check out <a href="https://awesomepolygon.com/dapps/">this link.</a></p><p>Oh and I’ll just leave this here, no big deal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*riWYF9cb19ki6m7sH4obxA.png" /></figure><h3>Some More Numbers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t4XkgxDaxtyHpyF5abkizw.png" /></figure><p>Again, over half of these teams are building exclusively on Polygon. This just goes to show how easy they’ve made it for teams to deploy on the Polygon network. Remember, we still have a suite of zk solutions waiting to roll out soon.</p><p><strong>Over 130 million Polygon addresses, and growing:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qsheJfcUwIB87eOPauKOuA.png" /></figure><p><strong>Over 3 million daily transactions:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OLUxDYlABQqANNfCbQQ_ow.png" /></figure><p><strong>Over 2 million Polygon NFT’s sold:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*6VbXnpkIObhZH7qugu9SLQ.png" /></figure><p><strong>And the users are only growing:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xvqqMXpHLmL3LpEsLcz5UA.png" /></figure><h3>My Thoughts</h3><p>As you can see, Polygon is growing at an extremely fast pace. The more and more research I did on this project, the more bullish I became long term. Not financial advice obviously.</p><p>That being said, there are some risks involved in investing in Polygon, just like there are in any other project. Here are a few risks in my opinion, excluding the obvious regulation risk for crypto in general of course:</p><ul><li>There’s the vesting schedule: There’s still about 4 more years of token unlocks, in which 2.5 billion additional tokens will be added into circulation. But then again, Polygon did just burn over 500K tokens in 2 weeks right?</li><li>The other issue I want to bring up relates to validator rewards. At some point Polygon will run out of tokens to reward validators with. Their bet is that transaction fees alone will be enough to incentivize validators in the future.</li></ul><p>Overall I think Polygon has a bright future, and I do think it will continue to be a big player in the space to come. I think they’re extremely undervalued given the amount of growth they’ve seen, plus the fact that they play such an important role in the Ethereum ecosystem is huge.</p><p>These guys have been through a bear market before, which believe it or not is a big deal. If we are indeed in a bear market right now, you know how important it is for a team to be able to continue building throughout this type of environment.</p><p>There’s honestly so much more I wanted to talk about, but I know I’ve made this too long already, so I’ll stop here for now. However like I said, if you guys are interested in learning more about the Polygon ecosystem, I’ll be diving deeper into the project for the following weeks to come.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88ae99b99c48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Illuvium (ILV) Crypto Review: The First AAA Blockchain Based Game]]></title>
            <link>https://medium.com/@pedronv/illuvium-ilv-crypto-review-the-first-aaa-blockchain-based-game-14e73ead290c?source=rss-98445327fa9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/14e73ead290c</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[investing]]></category>
            <dc:creator><![CDATA[Pedro]]></dc:creator>
            <pubDate>Tue, 14 Dec 2021 14:33:06 GMT</pubDate>
            <atom:updated>2022-05-06T21:46:11.682Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AU0xe8ffj3cj3a8uEiADRg.png" /></figure><p>Alright, now this is a game I’m actually hyped for.</p><p>Illuvium will be the first decentralized AAA blockchain based game to exist when it comes out next year. It’s kind of like Axie Infinity in terms of gameplay, but for some reason just looks so much better to me. Don’t get me wrong, Axie Infinity is still king of play to earn games, and I know they’ve created amazing financial opportunities for people across the world, but to be 100% honest, it’s not a game I would personally enjoy playing. Whereas Illuvium is something that looks like I can really get into.</p><p>The whole vibe seems just like Pokemon, which just brings some awesome nostalgia.</p><p>Illuvium is filled with AAA talent from top to bottom, and the hype for this game has been real for some time now (especially since they pushed back their open beta release date from earlier this year to early 2022), so I figured it would be a nice project to do a deep dive on.</p><p>In this article I’ll be going over what Illuvium is, how the game works, and what the utility behind the ILV token is, so you can decide for yourself if you want to invest in this young project.</p><h3>What Is It</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GxTqiGq_yPwyyWsDHTynVQ.png" /></figure><p>You just survived a space ship crash on a ruined planet that’s covered in a vast crystal ocean. You crawl out of the ship and realize that the planet is filled with majestic beasts with god like powers. After spending time on the planet, your race species has begun to master the same energy the illuvials harness and are now able to capture and control them into slivers of crystal called <em>shards</em>. The point is to travel the vast land and hunt and capture beasts called <em>Illuvial&#39;s</em>, which are represented by an NFT after being captured.</p><p>Illivium claims to be the very first AAA blockchain based game when it comes out next year, and when you look at the hires they’re making to build out the project, it’s easy to see why. I mean literally everyone working on the project had worked on a big name studio in the past, including the Batman Arkham video game, Sony Playstation, and Star Wars. Not only that, but the 2 brother founders themselves have another brother who started his own very successful blockchain company, Synthetix.</p><p>Illuvium aims to be fully decentralized and governed using a DAO system.</p><h3>How The Game Works</h3><p>I know I said this for Axie Infinity also, but even more so for this game, Illuvium really reminds me of Pokemon.</p><p>You’re the survivor of a space ship crash on a shattered planet filled with majestic creatures. You travel this vast world using your customizable in game Avatar who posseses technology advanced enough to stand firm against these strong creatures. Your in game character wields both: a futuristic weapon equipped with gemstones that store the essence of Illuvial&#39;s, and armor for defense against the beasts you fight.</p><p>At your side is your Polymorphic Subordinate Drone who helps your character with storage, in game battling, and mining minerals from the planets surface to forge into useful items, such as weapons and suits of armor. Some materials are much more rare than others, meaning you’ll be able to trade them in the IlluviDEX for some handsome returns.</p><p>As you and your sidekick drone adventure through the world, you’ll encounter majestic beasts called Illuvials who wield god like powers. Just think of these guys as the actual Pokemon creatures, like a Charizard, or Squirttle. Each Illuvial has an affinity to one of the 5 elements on the alien planet: Water, Fire, Earth, Air, &amp; Nature. Some affinities have advantages over others, for example inferno beats nature, and water beats fire. Every Illuvial is also grouped into one of the 5 classes: Fighter, Guardian, Rogue, Psion, &amp; Empath. As this is an RPG game, the class choices you make for your Iluvials, helps determine the outcome of your battles.</p><p>When you capture multiple Illuvials of the same type, you can fuse them together to make an even more powerful, rare illuvial. This burns the existing Illuvial NFT’s and create the new “fused Illuvial” NFT. Since Illuvium partnered with NFT layer 2 solution Immutable X, this process all happens in an easy, gasless fashion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bgWrBCemsC6MfsWRB0S57g.png" /></figure><p>There are many regions to exlplore in this world, however most of them will be closed off to start. Overtime players will unlock Obelisks, which help them travel to new parts of the world, filled with new Illuvial&#39;s to battle and capture for your collection.</p><p>To start there will only be 100 Illuvials to capture in the first open region of the world. To capture these Illuvial&#39;s you’ll need <em>“shards”</em>, which according to the whitepaper, are probably the most important items in the game. I mean without these you can’t capture any Illuvial’s to collect, so I can see why. Think of the shards as “pokeballs”, from Pokemon obviously. These shards can be “mined” from deposits, or bought from the IlluviDEX. Shards will come in various a variety of tiers based on power. The stronger the Illuvial, the more powerful your shard will have to be to capture it. So the most powerful shards are therefore some of the rarest, meaning they’re worth the most money if you choose to sell them. Oh and as more players capture Illuvials, they become harder to find, which means that at some point down the line when the game is in its 3rd or 4th set of Illuvials, these first 100 should be considered the most rare set of Illuvials, meaning they should be worth the most amount of money over time.</p><p>One of the coolest things I like about this game is the concept of “The Illuviary”. This is an index filled with every Illuvial found across Illuvium, but are all locked. To unlock these entries, a player has to find and capture one for themselves. If you’re the first perosn to find and capture a certain Illuvial, your name will forever appear next to that discovery in the Iluviary database. I mean is this not an amazing incentive for players to play the game for countless hours or what?</p><h4>Adventure vs Battle Arenas</h4><p>This is an open world RPG game, so a big draw for the game is just gong to be exploring the vast world and collecting as many different Illuvials as you can. This is considered the <em>“Adventure Mode”</em>.</p><p>Another aspect of the game is battling other nline players of similar skill set to prove who the “superior hunter” is. And one of the dopest things I found about this game, was the <em>Leviathan Arena</em>. This is where 2 online players can face off against one another, with other players being able to spectate and wager on the outcomes. I mean how cool is this. Plus think of the e-sports opportunity with this! If you got a game that’s popular for e-sport gaming, chances are that game will stick around for a long time imo.</p><p>It’s worth noting that the game isn’t even out yet, so these 2 game types above are just the beginning concepts of the game. In the whitepaper it says, “From the very beginning we have designed the protocol to be able to host multiple game types”, so maybe some potential for additional mini games and other collaborations in the future. I mean the paper also states that they hope to “bring the Illuvium world to life”.</p><h4>Game Trailer</h4><p>Just take a look at the amazing visuals and art in the games <a href="https://www.youtube.com/watch?v=mzT88eN4gts&amp;t=1s">cinematic trailer</a>:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmzT88eN4gts%3Fstart%3D1%26feature%3Doembed%26start%3D1&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmzT88eN4gts&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmzT88eN4gts%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc0fcabda7db987644199d6a534a44a7/href">https://medium.com/media/cc0fcabda7db987644199d6a534a44a7/href</a></iframe><h3>IlluviDEX</h3><p>The Illuvidex is the Illuviam decentralized exchange that will be used to buy and sell all your Illuvials and in game NFT assets. Including weapons, armor, forged minerals, shards, etc. The IlluviDEX is not out yet, and I couldn’t find any information about it online other than what I mentioned here, so it will be intersting to see how it turns out.</p><h3>Wen Land</h3><p>On their website, they state that “Land” is “coming soon”. Personally, I’ll be super stoked when this happened. Considering the team behind this project is AAA, I can’t wait to see how they develop their land concept, in terms of both functionality and art.</p><p>In my opinion, being able to own land inside a open world game is huge. It just creates so much more economic and social opportunity. Plus allowing players to build mini games and experiences of sorts on top of their land within the world will help continue the growth of the project over the long run.</p><p>Not to mention the financial opportunity for people that manage to pickup land early on. I mean we’ve seen how lucrative virtual land prices could get on the second market.</p><h3>ILV Token</h3><p>ILV is an erc-20 token with various use cases in the game and ecosystem.</p><p>The 3 primary use cases for the token include:</p><ol><li><strong><em>Play to Earn rewards </em></strong><em>for success and achievements within the game are paid out in ILV tokens</em></li><li><strong><em>Staking ILV</em></strong><em> tokens inside the Illuvium Vault for passive rewards, using the </em><a href="https://staking.illuvium.io/"><em>staking.illuvium.io </em></a><em>site. 100% of in game revenues goes back to stakers in the form of ILV tokens. ILV rewards are locked for 12 months, but sILV can be used in game immediately in game. If you’re interested in staking, </em><a href="https://medium.com/illuvium/28-everything-you-need-to-know-about-staking-ilv-6669594b2fac"><em>here’s a good article</em></a><em> that goes over how to do so.</em></li><li><strong><em>To participate in governance</em></strong><em> </em><strong><em>via the DAO</em></strong><em>, which I’ll go over down below.</em></li></ol><p>There are a total of 10 million ILV tokens, of which 3 million will be distributed as staking rewards over a three year period. Here’s a breakdown of the token distribution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qfYl5o8dgDX-zlGP6lnRcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gN8p6-7wCq_3JlcqKgC8TA.png" /></figure><p>It might be good to note that during the pre-seed sale, ILV was sold for $1 each, and during the seed sale, ILV was sold for $3 each.</p><p>I think that overall, the price of the ILV token comes down to speculation on the game’s success, plus its utility in staking. The more stakers there are, the less circulating supply of the token there is, which is good for the price of the underlying token.</p><p>One of the things I don’t love about the current tokenomics, is that in game purchases are made in ETH, not ILV. Yes, I get that the point of this game is to “fight for eth”, but if I were a token holder I think I would love it a lot more if they would add this extra utility for the ILV token. Like I said, I get that they want players to focus on the fight for ETH, but who knows, maybe at some point in the future governance can vote to add something like this.</p><h3>DAO</h3><p>ILV token holders wll govern the protocol via the <em>Illuvinati Council </em>(I mean, what a name). ILV holders will nominate and vote for the 5 individuals they think should represent a seat in the Council and to take on the role of governing the platform. Members of the council will serve for a whole “council epoch”, which lasts for 3 months (unless voted out by token holders), and debate and vote on ICCP’s and IIP’s. Council members will be paid at the end of the council epoch by the IlluviumDAO.</p><h4>ICCP’s</h4><p>Illuvium Configuration Change Proposals (ICCP’s) are proposals to modify one of the system configuration variables, including:</p><ul><li>Configurable Council Values</li><li>Marketplace Fees</li><li>Capture Mechanics</li><li>Balance Changes</li></ul><h4>IIP’s</h4><p>Illuvium Improvement Proposals (IIP’s) are proposals for changes in the system, including:</p><ul><li>New Contracts</li><li>New Systems</li><li>Expansions</li><li>Character Sets</li></ul><h3>Roadmap</h3><p>Here’s a look at the roadmap they have listed on their whitepaper:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_OuMlGnWTDtCe1omAT1N6g.png" /></figure><p>I should note that the Auto Battler Trailer and Yield Farm Contracts are completed now as well.</p><p>The public beta launch was supposed to happen earlier this year, however the release date got pushed back to 2022 to work on some additional improvements. So we have to wait until then to actually experience the world of Illuvium.</p><h3>Marketing</h3><p>According to their whitepaper, their marketing approach covers 2 major audience bases:</p><ol><li><em>DeFi</em>: Illuvium wants to partner with 10 of the biggest defi projects to leverage their crypto enthusiast communities and grow their own user base ultimately. They’ll essentially be offering their communities exclusive promotional NFT’s that can’t be used in game, but they’ll be extremely rare, making them great for hardcore collectors to have.</li><li><em>Mainstream</em>: They’ll be partnering with major Youtube influencers with large followings. Similar to the DeFi marketing tactics, they’ll use targetted content and giveaways to capture mainstream audiences that come from these influencer partnerships.</li></ol><h3>Team &amp; Founders</h3><p><strong>Kieran Warwick, Co-Founder: </strong>A serial entrepreneur who worked in ecommerce with his brother Kain Warwick, who was the founder of Synthetix. Kieran joined blockchain based company Blueshyft and started the worlds first OTC cryptocurrency exchange. So yeah, pretty successful dude.</p><p><strong>Aaron Warwick, Co-Founder &amp; Game Designer: </strong>Studied computer engineering and Physics in Australia. After listening to him in an interview, it’s easy to tell that he genuinely loves building games and stories, and you can just tell that a lot of what the game turned out to be, is thanks to the creative, visionary mind of Aaron himself.</p><p>In total, there’s a team of over 75 people involved in the development of the first AAA rated blockchain based game.</p><h3>Conclusion</h3><p>This game has a lot going for it. Everything about it just seems amazing. From the art and visuals, to the actual gameplay, story, and NFT’s.</p><p>Considering this game isn’t even out yet, it’s hard to tell what the future holds for this project, but in my opinion they’ll be one of the early winners in the world of AAA blockchain games. They have a AAA team full of experienced members so it’s hard to doubt their future success.</p><p>That being said, the ILV token is currently trading at a price of around $1145, which gives it a market cap of $730 million. I don’t own any ILV myself, but I’m definitely going to keep my eyes out for that public land sale to hopefully scoop some up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14e73ead290c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Metaverse Crypto Review: The Sandbox (SAND)]]></title>
            <link>https://medium.com/@pedronv/i-think-its-safe-to-say-that-the-metaverse-hype-is-here-and-here-to-stay-for-a-while-3d46de0f4b25?source=rss-98445327fa9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d46de0f4b25</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[metaverse]]></category>
            <dc:creator><![CDATA[Pedro]]></dc:creator>
            <pubDate>Wed, 24 Nov 2021 02:44:14 GMT</pubDate>
            <atom:updated>2022-05-06T21:43:52.934Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u__y-xH4AzfR6591r2HEBg.png" /></figure><p>I think it’s safe to say that the metaverse hype is here, and here to stay for a while. I mean we got Facebook (Meta) that’s essentially going to do a shit ton of promotion for the metaverse industry as a whole for the coming years.</p><p>It seems like you could have literally chosen any metaverse token out of a hat and made a ton of money these past couple of weeks. So props to you if you’re one of those people that have reaped those gain rewards lately.</p><p>Anyway, although Facebook will obviously have a big market share, I truely believe decentralized projects like The Sandbox, and Decentraland will win in the long run. Ultimately it’s up to us to decide who wins, we have the luxury to choose where to interact in the digital world, and I’m pretty sure people will want to play and live on a decentralized platform where we own 100% of our assets in the world. A world we actually own and govern.</p><p>Today I’ll be going over The Sandbox project. They’re obviously one of the top dogs in the space, and just announced recently that they’ll be launching their alpha version this month, November 29, so I figured it would be the perfect project to start with.</p><h3>TLDR</h3><ul><li>The Sandbox is a virtual metaverse where users can play, build, own, and monetize their own experiences</li><li>3 Tokens: <strong><em>LANDS,</em></strong> which can be used to create unique gaming experiences on top of, and even charge players money to interact in. <strong><em>ASSETS</em></strong>, which are used to decorate your piece of LAND. And <strong><em>SAND</em></strong>, which is the erc-20 token for the platform and serves as the basis for all transactions within the ecosystem.</li><li>3 products make up the ecosystem: <em>VoxEdit, </em>which is used to create assets, the<em> Sandbox Marketplace,</em> which is used to sell those assets, and the <em>Game Maker,</em> to actually engage with those assets in the Sandbox world<em>.</em></li><li>Benefits of the Sandbox include: <em>true digital ownership</em> through the use of NFT’s, <em>security</em> and <em>immutability, trading</em>, and <em>interoperability</em></li><li>A whole new ecosystem is being opened up. Players earn SAND tokens by being skillful, lucky, entertaining, etc.<em> </em>Creators earn SAND by creating the<em> </em>assets used in the game, or by building revenue streams within games they build on top of the piece of land they own, etc.</li><li>The SAND token has several use cases. It’s the actual <em>currency</em> for the whole platform, it serves as the <em>governance</em> token, and could even be <em>staked </em>(along with your pieces of LAND) for some extra yield.</li><li>The Sandbox already has some pretty dope partnerships, including <em>Snoop Dog, The Walking Dead, and Hell’s Kitchen.</em></li><li><em>Alpha launch</em> for the project coming soon, from November 29th-December 20th for 5,000 lucky Alpha Pass holders.</li></ul><h3>What Is The Sandbox</h3><p>The Sandbox is a virtual world in the Ethereum blockchain where players can build, own, and monetize their gaming experiences. Their vision is to create an immersive metaverse without a central authority, aiming to disrupt other mainstream projects like Minecraft and Roblox by giving creators and users true ownership of their assets through NFT’s.</p><p>The Sandbox metaverse consists of a map of 166,464 pieces of LAND. Each one of these pieces of LAND comes with a set of prebuilt terrains, but can be modified by the users using ASSETS purchased in the marketplace. You make your land look however you want it to look using your assets basically.</p><p>The Sandbox consists of 3 tokens:</p><ol><li>LANDS- Land NFT’s in the form of erc-721 tokens. It’s exactly what it is, a piece of land you own in the metaverse to decorate however you please.</li><li>ASSETS- These are NFT’s under the erc-1155 token standard. These are the NFT’s you purchase to decorate your piece of LAND.</li><li>SAND- This is the erc-20 token that serves as the platforms utility token. It’s as the currency for the ecosystem when purchaisng goods or services, along with some additional rights.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ft_5LIGe0SHghuoQuMcFYA.png" /></figure><h3>Sandbox Ecosystem</h3><p>The Sandbox ecosystem consists of 3 integrated products:</p><ol><li><strong><em>The Voxel Editor</em></strong>- <em>“VoxEdit”</em> is a free 3D voxel modeling package to create and animate 3D objects. This is the place where creators create all the assets that are used in the Sandbox. So all the couches, buildings, every asset in the game was made using the VoxEdit platform.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9QEOzcIMJNE2TBH-x1EqRg.png" /></figure><p><strong><em>2. Marketplace-</em></strong> The Sandbox has its own web based marketplace where creators can list the assets they created on VoxEdit, and where players like you and me could buy assets to decorate our land in the metaverse. Assets listed here are either erc-721 or erc-1155 tokens, as all the assets are NFT’s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b3-KTNAddzrJl9rg2tOv_Q.png" /></figure><p><strong><em>3. Game Maker-</em></strong> So all the ASSETS we own, whether we made them ourselves in VoxEdit, or purchased them on the marketplace, all these assets can be used in the Game Maker, which is the world itself. We could place and use our ASSETS within our piece of LAND that we own. So you could either decorate your house with a bunch of stuff you purchased on the marketplace. Or you could even use your assets to create your own game within the Sandbox itself and try to earn some extra money that way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZNfbtqBXg5rKvhwUxcqs6w.png" /></figure><h3>Benefits of The Sandbox</h3><p>The beauty of decentralized projects like the Sandbox is the benefits that it brings to all users and creators of the platform.</p><p>Through NFT’s, Sandbox users get to benefit from:</p><ul><li><strong><em>True digital ownership</em></strong> of every asset the own. In the case of Fortnite (or Apex Legends which is what I prefer as a FPS to be honest), they own the skins we purchase in the game. If they decide to shut down tomorrow because of lack of popularity or something, then we lose all the skins we purchased. There’s people that literally spend tens of thousand of dollars on skins in these games, and they’ll never actually own those skins. In the Sandbox, I own every asset that I purchase. If I decide I don’t want an asset anymore, then I could sell it on the open market, and potentially make money on it. Point is I own 100% of that asset and could take it with me anywhere.</li><li><strong><em>Security and Immutability.</em></strong> I mean what’s more secure and immutable than something that lives on a public, distributed ledger, on top of one of the most secure blockchains in the world.</li><li><strong><em>Trading.</em></strong> I kind of touched on this already, but basically true ownership of assets means you’ll be able to buy and sell freely. Also, you wont have to worry about being ripped off by the platform like we’re used to on centralized platforms that take a ton on trading fees.</li><li><strong><em>Interoperability.</em></strong> You’ll be able to use your assets within different worlds, pretty cool. I could slay a dragon with my sword in one world, and then use that sword as part of a Halloween costume for some sort of party in a different world for example.</li></ul><p><strong><em>Players</em></strong> can actually earn money in the form of SAND tokens within the Sandbox. Maybe by slaying a dragon in a game, or finishing a quest, or by opening a chest. Or maybe in some sort of skill based challenge, where for example 100 players pay an entry fee to play in some sort of competition and the winner ultimately goes home with the pooled funds. There could even be some sort of TIP system, where people can earn SAND tokens by streaming certain games and growing the popularity or awareness of that game itself. There’s so many ways players can earn money in the game, so it will be interesting to see how creative the game creators get with how they reward their players.</p><p><strong><em>Creators</em></strong> benefit much more from using the Sandbox than they would creating on some centralized platfrom like Roblox. For one, in the Sandbox you get 100% ownership rights of your assets you create. Creators can even come up with cool ways to earn additional revenue within the game they created, through in game purchases for example. Maybe they can host a giant tournament where they take a cut of the fees as a reward for setting the tournament up and getting everyone together. The Sandbox team even announced that they will be having art challenges to reward certain creators. Creators can also earn SAND by doing side gigs for other users. For example, if I want someone to create some type of custom game of thrones type royalty chair, then I could offer a creator 100 SAND tokens or whatever to make it for me.</p><h3>Why Invest In Sandbox LAND</h3><p>As I mentioned earlier, there are 166,464 pieces of LAND that make up the Sandbox metaverse. Of these, 123,840 (74%) of the land pieces were reserved for public sale, 25,920 (16%) were held in reserve to distribute to different partners, gamers and creators as rewards, and 16,704 (10%) will be held by the Sandbox team to hold special events.</p><p>Each plot of land is 96x96 meters in size. And if you’re thinking: “How much can I actually fit in 1 piece of LAND?”</p><h3>The Sandbox on Twitter: &quot;Showing a sneak peak of The Sandbox Game Builder latest developments through an example made by @thibaultsimar, one of the talented voxel artists involved in our Creators Fund.#gamedev #Voxels #voxelart #blockchain #ScreenshotSaturday #GameMaker #TheSandbox pic.twitter.com/KsyQvAYoo6 / Twitter&quot;</h3><p>Showing a sneak peak of The Sandbox Game Builder latest developments through an example made by @thibaultsimar, one of the talented voxel artists involved in our Creators Fund.#gamedev #Voxels #voxelart #blockchain #ScreenshotSaturday #GameMaker #TheSandbox pic.twitter.com/KsyQvAYoo6</p><p>Anyway, there’s plenty of ways to make some money by owning a piece of land if you’re creative enough.</p><ul><li>For one, you could rent out your land to someone else that plans to use it for whatever reason. That’s passive income right there baby.</li><li>Another thing you can do is build a game on top of your piece of land and charge players a certain amount of SAND tokens to play the game. For example, I can build my own version of Mario Kart within my parcel of land and charge players a small amount of SAND to play. I can build a baseball batting cage in a different part of my land and gain more revenue through that game. Or I can use my whole parcel to create my own version of the olympics, where I charge players SAND to enter, and I take a portion of the funds as a reward for hosting. I mean you get it, but the point is there’s so many variations of games you can build within your land to earn some extra revenue.</li><li>Not only games, but you can also set up a little store within your land. For example everyone needs a digital couch for their digital homes right? Well I could set up shop and be “the couch guy” that makes custom, unique couches for everyone in the metaverse. I could make the assets using the VoxEdit platform and use the shop to showcase them all. Or if I actually own a furniture store in the real physical world, I could use a shop in the sandbox metaverse to showcase my real products to a whole segment of people that need a real couch to sit on while they play the Sandbox. I mean it can be a damn digital coffee shop, the point is your options are endless right now on experiences to build out in the metaverse.</li><li>Not only all that, but you’ll also be able to use your lands as a staking multiplier. This means that staking rewards you receive will be multiplied depending on the amount of lands you own in your staking wallet.</li></ul><p>I hope you can see that there’s a lot you can do with your piece of land and so many ways you can come up with revenue streams within it. However that being said, the cheapest piece of land listed on opensea right now is 2600 SAND, which right now is about $14,500. So yeah, it’s pretty damn expensive. Obviously I don’t know if prices will fall at some point during an NFT winter in the short term, but personally I do believe these pieces of land will be worth more in 10 years then what they’re worth now.</p><p>If you do manage to pick up a couple pieces of land, then you’ll be able to combine several of them together to form an <em>estate</em>. Estates are just several pieces (2 minimum) of lands glued together pretty much. You can find even more revenue streams within an estate. Maybe build a giant theme park or something.</p><p>Then there are Districts, which are estates owned by more than one person. You could gather a certain amount of land owners together to form a district and create your guys’ own vision of what the ideal town would look like. Like if there’s 10 of you that all are giant super Mario fans, you could create your own little town that looks exactly like the Super Mario world.</p><h3>Why Own Sandbox Assets</h3><p>The asset NFT’s you purchase in the marketplace are what you use to build out your land. Assets in the Sandbox are scarce. So if there’s 100 people that are deeply into basketball, but only 10 basketball hoops available to purchase, then you could imagine prices could get quite high, assuming demand stays strong for basketball hoops.</p><p>If I just slayed the ultimate dragon of a popular sandbox game and received a 1/1 sword as a reward. I could sell that 1/1 sword in the market to other fans of the game that aren’t as good as me and win some nice gains.</p><h3>What Drives Demand for the SAND Token</h3><p>As I mentioned earlier, SAND is an erc-20 token that serves as the platforms utility token, and is the basis for transactions within the game. You essentially need SAND to access the Sandbox platform since you need it to play, buy, and customize you land in the metaverse. The SAND token essentially serves 3 functions:</p><h4>Currency</h4><p>SAND is the currency for the Sandbox world. If you’re buying anything from the Sandbox marketplace, you’re paying in SAND.</p><p>Likewise, if you’re selling an asset in the sandbox marketplace, you’re receiving SAND. Or if you’ve just been hired from within the Sandbox marketplace to build a game for someone else, that person is going to compensate you in SAND tokens.</p><p>If there’s a big carnival in the Sandbox, you’ll have to pay in SAND to play the games within that Sandbox carnival.</p><p>The point is no matter what the transaction is, if it’s within the Sandbox ecosystem, it’s being paid in SAND. So that means that the more popular the game gets over time, the more assets will be purchased by players, and if more assets are purchased, the higher the demand for SAND will get.</p><h4>Governance</h4><p>SAND will also serve as the governance token for the Sandbox in the form of a DAO system. SAND token holders get to vote on things like where the foundation grant money gets allocated, the priority in the platforms roadmap, and just the overall future development of the project and deciding on the direction it heads. If you don’t feel like voting yourself, you can delegate your voting power to another player of your choice.</p><p>However it is important to note that the Sandbox wont transition to its DAO governance form until 2023 acccording to its roadmap.</p><h4>Staking</h4><p>SAND token holders can also benefit from <em>staking rewards</em> and earn passive income that way. Plus your rewards multiply depending on the number of lands you own in the wallet you’re staking from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nkgGk-LyHPbRKO7nzPdJuA.png" /><figcaption>Taken from the Sandbox whitepaper</figcaption></figure><h3>Fee Capture Model</h3><p>One thing to note is that there is a fee capture model which takes 5% of all SAND transaction volume on the platform. 50% of the generated fees will go towards the staking pool to pay out those that stake their SAND tokens, and 50% will go towards the Foundation, which is meant to support the growth of the ecosystem.</p><h3>Token Distribution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*obHnILu2XyzRxGlHMsLrFQ.png" /><figcaption>Taken from Sandbox whitepaper</figcaption></figure><h3>Founders</h3><p>The Sandbox game has actually been in existence since 2012 as a desktop/mobile game with over 40M downloads.</p><p>The game as originally developed by Pixowl, a software company based out of San Francisco. Pixowl was then purchased in 2018 by Animoca Brands, a company based out of Hong Kong that they felt were the perfect company to help them develop a blockchain based version of the Sandbox game.</p><p>The founders of the Sandbox original game are <strong><em>Arthur Madrid</em></strong>, who is now the company’s CEO, and <strong><em>Sebastien Borget</em></strong>, who is the COO.</p><p>Oh and just this month, the Sandbox team was able to score a $93 million Series B funding led by Softbanks Vision Fund 2. This money will be used to expand the reach of the platform.</p><h3>Partnerships</h3><p>Just take a look at some of the partnerships they have listed on the website:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eT5zeRm7zoeYDPkPe7j_6A.png" /></figure><p>Like just imagine getting lit at a sweet ass Snoop Dog concert in the Sandbox metaverse. Digitally lit of course ;)</p><p>Or imagine going to Hell’s Kitchen and witnessing a Gordon Ramsey avatar cuss out his cooks and chefs for overcooking my steak.</p><p>Or imagine hanging out with the fucking smurfs. I mean who knows what they do for fun down there.</p><p>Or imagine being a huge Walking Dead fan and being able to purchase a piece of LAND next to their area and watch zombies roam around, just like you’ve always dreamed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-EfBkSgDxnpekpZ1mfgAdg.png" /></figure><p>Oh and they even bought a Bored Ape recently for 740 ETH. Yeah, 740. Personally, as a Mutant Ape holder (yeah I was way too late for a Bored Ape), I’m super stoked about this!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fbiPLJNkq9cT-VCIFvDWYA.png" /><figcaption>Bored Ape #3749 purchased by the Sandbox for 740 ETH</figcaption></figure><h3>Alpha Launch</h3><p>Incase you haven’t noticed, the SAND token has made massive moves these past couple of days. This is because of their announcement that they will be opening up a part of the Sandbox metaverse for the first time to 5,000 lucky players that will have full access to 18 experiences created by the Sandbox team. Players will even be able to earn up to 1000 SAND and 3 NFT’s in rewards.</p><p>This event will start on November 29th and will go through December 20th. To become one of the 5000 lucky players you’ll need to get an Alpha pass, which is just an NFT that serves as your ticket to get in and play. 1,000 alpha passes will be raffled to LAND owners who register and take part in this. 2,250 will be given out through daily contests over a 3 week period in the Alpha Hub. Additional passes could be purchased on Opensea.</p><p>If you don’t have a pass, you could still interact 3 experiences as well as the <em>Alpha Hub</em>, which is a multiplayer gaming mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8zUPwt84-RAf09rO0htLCQ.png" /><figcaption>You can learn more about this <a href="https://medium.com/sandbox-game/introducing-the-sandbox-alpha-2052db44a9f9">here</a></figcaption></figure><h3>Conclusion</h3><p>All in all, I think the Sandbox is definitely going to be one of the big players in the space for years to come.</p><p>From an investment perspective I think the metaverse industry as a whole will bring handsome profits in the future for patient investors. There are a lot of metaverse plays out now, but I do believe the Sandbox, along with a Decentraland, are well positioned to become leaders in the space, assuming they can capitalize on their recent community growth.</p><p>One thing to note is that the Sandbox was a bit late with their Alpha launch. The reason for this delay could be attributed to the fact that they launched this year on the leading layer 2 scaling solution for Ethereum, Polygon and its proof of stake chain.</p><p>Another thing to note is that although the project itself is decentralized, in the fact that the project will be owned and governed by the SAND token holders themselves, the Sandbox project is hosted under 1 single server under, AWS. As opposed to a project like Decentraland for example, that runs on multiple servers all around the world.</p><p>Oh, and one last thing is that there could (key word, could) be a sell off sometime in December due to a vesting period ending, allowing early investors to sell some of their tokens in the open market. With SAND so high in price, it is something to keep in mind.</p><p>All that being said, the SAND token does have a ton of utility. However the price ran up way to high for me to even think about investing in the project right now. If their is a huge pull back sometime down the line, then it’s definitely a coin I want to pick up.</p><p>Right now SAND is up over 600% for the month, trading at over $5 with a market cap of about $4.8B.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d46de0f4b25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Crypto Review: What Is Uniswap]]></title>
            <link>https://medium.com/@pedronv/crypto-review-what-is-uniswap-b7012bc32c78?source=rss-98445327fa9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7012bc32c78</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Pedro]]></dc:creator>
            <pubDate>Thu, 18 Nov 2021 19:49:05 GMT</pubDate>
            <atom:updated>2021-11-18T19:49:05.026Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fo2YS0gvzVpmFVKi2en-sQ.png" /></figure><p>DeFi has brought amazing innovations to the financial world. I’ve written about some of the biggest lending and borrowing projects that are shaping the ecosystem into what it is today. From Aave and Compound, to MakerDAO.</p><p>However, there is one project that revolutionized the way we trade crypto currencies. That project is Uniswap, the decentralized exchange that runs on Ethereum.</p><h3>What is Uniswap</h3><p>Uniswap is a decentralized protocol for automated token exchange, an AMM (automated market maker). Chances are if you’ve bought any small cap crypto currencies, you probably used Uniswap.</p><p>Most exchanges have an order book that matches buyers and sellers. So basically you have a list of sell orders for an asset at a certain price, and a list of buyers for that same asset at whatever price they think is fair and are willing to pay. If I want to sell 1 BTC at $60K, then I have to wait for a buyer to take my offer and pay that $60K for the 1 BTC. This order book just matches buyers and sellers. This method comes with a liquidity issue, as you have to wait for someone on the other side of the trade to take you up on your offer. If I want to sell my 1 BTC but there’s no one else on the other side that wants to buy 1 BTC, then I’m stuck holding my 1 BTC.</p><p>Uniswap on the other hand is an <em>automated market maker</em>, allowing assets to be traded automatically using liquidity pools instead of like a traditional exchange having to match buyers and sellers. Using a liquidity pool means I don’t have to wait for my buy or sell order to be matched with someone on the other side. I just put my ETH, or whatever ERC-20 token I have, inside a pool of assets, and I get something else out.</p><p>In Uniswap, reserves are pooled between <em>liquidity providers (LP’s)</em> who supply the system with tokens.</p><p>Anyone with ERC-20 tokens can become a liquidity provider by supplying their assets to the system. In exchange, these LP’s earn a share of transaction fees proportional to the amount of tokens they provided to the protocol.</p><h3>How Uniswap Works</h3><p>There are two types of contracts within Uniswap: an exchange contract, and a factory contract.</p><p>The exchange contract is the contract that stores LP funds. Any ETH user can deploy an exchange contract for any ERC-20 token that doesn’t already have one. So basically each listed token on Uniswap has its own exchange contract, with users providing their own liquidity in it.</p><p>Each one of these exchange contracts holds a reserve of ETH and their associated ERC-20 token, allowing trades between the two based on the supply within the contract. There is one exchange contract per token.</p><p>The other type of contract is a factory contract, which is used to instantiate the exchange contracts. Factory contracts are responsible for creating new exchange contracts and connecting the address of the ERC-20 token address to its personal exchange contract. Remember that each ERC-20 has its own exchange contract. Anyone that holds ERC-20 tokens can call upon the factory contract to list a new token.</p><p>Just imagine a pool for every token listen on Uniswap. So Aave has its own giant pool of Aave tokens provided by the LP’s who supplied that exchange contract with an equal amount of both ETH and AAVE tokens, and DAI has its own pool of both ETH and DAI tokens provided by those LP’s. Anyone can supply their own ERC-20 tokens into one of the asset pools, and in exchange you, along with all the other LP’s, get a proportional share of transaction fees (depending on the usage for the asset you supplied to the liquidity pool).</p><p>Each exchange contract is associated with a single ERC-20 token and holds a liquidity pool of both ETH and that ERC-20 token. Each rate between ETH and that ERC-20 token is based on the relative sizes of their liquidity pools within the contract.</p><h3>Providing Liquidity</h3><p>I mean you’re going to need an incentive for supplying your Ethereum tokens into a pool right? So in exchange for providing your tokens, LP’s receive liquidity tokens which track the relative proportion of total reserves that each LP contributed.</p><p>The amount of liquidity tokens you receive is determined by the amount of tokens you contributed to the protocol. LP’s can burn their liquidity tokens to withdraw their share of ETH or ERC-20 tokens from the pool. LP’s can also take their liquidity tokens and sell them, or transfer them between accounts.</p><p>Right now there is a 0.30% fee for users to swap between tokens on Uniswap. This fee is split by the LP’s proportional to their contributions to the liquidity reserves and automatically gets added to the value of each LP’s liquidity tokens.</p><h3>Uniswap V2</h3><p>In March of 2020, Uniswap came out with their V2 version of the protocol. I won’t go into detail on what everything means, but I’ll leave a link to the V2 whitepaper <a href="https://uniswap.org/whitepaper.pdf">here</a> incase you’re interested.</p><p>Some of the new features in this version included:</p><ul><li>Arbitrary pairs between ERC-20’s. So this version made it possible to support ERC-20-ERC-20 token pairs, as opposed to V1’s exclusive ERC-20-ETH &amp; ETH-ERC-20 token pairs. This was the biggest upgrade in V2.</li><li>A hardened price oracle that allows smart contracts to estimate the time weighted price over a given interval.</li><li>Flash swaps, which allow traders to receive assets and use them elsewhere before paying for them later in the same transaction, allowing for some arbitrage opportunities.</li><li>This new version introduced a protocol fee that can be turned on at any time in the future.</li><li>And lastly, a re-architecture of the smart contracts in the protocol to reduce the attack surface (better security), as wells as making the protocol more easily upgradeable.</li></ul><h3>Uniswap V3</h3><p>In March of 2021, the team introduced Uniswap V3. According to the paper, V3 provides increased capital efficiency and fine tuned control to LP’s. V3 improves accuracy, convenience of price oracles, and has a more flexible fee structure.</p><p>Again, I wont go into detail here, but if you’re interested <a href="https://uniswap.org/whitepaper-v3.pdf">here’s</a> a link to the V3 whitepaper.</p><p>New features included:</p><ul><li>Concentrated liquidity, meaning LP’s can concentrate their liquidity by bounding it within an arbitrary price range. Basically the team realized a lot of tokens within the liquidity pools weren’t all being used, so this was done to combat this issue, thus improving capital efficiency. I would read the paper if you’re interested in learning how this works.</li><li>Flexible fees</li><li>Protocol fees which can be turned on at any time by governance. Basically 0.05% of the 0.30% trading fee will go directly to the protocol for future development.</li><li>Improved price oracle</li></ul><p>Another important thing to note is that V3 runs on Ethereum L2 solution Optimism, which means much lower fees for us users!</p><h3>UNI Token</h3><p>Although the Uniswap protocol went live in 2018, the UNI token itself wasn’t around until September of 2020, where 60% of the UNI genesis supply was allocated to Uniswap community members and users.</p><p>There was a total of 1 billion UNI tokens minted at genesis, which will all be accessible over the 4 years following the genesis date, and a 2% inflation rate after the 4 years are up. The breakdown is as follows:</p><ul><li>60% to community members</li><li>21% to team members and future employees (4 year vesting schedule)</li><li>18% to investors (4 year vesting)</li><li>0.69% to advisors (4 year vesting)</li></ul><p>The UNI token serves as the governance token for the protocol.</p><p>UNI token holders get to manage the Uniswap treasury, which is used to fund grants, strategic partnerships, governance initiatives, and any other programs.</p><h4>UNI Token Price</h4><p>Right now, UNI is trading at around $20.50 with a market cap of $12.8 billion. Although they have slipped from the top 10 in crypto tokens, they still remain the dominant (and by far) dex in all crypto. I mean we’re talking about the project that revolutionized the DEX space, so it’s really no surprise right? Chances are if you’ve used a dex, it was probably Uniswap.</p><p>According to DefiPulse, Uniswap is ranked 7th in Total Value Locked (TVL) with about $8.2 billion in TVL.</p><p>According to Dune Analytics, Uniswap has 68% DEX market share, and 4 times the market share of the 2nd place DEX.</p><h3>Founder &amp; Investors</h3><p>The founder of Uniswap is Hayden Adams, who was a former mathematical engineer at Siemens.</p><p>Investors of Uniswap include Andreessen Horowitz, Paradigm Venture Capital, Union Square Ventures, and ParaFi Capital. So some pretty big names in the space.</p><h3>Conclusion</h3><p>There is no doubt that Uniswap has changed the way we trade assets. Instead of relying on the traditional order book method where each trade has to be matched by someone on the opposite side before it gets executed, Uniswap’s AMM method allows us to make instantaneous trades by pulling assets from a liquidity pool to trade against.</p><p>Although there will continue to be a lot of competition for them now and in the future, there is no doubt that Uniswap will remain one of the top dogs in the space for years to come.</p><p>This is not financial advice, but if you were ever debating on whether or not to invest in UNI, now is the one of the best times to do so. The market as a whole has falled quite a bit these past couple of days, but if you have a long investment horizon, I’m pretty sure this is one of the projects that will be much higher in 2 years than where they are now. And more importantly still alive, because as we all know most cryptocurrencies won’t be around in the future. Also considering the fact that they haven’t really blown up this bull cycle. Of course like I said this isn’t financial advise, but just my own personal opinion.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7012bc32c78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compound Finance Review: A DeFi OG]]></title>
            <link>https://medium.com/@pedronv/compound-finance-review-a-defi-og-3d6498e50109?source=rss-98445327fa9c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d6498e50109</guid>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[defi]]></category>
            <dc:creator><![CDATA[Pedro]]></dc:creator>
            <pubDate>Tue, 09 Nov 2021 20:48:06 GMT</pubDate>
            <atom:updated>2021-11-09T20:48:06.267Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*221nrbUgBkpNELNGfIMs-A.png" /></figure><p>You may have noticed that all three of my posts so far have been about defi projects. Now don’t worry, I’m not just going to be writing only about deFi projects, I just figured it would be a could area to start at. Considering NFT, gaming, and metaverse plays have blown up quite a bit during this bull cycle, I thought it would be cool to start in the area where we haven’t seen a huge run yet.</p><p>I know we’re seeing a wave of defi 2.0 companies go live this year, and I will write about those at some point as well, but I figured it would be good to start with the big OG DeFi projects that helped shape the ecosystem into what it is today.</p><p>I’ve written about Aave and MakerDAO so far, which are two of the biggest, if not the biggest defi projects out there, so it would only be fair to now talk about another project that has been one of the biggest defi projects helping shape the whole ecosystem. That project is Compound.</p><p>Compound has become one of the largest lending platforms in all of defi. Since the COMP token went live last year, we’ve seen a huge adoption of the Compound protocol.</p><p>In this article I’ll try to explain what exactly Compound is, whether for investment purposes, or whether you just want to do some extra yield farming for yourself.</p><h3>What is Compound</h3><p>According to the <a href="https://compound.finance/documents/Compound.Whitepaper.pdf">whitepaper</a>, Compound is a protocol on the Ethereum blockchain that establishes money markets, which are pools of assets with algorithmically derived interest rates, based on the supply and demand for the asset.</p><p>This basically means that you can <em>lend</em> your Ethereum asset, such as ETH, ERC-20 stablecoin like DAI (btw I wrote this article on MakerDAO last week, which is the project behind the DAI stablecoin), or an ERC-20 utility token like Augur, and in exchange receive a floating interest rate that changes based on the demand for that particular asset.</p><p>Or you can <em>borrow</em> one of these Ethereum assets (as long as you put down collateral), and pay a floating interest rate based on the supply and demand for the asset you’re borrowing.</p><h3>Supplying &amp; Borrowing Assets</h3><h4>Supplying Assets</h4><p>Compound is <strong>not</strong> a peer to peer protocol, meaning it doesn’t require direct lending and borrowing between two users. For example, a peer to peer system would be like me posting an ad on a website saying I have $1000 to loan out to someone (like a Craigslist) and wait for another user to take up my offer. We would both have to decide on things like interest rates, maturity date, collateral type, etc. Sounds terrible right?</p><p>Instead, Compound uses more of a pool based system. Meaning the protocol aggregates the supply of each user for each particular money market for other people to borrow from. Each asset supplied to the protocol has its own money market, so ETH has its own money market, DAI has it’s own money market, etc. Using a pool system like this provides more liquidity, allowing users to withdraw their assets at any time without having to wait for the loan to mature. As well as the fact that you dont have to decide on the terms and conditions for the actual loan.</p><p>Assets supplied to a money market are represented by an ERC-20 token balance (cTokens), which entitles the owner to an increasing amount of the underlying asset. You’re basically earning interest by holding these cTokens.</p><p>So if I lend my ETH, I’ll get cETH in return. As long as I hold on to the cETH in my wallet, I’ll be earning continous interest on it.</p><p>A use case for this would be someone that is long ETH using the protocol to earn extra yield on that ETH they’re hodling. Again, I lend my ETH, and receive cETH which accumulates interest over time.</p><h4>Borrowing Assets</h4><p>Compound allows users to frictionlessly borrow from the protocol, using the cTokens as collateral, for use anywhere in the Ethereum ecosystem. Basically you just specify the money market you want to borrow from, and that’s it, you don’t have to negotiate on any terms. Each money market has its own floating interest rate that is determinded based on the supply and demand for the asset. The higher the demand for an asset, the higher the interest rates, and vice versa.</p><p>So when I supply ETH to the protocol, I receive my cTokens (which represent the ETH I just supplied). Then I can take these cTokens and use them as collateral to borrow from one of Compounds money markets, like ETH for example, and in return I pay a floating interest rate based on the borrowing cost for the asset I borrowed.</p><p>Borrowing on Compound allows users to hold (borrow) new assets, without having to sell or change their existing portfolio.</p><p>You can also do leverage trading (or even short a token) by using your erc-20 tokens as collateral.</p><p>Somethig else you can do is for example, lock up your ETH and borrow USDC stablecoin in return. Then you can take that USDC and lock that up in Compound as well to earn interest on that. Which by the way, by locking up that borrowed USDC, you’ll be able to borrow even more USDC and do the same thing, earning even more interest. Or you could take that borrrowed USDC and buy ETH with that on Coinbase.</p><h3>Liquidations</h3><p>Each money market has its own collateral factor ranging from 0–1, which represents the portion of the underlying asset that can be borrowed. Illiquid small caps have a low collateral factor, while liquid big caps (like ETH) have a higher collateral value.</p><p>The sum of the value of my accounts underlying token balances multiplied by the collateral factor would be my borrowing capacity. If you and I both want to borrow ETH, but I put down more collateral than you did, than I get to borrow more money than you.</p><p>Each user can borrow up to their own borrowing capacity. However if your borrowing outstanding surpasses your borrowing capacity (this could be due to the value of your collateral falling, or the value of the borowed asset increasing over time), than some of your collateral could be liquidated to repay that overly borrowed asset. The liquidation process may continue to be called until the user’s borrowing is less than their borrowing capacity. So you’ll just keep getting liquidated until your borrow outstanding is less than your borrow capacity. So use with caution!</p><h3>COMP Token</h3><p>Although Compound started as a centralized protocol, with parameter changes to the protocol controlled by <em>Compound Labs </em>(the dev team behind Compound), the protocol is now decentralized and governed by the Compound community and stakeholders who hold the COMP token.</p><p>COMP is the governance token for the Compound protocol. It’s an erc-20 token that allows the owner to delegate voting rights to either themselves, or an Ethereum address of their choice.</p><p>In order to create a governance proposal, the user needs at least 65,000 COMP. However for people like you and me who don’t have 65,000 COMP, we can lock up just 100 COMP to create a <em>Autonomous Proposal</em>, which then becomes a governance proposal after being delegated the requireed 65,000 COMP. After a governance proposal is proposed, other COMP token holders can vote either for or against the proposal. 1 COMP equals 1 vote.</p><p>In addition to serving as the governance token, COMP also works as a reward incentive for users of the Compound platform. So if you’re supplying or borrowing assets from Compound, you’ll be eligible to earn COMP governance tokens. Considering the price of COMP is about $357 right now, this seems like a pretty good incentive to use the protocol.</p><h3>COMP Token Allocation</h3><p>There was no ICO for the COMP token, instead about 58% of the 10 million total circulating supply went to to investors, founders, current team members, future team members, and community growth. While the remaining 42% is reserved for the users of the protocol.</p><p>Since the initial listing of the COMP token in the open market, there have been 2880 COMP tokens being distributed daily to users of the protocol. 50% going to suppliers, and 50% going to borrowers. This is set to continue for 4 years (well, less than 3 years from now considering COMP started trading mid last year), until the 42% of tokens that were set aside for this protocol usage have all been handed out.</p><p>It’s important to note that the 2.2 million COMP tokens that were originally allocatd to the founders, will eventually be returned after the 4 year period is up. They initially took the 2.2 million allocation to help govern the protocol via voting, while the protocol itself slowly transitions to become “fully” community driven.</p><h3>Compound Chain</h3><p>Late last year, Compound Labs released a whitepaper detailing its plan to create Compound Chain (now referred as <strong><em>“Gateway”</em></strong>), which will essentially work as a standalone distributed ledger serving as a bridge across multiple chains.</p><p>This paper introduced a new cryptocurrency called CASH, which will be used to pay for transactions on the network. Users will be able to upload assets from a variety of blockchains to Gateway, and borrow CASH using any of the supported assets as collateral. CASH will initially be soft pegged to the US dollar, however this can change if governance decides to do so.</p><p>Governance for this Gateway chain by the way, is also done by <em>COMP token holders.</em></p><p>Gateway will initially only support Ethereum assets, but additional smart contract blockchains could be added through governance if and when the community decides to do so.</p><p>I don’t want to go into detail on this too much, but basically the purpose of this chain is to function like Compound, but across multiple blockchains, “bridging value between its connected peer chains”. If you care to learn more about this, I’ll link the whitepaper <a href="https://compound.cash/documents/Compound.Cash.Whitepaper.pdf">here</a>.</p><h3>Compound Treasury</h3><p>Earlier this year, Compound Treasury was introduced.</p><p>According to an article published by the Compound team, this is “designed for non-crypto native businesses and financial institutions to access the benefits of the Compound protocol”.</p><p>Compound will be working with Fireblocks and Circle to enable banks, fintech startups, and other large holders of US dollars, to access the interest rates available on the USDC market in the Compound protocol, while taking away the complexities involved, such as key management, crypto to fiat conversion, and interest rate volatility.</p><p>Basically, you put your USD in, and get a fixed interest rate of 4% per year in USD. Keep in mind users like you and me that use the Compound protocol get a floating interest rate still. This by the way is one of the distinctions between Compound and Aave, which does offer both variable AND fixed rates to all users.</p><p>Compound Treasury was built for the needs of financial institutions. According to the same article, the vision is that “Compound Treasury becomes <em>the</em> bridge for non-crypto financial institutions to deliver the core benefits of DeFi to the next billion users”. Pretty cool to see the team behind Compound be so focused on birdging the gap between traditional institutions and defi.</p><h3>COMP Growth</h3><p>The COMP token started trading mid last year at around and immediately started shooting up in price. Reaching a high of $854 earlier this year in May, before eventually falling back down to where it is now at around $360, with a market cap of around $2.1 billion. Note that most defi projects fell in price this year, not just Compound.</p><p>That said, Compound has consistently been a top 5 defi project in terms of <em>Total Value Locked</em> according to DefiPulse. Currently sitting at the #5 spot with close to $11.5 billion in TVL.</p><h3>Conclusion</h3><p>Compound without a doubt is one of the biggest projects in defi right now.</p><p>Projects like this, Uniswap, and Maker are definately paving the way for a transition from centralized finance to decentralized finance. Which is why I think projects like these are ones that will be around for years to come (unlike a majority of other coins out there right now).</p><p>That said, it will be interesting to see once the 4 years (since the COMP token first went live) are up if the founders follow through and sell the tokens that were originally allocated to them during the launch.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d6498e50109" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>