<?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 Abubakar Maruf O. on Medium]]></title>
        <description><![CDATA[Stories by Abubakar Maruf O. on Medium]]></description>
        <link>https://medium.com/@talktomaruf?source=rss-2669c475d893------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MHKBJBwvil7FVGEUjkc00g.jpeg</url>
            <title>Stories by Abubakar Maruf O. on Medium</title>
            <link>https://medium.com/@talktomaruf?source=rss-2669c475d893------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:28:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@talktomaruf/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[Tokenomics Research | NFT Research Report│April 2022]]></title>
            <link>https://medium.com/coinmonks/tokenomics-research-nft-research-report-april-2022-d87612a22e2a?source=rss-2669c475d893------2</link>
            <guid isPermaLink="false">https://medium.com/p/d87612a22e2a</guid>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[bayc]]></category>
            <dc:creator><![CDATA[Abubakar Maruf O.]]></dc:creator>
            <pubDate>Tue, 04 Oct 2022 12:26:47 GMT</pubDate>
            <atom:updated>2022-10-04T16:40:57.516Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>APES, CATS, MOONBIRDS AND KONGZ</strong></p><p>INTRODUCTION</p><p><em>NFTs gained traction and soared high in popularity, to the point it was named the word of the year in 2021 by the Collins dictionary. NFT sales were approximately $24.9 billion in 2021, an exponential rise from $94.9 million in 2020. From 545,000 wallets that traded NFTs in 2020, about 28.6 million NFTs traded NFTs in 2021. However, some of the most notable projects are expanding their ecosystems by offering token incentives and community-centric perks. Let’s have a look at the top-performing NFT projects in April 2022.</em></p><h3>Conjecture</h3><p>Many people wouldn’t have imagined the imminence of its emergence a few years before the advent of blockchain technology. Even when blockchain came mainstream, many artists wouldn’t have believed their expertise would earn them a fortune on the novel technology. Like many other industries, blockchain has transformed the art industry into an epoch of unique and algorithmically generated art pieces with their aesthetic traits and rarity score.</p><p>Beyond naysayers’ imagination, NFTs debuted in the mainstream and grew into a larger market in the blockchain industry. Its growth became enormous when various art labs and investors started diving into the NFT market and promoting it. Venture capitalists were not left out, and media organizations and big brands were not spared. Every movers and shaker of the global economy want to have a bite of the flourishing NFT economy.</p><p>Like DeFi has its self-sustained economy on the blockchain, the frenzy of adoption of NFTs paved the way for an independent economy for NFTs too. This was achieved with several NFT projects that drove NFTs beyond mere trading of digital arts. They gave NFTs utility and extended their functionalities to an immersive ecosystem — metaverse — to widen the horizon of NFT economies.</p><p>Integrating NFTs into the metaverse maintains a deep-rooted economy and assures investors that NFT and its economy are not for frivolities and are here to stay. Every persona, objects, collectibles, environment, and other valuable tools and features in the metaverse are NFTs. To keep the flame of NFT burning, several NFT projects regularly incentivize their holders to ensure they keep their NFT assets; to extenuate panic sales, which could be a heavy blow to its economy.</p><p><strong><em>Let’s dive into four notable NFT projects in the industry. These fantastic projects include Bored Ape Yacht Club — BAYC — and its ApeCoin, Moonbirds and their nesting features, Cool Cats and their milk, and CyberKongs alongside their bananas.</em></strong></p><h3>Bored Ape Yacht Club — BAYC.</h3><p>BAYC was created by the notable Yuga Labs on April 23, 2021, on the Ethereum network. The project has grown into one of the most prestigious collections in NFT marketplaces. BAYC is a collection of 10,000 Bored Apes, which grants its holders access to the club — BAYC — for future incentive models. These incentives came through other NFT collections from Yuga Labs, like the Bored Ape Kennel Club and Mutant Ape Yacht Club — MAYC. The gross evaluation of all NFTs in these collections totaled $3 billion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*wi6hY_QpKad6uwXrtP2tug.png" /></figure><p>Yuga Labs successfully made their NFT projects top-notch with captivating activities to engage their community as incentives. These unending engagements drove millions of users and investors from many industries, including celebrities, to their NFTs. Yuga Labs witnessed significant events in March 2022 to further establish its tentacles in the NFT industry. These include its acquisition of Meebits and CryptoPunks (another NFT projects’ company), raised $450M in funding on March 22, 2022, and also announced its ApeCoin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*E37kAMbljnS8ynFJRZAImw.png" /></figure><p>The advent of ApeCoin, an ERC-20 token, marks another grand era in the entire BAYC and allied clubs in the Yuga Labs ecosystem. It began with distributing a 1/1 NFT to the Ape Foundation, which executes the ApeCoin DAO’s decision. The ApeCoin DAO, like other DAOs, is governed by all token holders to vote on decisions like partnerships, governance protocols, new projects, and fund allocations, among others.</p><h3>ApeCoin Token Utility</h3><h3>1. Governance</h3><p>ApeCoin grants its holders the right to participate in the decision-making process through voting. Since the token is decentralized, it’s governed by ApeCoin DAO, which decides what’s next in the ecosystem. This decision-making lies in holding ApeCoin to be part of the governance. It is pertinent to note that Yuga Labs has no governance authority.</p><h3>2. Native Crypto of the Ape Ecosystem</h3><p>Aside from being a governance token, ApeCoin will also be the native token of the Ape ecosystem, which can be used to offset charges on the ecosystem and purchase future products and services without centralized intermediaries.</p><h3>3. Incentives</h3><p>The ApeCoin DAO encourages third-party developers to integrate ApeCoin into their games, projects, and other services. As P2E games incentivize their players with the ApeCoin, it will further promote the token beyond the Ape ecosystem.</p><h3>4. Access</h3><p>With the emergence of the Ape token, holding an Ape before being part of the ecosystem has ended. With ApeCoin, holders can now access the Ape ecosystem, which will house many intriguing activities.</p><p>ApeCoin generally aims to be more than a community-based token; as it keeps forging ahead, it will soon be available for staking and other DeFi protocols to invigorate the token and promote the Ape ecosystem.</p><h3>ApeCoin Token Distribution</h3><p>The ApeCoin has a fixed supply of 1 billion tokens which has been minted already and can’t be burnt. The token was launched on March 17, 2022, with 30.25% of the token unlocked to be in circulation. The remaining supply will be released to circulation at an average of 1.5% of the maximum supply every month for 48 months.</p><p>From the total supply, 16% was allocated to the Yuga Labs team, with 1% allocated to Jane Goodall’s Charity Foundation. Another 14% of the token was allocated to ApeCoin launch contributors and 8% for Yuga Labs &amp; BAYC’s founders. The remaining 62% was allocated to the DAO community, where 15% was airdropped to holders BAYC, BACK, and MAYC NFT holders, while the remaining 47% was reserved for the DAO treasury and resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*LYz0Clt7D4CykPFo4Jiarw.png" /></figure><h3>Tokenomics</h3><p>From January to April 2022, BAYC trade volume peaks slightly above $43M, with its average price closing on $400k. Its market cap peaks at $4.3B towards the end of April 2022.</p><h3>Moonbirds</h3><p>Moonbirds is another remarkable NFT project launched on April 16, 2022. It is a collection of 10,000 PFP (profile picture) NFTs that grants membership to a private club and additional benefits to their holders, like nesting. The project was developed by PROOF COLLECTIVE, a private club of 1,000 dedicated NFT artists and collectors.</p><p>Moonbirds has underlying utility in web 3 and beyond; it gives users exclusive access to a social club restricted to its holders. Its holders are also entitled to staking rewards and subsequent airdrops like the Moonbirds-embroidered hoodies and future airdrops. Not only that, holders of any NFT in this collection also have access to PROOF’s metaverse community. These utilities will be the cornerstone of potential utilities yet to be disclosed.</p><p>Top of the Moonbirds utility is “nesting,” a soft staking model that allows owners to lock their NFTs in their wallets without transferring or listing them. Like Bored Ape holders were rewarded with ApeCoin, Moonbirds will also reward nested bird owners for how long they hold their NFTs in their wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*U_cyqco5b6zZ_NRKYdNsfQ.png" /></figure><h3>Moonbirds Growth and Tokenomics</h3><p>Moonbirds started growing its economy immediately after launch; the project was minted on the Ethereum blockchain and recorded remarkable secondary sales. With its 49,000 ETH volume made from secondary sales in a single day, it broke the MAYC single-day record of 41,000 ETH. The project recorded over 70,000 ETH in sales volume within the first 2 days of launching with a current floor price of 33 TH. Moonbirds average price peaked at $120k with a sales volume of almost $40M between April 21–22, 2022.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*9_V3VYp91cXUc6E4abU5NQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*Pfc1g-YX4RcEEp53nbV6Fg.png" /></figure><p>Source: InToTheBlock</p><h3>Cool Cats</h3><p>Cool Cats is an NFT project co-created by Tom Williamson, Rob Mehew, Evan Luza, and Colin Egan in July 2021. It is a collection of 9,999 randomly generated NFTs, with each cat having unique traits like body, face, hats, outfits, etc. These randomly generated NFTs have rarities like Exotic, Classy, Wild, and Cool to mark their uniqueness.</p><h3>Utility</h3><p>Aside from their appealing aesthetics, owning or holding this NFT grants access to additional perks like airdrops, passive token rewards, minting additional NFTs, and more that are yet to be unveiled. Cooltopia –Cool Cats ecosystem– announced Cool Pets and a $MILK token in September 2021. Cool Pets is another 19,999 collections of NFTs, 50% of which were reserved for Cool Cats holders.</p><p>The $MILK token is the ecosystem native token and is automatically generated by all genesis Cool Cats daily. It can also be earned alternatively by sending Cool Pets on a quest. You can buy Housing or Battle chests or evolve your Cool Pets with the $MILK tokens.</p><p>Furthermore, Cool Pets earn token rewards via staking, and the team behind this project is developing a lending protocol that allows holders to lend out the NFTs to complete a quest and earn a reward in return.</p><h3>Growth and Tokenomics</h3><p>The announcement of Cool Pets and $MILK doubled the market cap of Cool Cats NFTs, which ranked the 11th largest NFT project in March 2022. It recorded a trading volume of over $300M in April 2022. By January, the average price of Cool Cats was above $40k with a market cap slightly above $400M and plummeted to $14k with a market cap of $65M by the end of April 2022.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*9TYy22rvvfFE7lN-Op4t8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*kZ1tfhUuCp0YMZsfRtL8cw.png" /></figure><p>Source: InToTheBlock</p><h3>CyberKongz</h3><p>CyberKongz journeyed into NFTs in early March 2021 with its 2D randomly generated collection of NFTs. It is a collection of 1,000 unique PFP NFTs created by an artist called Myoo, who generated 989 Genesis CyberKongz and 10 Legendary CyberKongz. The project was later upgraded with more functionality in April 2021, transforming the ecosystem into an independent and prosperous one. It paved the way for further potentials yet to be unveiled to its community.</p><p>This landmark upgrade constitutes an inbuilt token emission which makes the CyberKongz ecosystem algorithmically distribute $BANANA — its native token. Furthermore, it also paved the pathway for minting more NFTs — like the CyberKongz VX and Kongnium Ore — without jeopardizing the value and functionality of the Genesis NFTs. The upgrade also edged the ecosystem towards gamification, where NFT holders can earn rewards by participating in quests.</p><h3>About the Emission</h3><p>The emission generates revenue via the Genesis NFTs; each genesis NFT will emit 10 $BANANA daily for ten years. The $BANANA doubled as the ecosystem’s utility and governance token with various utilities. With the token, CyberKongz’s holders can partake in the stake-to-play protocol, customize and upgrade CyberKongz NFTs, use them to mint extra NFTs, and more that are yet to be introduced.</p><p>Like other governance tokens, $BANANA allows its holders to have a say on different proposals and upgrade the ecosystem through voting. The current price of $BANANA is $9.53 per token, meaning each CyberKongz will emit $95.30 per day and $34,784.5 per year at this current price for holding on to the NFT.</p><h3>The uniqueness of the $BANANA Token in the Ecosystem</h3><p>Aside from being the governance and utility token, the $BANANA token has another layer of underlying functionality within the ecosystem. With 600 $BANANA as gas fees, holders can freely mint two Baby Kongz through the cybernetic breeding process. Baby Kongz is 4,000 limited breeds of the genesis CyberKongz and can further be modified — name and bio — by spending more $BANANA tokens.</p><h3>Growth and Tokenomics</h3><p>A 15,000 collection of CyberKongz VX was created to promote the ecosystem further to be deployed on metaverse platforms like Sandbox. This will mark a new era in the ecosystem, making the Kongz utility NFTs.</p><p>CyberKongz floor price hovers around $38k to $15.1k from January to April, with a market cap of $168M in January to $60M in April 2022.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*7W5oL8lEjGbYjjfQ_JdkWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*g5PWn6YO1uU5k7zTou9yFw.png" /></figure><p>Source: InToTheBlock</p><p><strong>Disclaimer</strong></p><p>This report is meant for informational purposes only and not to serve as financial or investment advice. Conduct your research, and consult an independent financial, tax, or legal advisor before making investment decisions. The past performance of any asset is not indicative of future results. Fungible Press does not guarantee the sequence, accuracy, completeness, or timeliness of any information provided in this report.</p><p>Found this research useful or for any inquiries, send a mail to <a href="/service/mailto:research@fungiblepress.com">research@fungiblepress.com</a> or <a href="/service/mailto:talktomaruf@gmail.com">talktomaruf@gmail.com</a></p><blockquote>New to trading? Try <a href="https://medium.com/coinmonks/crypto-trading-bot-c2ffce8acb2a">crypto trading bots</a> or <a href="https://medium.com/coinmonks/top-10-crypto-copy-trading-platforms-for-beginners-d0c37c7d698c">copy trading</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d87612a22e2a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/tokenomics-research-nft-research-report-april-2022-d87612a22e2a">Tokenomics Research | NFT Research Report│April 2022</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Here’s a Quick Guide to Easily Retrieve Crypto Sent to a Wrong Network on Binance]]></title>
            <link>https://medium.com/coinmonks/heres-a-quick-guide-to-easily-retrieve-crypto-sent-to-a-wrong-network-on-binance-33894662e97b?source=rss-2669c475d893------2</link>
            <guid isPermaLink="false">https://medium.com/p/33894662e97b</guid>
            <category><![CDATA[binance]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Abubakar Maruf O.]]></dc:creator>
            <pubDate>Mon, 25 Jul 2022 07:11:16 GMT</pubDate>
            <atom:updated>2022-07-26T12:31:30.815Z</atom:updated>
            <content:encoded><![CDATA[<p>Cryptocurrency trading is an integral part of the crypto market where assets are exchanged, withdrawn, or sent to various networks as the case may require. When these digital assets are exchanged, they are usually sent or received via a crypto wallet, where they are eventually stored or kept.</p><p>All crypto assets are marked by their respective standards, reflecting their network or perhaps their indigenous blockchain network. Each standard also reflects which blockchain they are compatible with and the types of wallets — custodial or non-custodial.</p><p>This is why it is essential to understand the token standard of the respective blockchain and which token standard can be sent to or received with a specific network and wallet.</p><p>Binance is a centralized crypto exchange platform where crypto enthusiasts and investors can trade cryptocurrencies. It provides a custodial wallet where users can store their digital currencies and allied tokens.</p><p>Since Binance is an exchange platform, most crypto investors and enthusiasts prefer storing their assets in non-custodial wallets and only use Binance to exchange or liquidate their assets.</p><p>Liquidating digital assets requires either sending or withdrawing processes which can go south if proper care is not taken. When sending or receiving crypto on Binance, it is essential to know the network you’re sending from and the destination.</p><p>The notable crypto network or standards are BEP-20, ERC-20, TRC-20, and BEP-2. Users can easily mistake BEP-20 for BEP-2 and ERC-20 for TRC-20 and vice-versa.</p><h3>How to Retrieve Crypto Sent to the Wrong Network</h3><p>If you’ve wrongly sent ERC-20 tokens–ETH– via the Binance Smart Chain–BSC– or even sent BEP-20 tokens through the Ethereum network, don’t panic. In either of the cases mentioned above, your assets can be retrieved.</p><ol><li><strong>If you wrongly sent your tokens to a wallet compatible with Ethereum and BSC.</strong> You can transfer your tokens back to the correct network on Binance.</li><li><strong>If you wrongly sent your tokens to a non-custodial wallet that’s only compatible with the Ethereum network or BSC.</strong> Your best option is to access your private key to import the wrongly sent assets to another wallet that supports both networks.</li><li><strong>If you wrongly sent your tokens to a crypto exchange or custodial wallet.</strong> Consult your exchange’s customer service for possible retrieval.</li></ol><h3>What if you wrongly sent BEP-20 or ERC-20 tokens to the wrong Network</h3><p>If you wrongly send an ERC-20 token to BSC or send a BEP-20 token to the Ethereum network, the token will reflect in the designated wallet address on the preferred network, but the standard of such token will change.</p><p>For instance, if you send ETH to BSC, it will end up as a BEP-20 token in your ETH wallet instead of the original ERC-20 token.</p><p>This possibility is possible because both Ethereum and BSC public keys are identical and can be accessed with the same private key. But if you want to confirm the transaction’s approval, you’ll have to check the destination network.</p><p>If you wrongly sent a BEP-20 token to Ethereum, you will have to confirm the transaction status on Etherscan, and if you mistakenly send an ERC-20 token to BSC, you’ll have to confirm the transaction status on Bscscan.</p><p>In this case, your token is not lost. All you have to do is to send your token back to your preferred network.</p><h3>Retrieving Tokens from A Wallet that Supports Ethereum and BSC</h3><p>If a wallet supports both networks–Ethereum and BSC– finding and retrieving your tokens should be seamless. Search for the list of tokens for each network; if your token is not enabled, you can undo that and enable it.</p><p>Using MetaMask, for example, you’ll have to click on the “import tokens” to search for your preferred token and add it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/0*p_Hzq57gWOFeKBT_" /></figure><ul><li>From the next interface, input your token name in the search field and select the token before clicking on the “Next” tab to add your token.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/323/0*XfnIpGvx2hhv4qa5" /></figure><ul><li>But if you can’t find your token, you’ll have to import it manually by clicking on the “Custom Token.”</li><li>Next is to input the “Token Contract Address, Token Symbol, and Token Decimal” in the field provided, respectively. Then you click on the “Add Custom Token” tab.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/0*FCAuM6O_vvuYmb8p" /></figure><p>You can use two options to transfer your tokens back to your preferred network. Either you use the Binance Bridge or the manual procedure.</p><h3>What is Binance Bridge</h3><p>The Binance Bridge is a portal or platform used for converting tokens from other networks to BSC-compatible tokens and vice-versa. It allows users and investors to transfer cross-chain tokens from one network to another seamlessly.</p><h3>Manual Procedure</h3><p>The manual process of transferring your tokens to your preferred network requires sending the wrongly sent tokens back to Binance. This requires that the network of the wallet you’re depositing into on Binance must be the same as the network where your token is currently stored or held.</p><p>If you wrongly sent a BEP-20 token to the Ethereum network, you’ll have to send the token back to Binance through the Ethereum network as an ERC-20 token. When your token is reflected in your Binance account, you can send it to your anticipated wallet and network.</p><h3>Converting BEP-20 ETH into ERC-20 ETH</h3><p>To do this, you’ll need BNB for the gas fee because the transaction or conversion is taking place on BSC, and you’ll recall that BNB is the native token of BSC.</p><ul><li>First, go to Binance spot wallet and click on ETH, then select “withdrawal” and click on “Send via Crypto Network.” Select BEP-20 as the deposit network.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/0*M3EKkkNbHFzuypyc" /></figure><ul><li>Copy the public key or wallet address and input it in the required field from which you are sending the token.</li><li>Once the ETH is reflected in your Binance wallet, you can convert it to ERC-20 by withdrawing or transferring it to a wallet compatible with the Ethereum network. To do this, select ERC-20 as your transfer or withdrawing network.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/0*7D8B2tRvpRgWamIP" /></figure><ul><li>After verifying, your token will reflect in your correct network.</li></ul><h3>Retrieving Token from a Wallet that only Supports Either Ethereum or BSC</h3><p>To retrieve your tokens in this scenario, you will have to import your wallet’s private key into a new wallet compatible with both networks–Ethereum and BSC. Depending on the hosting wallet, you might be able to use your mnemonic phrase instead of your private key.</p><h3>Importing a Private Key into another Wallet</h3><p>Before importing any private key, it is essential to note that this feature is only possible with non-custodial wallets because custodial wallets have no private key. When you import a non-custodial wallet’s private key into another wallet of its kind, you’ll have access to the tokens held in the former wallet via the latter wallet.</p><p>Importing a wallet’s private key to another doesn’t mean you send the tokens held in the former wallet to the latter. The latter wallet is just like an extension of the former wallet by making the former wallet to be accessible via the latter wallet.</p><p>The notable wallets used for this procedure include MetaMask, Math wallet, SafePal, TokenPocket, and Trust Wallet.</p><h3>Using the MetaMask Chrome Extension to Retrieve ETH Wrongly Sent to a BSC</h3><ul><li>First, access your MetaMask wallet by clicking the MetaMask extension icon and sign in with your password if requested.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/0*509uou9lXb1ILtKl" /></figure><ul><li>Click on the circled icon at the top right corner to access your account details and select “Import Account.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*Q5jsdjG30Cg0o-hC" /></figure><ul><li>As shown below, you can use your private key or JSON File to import your account.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/0*TetiQfXgCSIoewjX" /></figure><ul><li>Then you’ll need to manually add the BSC network to your wallet by clicking on the network dropdown menu and then clicking on the “Add Network bar.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/0*CY0rIdiP5u3K9d4Y" /></figure><ul><li>Then you fill the following interface that pops up with the following information in respective fields and click on “save.”</li></ul><p><strong>Network Name: BSC Mainnet</strong></p><p><strong>New RPC URL: &lt;https://bsc-dataseed1.binance.org/ ](https://bsc-dataseed1.binance.org/)</strong></p><p><strong>Chain ID: 56</strong><a href="https://bscscan.com/?ref=hackernoon.com"><strong>https://bscscan.com/</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*KEDC8DEQcJGAAjY4" /></figure><ul><li>Next is to add the correct token contract to your wallet, enabling your preferred BEP-20 compatible wallet to scan for your lost token.</li><li>The list of tokens as well as their contracts can be gotten from BSCscan. For the ERC-20 ETH wrongly sent to BSC, click on the “Binance-Peg Ethereum Token (ETH)” to find the token’s contract address.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/0*yB_TJWUpAU1mwg4q" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/0*fmgWCFaP2lq8czWw" /></figure><ul><li>Copy the contract address and note the Decimals’ correspondent.</li><li>Next, go back to your MetaMask BSC homepage and click on “Import tokens.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*Rr5wJNjZYCHYO9Z3" /></figure><p><strong>Input the following information in the required field: Token Contract Address: 0x2170ed0880ac9a755fd29b2688956bd959f933f8 Token Symbol: ETH Decimals of Precision: 18</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/0*W2dmPImDByYl0jtP" /></figure><ul><li>Then click on the “Add Custom Token” bar and the “Import Tokens” bar on the next page, as shown above.</li><li>Your ETH tokens should now reflect in your wallet. You can now send it back to your BEP-20 wallet on Binance.</li></ul><h3>Conclusion</h3><p>When transferring or withdrawing your digital assets on Binance, selecting the right network might be crafty until you understand it. Once you’ve understood how it’s done correctly, you won’t be sending your digital assets to the wrong network anymore.</p><p>If you do, remember that you can retrieve your token via the Binance Bridge or the Manual procedure.</p><blockquote>New to trading? Try <a href="https://medium.com/coinmonks/crypto-trading-bot-c2ffce8acb2a">crypto trading bots</a> or <a href="https://medium.com/coinmonks/top-10-crypto-copy-trading-platforms-for-beginners-d0c37c7d698c">copy trading</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33894662e97b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/heres-a-quick-guide-to-easily-retrieve-crypto-sent-to-a-wrong-network-on-binance-33894662e97b">Here’s a Quick Guide to Easily Retrieve Crypto Sent to a Wrong Network on Binance</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Identify and Avoid Scams on Uniswap]]></title>
            <link>https://medium.com/web3-magazine/how-to-identify-and-avoid-scams-on-uniswap-bfe6c5c6c83b?source=rss-2669c475d893------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfe6c5c6c83b</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[uniswap]]></category>
            <category><![CDATA[rugpull]]></category>
            <category><![CDATA[scam]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Abubakar Maruf O.]]></dc:creator>
            <pubDate>Wed, 06 Jul 2022 08:17:03 GMT</pubDate>
            <atom:updated>2022-07-06T08:43:05.794Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E9etk_rFYWn5JePf" /><figcaption>Photo by <a href="https://unsplash.com/@gabriellefaithhenderson?utm_source=medium&amp;utm_medium=referral">Gabrielle Henderson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>One of the foremost anchors of cryptocurrency is the emergence of exchange platforms where crypto enthusiasts and investors can exchange and trade crypto assets in open markets. These exchange platforms can be centralized or decentralized. Due to the inherent presence of third parties and central governance, centralized exchange platforms are susceptible to a <strong>SPOF –</strong></p><p><strong>Single Point of Failure.</strong></p><p>Aside from <strong>SPOF</strong>, which can be due to compromised central governance, a centralized exchange platform can rug pull if the developers are malicious and dishonest. Many security reasons are behind the paucity of centralized exchanges.</p><p>On the other hand, decentralized exchanges (DEXes) are widely adopted by countless crypto enthusiasts and investors. The reason is none other than the perks it offers regarding securing digital assets. DEXes are blockchain-based exchange platforms that mirror all the security architecture and other characteristics of the blockchain they’re built on. An example of such DEXes is Uniswap.</p><h3>What is Uniswap?</h3><p>Uniswap is a P2P decentralized exchange platform that allows users to trade, swap, or exchange cryptocurrencies without going through any third party. It runs on a permissionless blockchain hosted on the Ethereum platform–through a smart contract– with a native token of UNI.</p><p>As a decentralized platform hosted on Ethereum, Uniswap only supports ERC-20 tokens, a standard for Ethereum-based tokens. UNI holders govern Uniswap without the interference of any third party.</p><p>Founded by Hayden Adams in 2018, Uniswap represents various financial tools encapsulating DeFi protocols. Aside from having its native token and representing a DEX, Uniswap also represents Automated Market Maker (AMM) which allows users to trade with its liquidity pool.</p><p>One of the main drives behind the perpetual adoption of DeFi (Decentralized Finance) is its success over the years; this has attracted countless naysayers and newbies to the crypto-verse. As DeFi keep growing by stretching its wings and tentacles, malicious actors and mischief-makers are also seeking illicit ways to take advantage of DeFi investors and scam them of their digital assets.</p><p>For instance, Uniswap has recorded a trading volume of over $1 trillion since its emergence in November 2018. This and much more keeps making Uniswap a target for scammers to unleash their scamming activities on innocent investors.</p><p>To avoid scams on Uniswap, one needs to understand the kind of scams that are liable to occur on Uniswap.</p><h3>Common Scams on Uniswap</h3><h3>1. Rug Pulling Scam</h3><p>A rug pull happens when project developers suddenly abandon a project and pull all its liquidity. Pulling out the liquidity is equivalent to withdrawing the support of the project, which is liquidity. Rug pulling is known with DeFi projects, which provide the needed liquidity to DEXes like Uniswap.</p><p>Newly launched tokens are not usually listed on centralized exchanges (CEXes), this made them turn to DEXes, which provide liquidity. Since Uniswap supports ERC-20 tokens, ETH is provided as the liquidity of existing and any newly launched projects. Usually, when tokens are created, liquidity is always offered to DEX, where it is launched.</p><p>The liquidity is paired with another token, like ETH in the case of Uniswap. The new token might as well be sold through an Initial DEX Offering (IDO), where investors purchase the tokens, and proceeds from the sales will be locked for a particular duration.</p><p>Once the project has been widely or fairly adopted such that token value keeps going bullish, the project’s liquidity can now be accessible to the developer. To rug pull, the developers can sell their own tokens at a high value, pull out the project’s liquidity, or exploit loopholes in smart contracts to siphon investors’ assets.</p><p>Investors will now be struggling to sell their tokens due to insufficient liquidity. They are likely to be forced to sell at a low price due to the AMM pricing algorithm that calculates token prices based on the pair of coins in the liquidity pool of the DEX. Rug pulling can also be termed “Liquidity pull” since pulling out the liquidity leads to this scam.</p><h3>2. Crypto Exit Scams</h3><p>Exit scams are fraudulent tactics unscrupulous cryptocurrency developers use to steal money from investors during or after an ICO (Initial Coin Offering). Most new projects employ influencers or promoters to lure investors and enthusiasts to their projects.</p><p>At first, the project might seem legitimate with no iota of deception; either by promising high returns or even delivering impressive returns.</p><p>Later, after the project launch, when the developers have established trust, they make away with people’s assets.</p><p>An example is LoopX crypto, which guaranteed weekly profits during its ICO. Founded in September 2016, the project pulled its exit scam in February 2018 after raising BTC and ETH to $4.5 million from investors. Confido, Bitconnect, and a host of others did something similar too.</p><h3>3. Meme Coins Scam</h3><p>Meme coins are cryptocurrencies that are inspired by jokes or memes from the Internet and social media. They are not fake coins, but they promise holders outrageous returns within a short time. They are highly volatile because they are highly community-driven tokens, i.e., their prices are usually determined by their respective online community perceptions and social media, which generally results in FOMO.</p><p>Due to the success recorded by meme coins like DOGE and Shiba Inu, other meme coins have erupted, with most rug pulling on their investors. An example is SQUID, which was inspired by the popular Squid Game TV show. Unfortunately, it pulled, such that its price plummeted by 99%, and holders could not sell their tokens.</p><h3>4. Mimicked or Fake Token Scam</h3><p>This kind of scam on Uniswap is when scammers find a new legitimate token waiting to be listed and develop a listing that is quite similar to the official one before it. The fake listing is possible because scammers are exploiting the features of DEXes like Uniswap, which is open and allows free token listings.</p><p>Scammers can fool crypto investors into purchasing fake tokens believing they are genuine. This will leave victims holding worthless tokens. A fake Teller finance token was created in 2020, same with Acala and NEAR tokens, but investors were warned by the legitimate projects to steer clear.</p><h3>5. Social Engineering or Catfishing Scam</h3><p>This kind of scam usually occurs when scammers fool the public that some notable influencers are buying a particular token that might be fake. This can be done if the scammer can get influencers’ addresses; they’ll then initiate any transaction and make it look like a particular investor is acquiring the token they’re rooting for. This will generate a buzz that will drive community interest in such a token, which might be a fake or meme token.</p><p>Catfishing is when an impostor pretends to be someone else on social media. Scammers can pretend to be a whale or a notable influencer and influence community opinion regarding a token they wish to use as a tool of scam.</p><h3>So, How Can You Identify These Scams and Avoid Them?</h3><p>Identifying all sorts of scams on Uniswap and other exchange platforms (DEXes and CEXes) boils down to DYORing — Doing Your Own Research. Researching about projects you want to invest in helps pre-empt falling for scams or scam tokens. DYOR entails but is not limited to the following steps:</p><h3>1. Check Out the Project’s Smart Contract and Code Audit</h3><p>A genuine project usually audits its smart contracts and codes; professionals do this to ascertain there are no loopholes that could harm the project or its investors. The reason for checking this is that auditing is costly and can hardly be afforded by scammers.</p><h3>2. Analyze the Project’s Smart Contract</h3><p>Analyzing a Smart contract might be tasking or tricky, but it is not hard as it seems. Looking for the project’s liquidity, the last 24 hours’ trade volume and transactions would be best. If any of the trio is low or below average, that might be your red flag. In addition, look out for outrageous or bloated trade volume.</p><p><strong>How?</strong></p><p>Some projects’ last 24 hours trade volume might be influenced by wash trading, whereby an investor buys and sells tokens multiple times in a short time to deceive the crypto community about the token’s price or even liquidity.</p><p>If a project’s liquidity is low, there is a high tendency for trade volume to correlate to the low liquidity available. Low liquidity and high trade volume don’t correlate; that might be your red flag.</p><h3>3. Verify Through Reliable Sources</h3><p>Instead of searching for tokens on Google, Telegram, Twitter, or even Uniswap, verify genuine tokens via reliable sources like CoinMarketCap or CoinGecko. Both are crypto-tracking sites with analysis and information about almost all crypto tokens.</p><h3>4. Look Out for Updates From Verified Source</h3><p>Genuine projects usually have a media presence where updates are released. Even Uniswap has verified social media pages where they interact with their community to establish their presence. Any project without a media presence or a recently opened social media account is probably a scammer.</p><h3>Conclusion</h3><p>Scams can only be eschewed if users are diligent in their research about a project. There’s no limit to how intense your research can be before investing your money in any project. All in all, always invest what you can afford to lose.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfe6c5c6c83b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/web3-magazine/how-to-identify-and-avoid-scams-on-uniswap-bfe6c5c6c83b">How to Identify and Avoid Scams on Uniswap</a> was originally published in <a href="https://medium.com/web3-magazine">Web3 Magazine</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create Smart Contracts in Solana Using Anchor]]></title>
            <link>https://coinsbench.com/how-to-create-smart-contracts-in-solana-using-anchor-9904e9590890?source=rss-2669c475d893------2</link>
            <guid isPermaLink="false">https://medium.com/p/9904e9590890</guid>
            <category><![CDATA[anchor]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[solana-network]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Abubakar Maruf O.]]></dc:creator>
            <pubDate>Thu, 30 Jun 2022 07:32:20 GMT</pubDate>
            <atom:updated>2022-07-06T12:48:53.073Z</atom:updated>
            <content:encoded><![CDATA[<p>Blockchain is an immutable public ledger that securely stores data or information, making it less susceptible to hacking or modification. It is a decentralized/distributed digital transaction ledger devoid of central governance or a third party. It protects data by distributing it across all nodes in its ecosystem.</p><p>When blockchain came to the limelight in 2008, it started as a decentralized P2P public database of transactions; this earliest form of the blockchain is known as Blockchain 1.0. As developers keep exploring more use cases of the blockchain technology with a robust framework and more utilities, they successfully developed another version of the blockchain, the Blockchain 2.0.</p><p>Blockchain 2.0 incorporates the earliest version of the blockchain and added more features like transparency, improved security, and smart contract. The advent of smart contracts in blockchain technology is genuine in all these features.</p><h3>What is Smart Contract?</h3><p>A smart contract is a self-executing digital term of agreement embedded in strings of codes to be executed when the specified conditions have been met. It is the trusted tool between two anonymous parties that enables them to transact with each other without concern. It is accurate, efficient, secure, and transparent.</p><p>Blockchains that supports smart contract have the edge over those that don’t. This is because smart contract broadens the use cases of blockchain technology. For example, smart contracts allow for the development of several crypto tokens on a single blockchain, i.e., a single blockchain can be a host to multiple tokens, including the native cryptocurrency of such blockchain.</p><p>Another use case of the smart contract in blockchain technology is that it enables the minting of Non-fungible tokens — NFTs. These use cases, and many more are the drives behind blockchains with smart contracts such that non-smart contract-based blockchains are seeking ways to include it in their blockchain network. Such an example is the recent Bitcoin soft-fork, themed “Taproot.” One of the blockchain networks that support the smart contract is Solana.</p><h3>What is Solana?</h3><p>Solana is a public blockchain that runs on a BFT — Byzantine Fault Tolerance — themed Tower Consensus. The Tower consensus leverages the Proof-of-History consensus mechanism. As one of the fastest blockchain networks, Solana can process about 710,000 TPS.</p><p>Solana was created by a former executive of Qualcomm, Anatoly Yakovenko, in 2017. It supports the smart contract and Dapps creation alongside DeFi platforms and NFT marketplaces. The native cryptocurrency of the Solana network is SOL which is used to offset transaction fees on the network and is also traded on the crypto market. All applications or solutions of the Solana network were possible because of the smart contract it supports.</p><h3>How to Write Smart Contract in Solana Using the Anchor Software</h3><p>An Anchor is a software tool for Solana’s Sealevel runtime providing handy development tools like:</p><ul><li>Interface Definition Language–IDL–specification</li><li>Rust crates and eDSL–embedded Domain Specific Language–for writing Solana programs</li><li>TypeScript package to generate clients from IDL</li><li>CLI and workspace management to develop complete applications.</li></ul><p>Generally, the Anchor incredibly makes creating smart contracts easy on the Solana network. Before delving into the nitty-gritty of this subject, let’s familiarize ourselves with some terms</p><ol><li><strong>Rust</strong>: Rust is a remarkable multi-purpose programming language that will be used to develop this smart contract.</li><li><strong>Solana Tool Suite</strong>: This includes the command-line interface–CLI.</li></ol><p>Now, let’s proceed.</p><p>To start with, we need to create a new anchor project:</p><pre>anchor init counterapp</pre><p>You should see the following files and folders in the project structure:</p><p>program: This is the directory or location of the Smart contract</p><p>test: The javascript test code is found here</p><p>migrations: The launch script</p><p>app: The frontend will be built here</p><p>Now, let’s find lib.rs file from the program directory</p><pre>declare_id!(&quot;Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS&quot;);</pre><pre>#[program]<br>pub mod counterapp {<br>    use super::*;<br>    pub fn initialize(ctx: Context&lt;Initialize&gt;) -&gt; ProgramResult {       <br>        Ok(())<br>    }<br>}<br>#[derive(Accounts)]<br>pub struct Initialize {}</pre><p>This is the most straightforward CLI program. It has a function initialize that, when called, successfully executes. The “initialize struct” defines the context of the “initialize” function.</p><p>After setting up our project, the next is to create our counter application. To achieve that, we must first set up an account to save our data. In case you’re wondering what the account’s purpose is, accounts are means for Solana Sealevel users to store and retrieve data.</p><p>Recall that we’ve defined two structs: the CounterAccount struct is our Account which comprises variables that will store our count.</p><pre>#[derive(Accounts)]<br>pub struct Create&lt;&#39;info&gt; {<br>    <br>    #[account(init, payer=user, space = 16+16)]<br>    pub counter_account: Account&lt;&#39;info, CounterAccount&gt;,<br>    <br>    #[account(mut)]<br>    pub user: Signer&lt;&#39;info&gt;,<br>    <br>    pub system_program: Program&lt;&#39;info, System&gt;,<br>}<br>#[account]<br>pub struct CounterAccount {<br>    pub count: u64,<br>}</pre><p>The Create struct is the instruction struct that defines the context for creating an account.</p><p>The # [account (…) ] defines the instructions and constraints for Anchor’s pre-processing while building context.</p><p>Next is to create our function:</p><pre>pub fn create(ctx: Context&lt;Create&gt;) -&gt; ProgramResult {<br>    let counter_account = &amp;mut ctx.accounts.counter_account;<br>    counter_account.count = 0;<br>    Ok(())<br>}</pre><p>The create the function will be our RPC request handler which takes the context previously created with Create struct.</p><p>Now that we’re done, let’s write the test function and launch our smart contract.</p><pre>import * as anchor from &#39;@project-serum/anchor&#39;;<br>import { Program } from &#39;@project-serum/anchor&#39;;<br>import { Counterapp } from &#39;../target/types/counterapp&#39;;describe(&#39;counterapp&#39;, () =&gt; {    const provider = anchor.Provider.env()<br>    anchor.setProvider(provider);    const program = anchor.workspace.Counterapp as Program&lt;Counterapp&gt;;    const counterAccount = anchor.web3.Keypair.generate();    it(&#39;Is initialized!&#39;, async () =&gt; {<br>        await program.rpc.create({<br>            accounts: {<br>                counterAccount: counterAccount.publicKey,<br>                user: provider.wallet.publicKey,<br>                systemProgram: anchor.web3.SystemProgram.programId,<br>            },<br>            signers: [counterAccount]<br>        } as any)<br>    });    it(&quot;Increment counter&quot;, async () =&gt; {<br>        await program.rpc.increment({<br>            accounts: {<br>                counterAccount: counterAccount.publicKey<br>            }<br>        } as any)<br>    })    it(&quot;Fetch account&quot;, async () =&gt; {<br>        const account: any = await<br>        program.account.counterAccount.fetch(counterAccount.publicKey)<br>        console.log(account.count)<br>    })<br>});</pre><p>Now, run the test.</p><pre>anchor test</pre><p>We can now launch the program after the test passes. Ensure that the solana-test-validator is running.</p><pre>anchor deploy</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9904e9590890" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/how-to-create-smart-contracts-in-solana-using-anchor-9904e9590890">How to Create Smart Contracts in Solana Using Anchor</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Selfish Mining is Detrimental to a Blockchain Network]]></title>
            <link>https://medium.com/@talktomaruf/why-selfish-mining-is-detrimental-to-a-blockchain-network-a044226d1eb6?source=rss-2669c475d893------2</link>
            <guid isPermaLink="false">https://medium.com/p/a044226d1eb6</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[mining]]></category>
            <dc:creator><![CDATA[Abubakar Maruf O.]]></dc:creator>
            <pubDate>Tue, 28 Jun 2022 08:38:54 GMT</pubDate>
            <atom:updated>2022-06-28T08:38:54.049Z</atom:updated>
            <content:encoded><![CDATA[<p>Mining activities have been integral to blockchain technology since its advent and widespread adoption. It revitalizes the decentralized characteristics of public blockchains where miners verify transactions and add them to a block of other immutable data in the distributed ledger.</p><p>Mining in the blockchain is a process of verifying transactions and recording or admitting verified transactions into a block. The blocks are then added to the blockchain’s existing chain of blocks. In addition, mining is also the process of creating new cryptocurrencies or tokens like bitcoin and altcoins. It is done by validators or verifiers called “miners.” Blockchain mining can be done individually as a single miner or in a group — pooled mining — and cloud mining.</p><p>The core reason for mining is to validate transactions on the blockchain before recording them and secure the blockchain network because the more the number of miners keeps increasing in a particular blockchain, the more it is secure and less susceptible to an attack — a 51% attack.</p><p>Blockchain mining has protocols that it follows depending on each blockchain’s architecture. The protocols can be proof-of-work — PoW — , proof-of-stake — PoS — or Delegated proof-of-stake — DPoS. The prominent protocol is the PoW, where miners are required to solve cryptographic puzzles by expanding their computing power.</p><h3>What Is Proof-of-Work?</h3><p>PoW is a consensus mechanism for validating transactions in a blockchain network. It entails solving cryptographic puzzles to win the right to fill the next block. Miners in a blockchain compete to solve this puzzle; whoever solves it first before others and publishes it wins the right to fill the next block.</p><p>All these, including filling the next block, are done to win the incentives — block reward — attached to adding a block from the transaction fees paid by users who initiate transactions.</p><p>Aside from fortifying the security architecture of the particular blockchain, PoW consensus also aims to forestall double-spending by ensuring that a cryptocurrency or digital token is not spent more than once to transact. This PoW consensus mechanism is adopted by Bitcoin, Ethereum, and other bigwigs in the blockchain industry.</p><h3>What Is Selfish Mining?</h3><p>Selfish mining is a scenario where a miner mines a new block but fails to publish it for other miners to see and add it to the chain of blocks on their ends. It is also called “Block withholding” because the miner withholds the valid block from others, restraining it to his copy of the blockchain alone.</p><p>Selfish mining is practically harbouring a private blockchain within a public blockchain. However, the withheld block will later be revealed by the miner. Still, this deceptive mining strategy could disrupt mining activities or lead to a 51% attack if done by a large group of miners.</p><p>If done successfully by a single or individual miner, other miners who had previously filled a block will lose their block reward to the selfish miner.</p><p>Let’s take a practical example of selfish mining.</p><p>Let’s assume there are five miners on a blockchain: Jerry, Rudolf, Chloe, Rolland, and Pete, assuming they all have equal hash rates — 20% each. All the miners are trustworthy, except for Rolland, who is in for personal aggrandizement. When miners find a block, they are expected to publish it to the chain so that it is distributed across all nodes.</p><p>All four miners stick to this except for Rolland. When Rolland discovers a block, he keeps it to himself as if nothing has happened.</p><p>Assuming the miners had previously mined 91,696 blocks collectively before Rolland started acting weird. While trying to discover the next block, Rolland finds it but keeps it from others. That makes two chains; the public chain and Rolland’s private chain, which is longer than the public chain. He’s now trying to extend his secret chain to form a private branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*zUlvj_26tkgC8xmZ" /></figure><p>As other miners are still attempting to find the 91,697th block, Rolland finds his 91,698th block, making his chain two blocks ahead of the public chain. If he keeps going with this pacing, he will stay ahead of the public chain. So, when others catch up, and they’re one block behind him, he publishes his secret chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/0*r1R1xfwPyzqn6ha6" /></figure><p>Since Rolland’s chain is longer than the public chain that his contemporaries were working on, his chain will overtake the public chain and be recognized because of the “longest chain rule.” The longest chain rule recognizes the chain with the most proof-of-work as the main or correct chain.</p><p>So, if a node discovers a chain with more accrued work, it will flip and commit mining power to this long chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*JlUEDlOjvL5YyBTp" /></figure><p>Now that Jerry, Rudolf, Chloe, and Pete have seen Rolland’s chain, they recognize it as the chain to follow. Therefore, any rewards the four would have earned from the snipped chain no longer exist since their chain is no longer recognized. On the other hand, Rolland earns all the rewards since he mined the blocks in the recognized chain.</p><p>However, there is a catch to this strategy; as Rolland was creating his secret chain, if Chloe, Pete, or any of the miners finds a block, then Rolland won’t be able to publish his secret blocks and have the longest chain. Instead, it will be a competition between the two branches since they have the same length.</p><p>So, whoever can create the longest chain between the public chain and Rolland’s secret chain wins or becomes the legitimate chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/0*9ZFeCqcPPptsfofq" /></figure><h3>The Threat of Selfish Mining to a Blockchain Network</h3><p>Selfish mining poses a single threat that could escalate if not curtailed. If miners pooled their computing power together to maximize their earnings from selfish mining, it could result in a node having a 51% hash rate or more.</p><h3>How Does This Pose Any Threat?</h3><p>Every PoW blockchain requires 51% of the nodes on its blockchain to be honest to validate a transaction and create a new block. If a single node controls this 51% hash rate, such a node can disrupt mining activities and pend transactions with a lesser gas fee.</p><p>Using the five miners above as an example, recall that a 20% hash rate is delegated to each of them. If Pete and Chloe pooled their computing power — hash rate — with Rolland such that his hash rate now increases to 60%, then Rolland will be in control of the blockchain because a 51% attack has just occurred.</p><p>Since his hash rate is greater than his contemporaries, his node will be faster; so he decides which transaction goes through and stalls whichever transaction.</p><p>Furthermore, Rolland can double-spend crypto that he has previously spent. With his newly increased hash rate, the decentralization of such blockchain has crumbled, and the ecosystem has suddenly become centralized.</p><p>However, the possibility of this is implausible because if any malfeasance is discovered, it will cause the price of the cryptocurrency to plummet and dwindle. This aftermath will also affect the value of miners’ digital assets, so they’ll choose to keep working honestly rather than pooling with a selfish miner.</p><h3>Conclusion</h3><p>Though selfish mining might not have occurred or been reported in any blockchain, as enthusiasts keep exploring further use cases of the technology, attackers are also becoming greedy and exploring schemes to exploit the novel technology.</p><p>However, one of the ways to forestall selfish mining from escalating is to designate threshold caps for mining pools on the network. This will prevent any selfish miner from outperforming other nodes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a044226d1eb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create Your NFT on Ethereum Blockchain]]></title>
            <link>https://coinsbench.com/how-to-create-your-nft-on-ethereum-blockchain-147c0d725372?source=rss-2669c475d893------2</link>
            <guid isPermaLink="false">https://medium.com/p/147c0d725372</guid>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Abubakar Maruf O.]]></dc:creator>
            <pubDate>Tue, 21 Jun 2022 16:42:56 GMT</pubDate>
            <atom:updated>2022-06-30T04:05:09.099Z</atom:updated>
            <content:encoded><![CDATA[<p>NFT is an acronym term for Non-fungible tokens. An NFT is a unique and special digital asset that is non-fungible — unequalled and unmatched. NFTs are unique and non-fungible because each NFT has a special or rare property or feature that is not present in other NFTs. This rarity feature applies to all NFTs. It is locked in a smart contract; this is why it is usually created or minted on blockchains that have a smart contract. One such blockchain is the Ethereum blockchain.</p><p>The Ethereum blockchain is a decentralized, permissionless blockchain with the additional function of a smart contract. Smart contracts are predefined conditions or terms of agreement embedded in programming codes that self-execute once the predefined conditions have been met. One of the several use cases of a smart contract on a particular blockchain extends to allowing other tokens to be built or created on the blockchain. This is why Ethereum can house other tokens being launched on its ecosystem. Such tokens can be fungible — ERC-20 — or Non-fungible — ERC-721.</p><h3>Distinguishing between Fungible and Non-fungible tokens</h3><p>Fungible and non-fungible tokens can be distinguished with two distinct features: exchangeability — fungibility — and amount — quantity.</p><h3>Fungible Tokens: Fungibility and Quantity</h3><p>Fungibility or exchangeability is the ability to exchange or substitute assets for another. For example, Kelly and George were both given separate $100 bills by their uncle. Since both bills represent the same value, they can be exchanged while still retaining their respective value. That is fungibility!</p><p>Now imagine if Kelly and George agreed to add their money together to buy a movie ticket for two.</p><p>Their total money is now $200, right?</p><p>Quantity or amount of fungible tokens can be added to have a greater amount while still having the money.</p><p>The ERC-20 tokens are the fungible tokens that can be exchanged for their kind or another token of its equivalent. ERC-20 token standard is exploited for the creation of fungible tokens. Examples of ERC-20 tokens include ETH, BNB, DAI, USDT, and USDC, among others.</p><h3>Non-fungible Tokens: Non-Fungibility and Quantity</h3><p>A non-fungible token — NFT — is a unique token that can’t be exchanged for another token. Likewise, you can’t add up NFTs to get a greater or higher quantity. Like you can’t exchange a sofa with a waste bin, you can’t also replace one NFT with another because each has its unmatched properties.</p><p>The Ethereum token standard that allows for the creation of NFTs on the Ethereum blockchain is the ERC-721 token standard. The ERC-721 tokens are non-fungible tokens that can’t be exchanged for another, i.e., a particular NFT can’t be exchanged with another NFT even if both NFTs were from a collection of a single creator. Examples of non-fungible tokens are Cryptopunks, Bored Ape, and Cryptokitties.</p><h3>ERC-721 Standard</h3><p>The ERC-721 standard applies a set of mechanisms for recognizing and engaging with Non-Fungible Tokens. The mechanism entails three layers: Core, Extensions, and Convenience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/0*tASeWXz0Nofn4pam" /></figure><p>The EIPs — Ethereum Improvement proposals — have three interfaces; IERC721, IERC721Metadata, and IERCEnumerable. For a contract to be ERC721 compliant, just the IERC721 is needed. However, all of them are implemented in ERC721.</p><p>The IERC is the token’s contract Interface, while ERC is the token’s contract implementation. The IERC interface has two subsets which are:</p><ul><li>Events</li><li>Functions</li></ul><p>The events category includes Transfer, Approval, and ApprovalForAll.</p><h3>The Functions are:</h3><p>balanceOf: Supplies the balance of NFTs in the owner’s account</p><p>ownerOf: Supplies the owner—address—of the given token ID</p><p>safeTransferFrom: Will transfer a particular NFT from one address to another having checked and ascertain that the recipient’s address can accept the NFT so that it is not lost or burn by sending it to the address.</p><p>transferFrom: Will transfer NFT from one address to another—using this function is not encouraged. If the recipient’s address is not from the approved address, it should either be approved through approve or setApprovalForAll.</p><p>approve: Will approve any other address to send NFT to from the owner’s address to any other approved address.</p><p>setApprovalForAll: Permits or prevents an operator—any address, primarily wallets, and exchanges—from sending NFTs from the owner&#39;s address to any other address.</p><p>getApproved: Return an address that NFTs can be transferred to for owners. If no address is set, return 0.</p><p>isApprovedForAll: Return true if the address is approved by the particular owner.</p><pre>pragma solidity ^0.4.20;</pre><pre>interface ERC721 /* is ERC165 */ {</pre><pre>event Transfer(address indexed _from, address indexed _to, uint256 indexed _tokenId);</pre><pre>event Approval(address indexed _owner, address indexed _approved, uint256 indexed _tokenId);</pre><pre>event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);</pre><pre>function balanceOf(address _owner) external view returns (uint256);</pre><pre>function ownerOf(uint256 _tokenId) external view returns (address);</pre><pre>function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes data) external payable;</pre><pre>function safeTransferFrom(address _from, address _to, uint256 _tokenId) external payable;</pre><pre>function transferFrom(address _from, address _to, uint256 _tokenId) external payable;</pre><pre>function approve(address _approved, uint256 _tokenId) external payable;</pre><pre>function setApprovalForAll(address _operator, bool _approved) external;</pre><pre>function getApproved(uint256 _tokenId) external view returns (address);</pre><pre>function isApprovedForAll(address _owner, address _operator) external view returns (bool);</pre><pre>}</pre><h3>Creating an ERC-721 Token — NFT — with OpenZeppelin and Truffle</h3><p>Before we can create or develop an NFT with OpenZeppelin library and Truffle we need to setup Truffle first:</p><pre>mkdir simple</pre><pre>truffle init</pre><pre>npm install openzeppelin-solidity</pre><p>Now, let’s create a new contract for our token:</p><pre>pragma solidity ^0.4.24;</pre><pre>import &quot;/openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol&quot;;</pre><pre>import &quot;/openzeppelin-solidity/contracts/ownership/Ownable.sol&quot;;</pre><pre>contract SIMPLEToken is ERC721Full, Ownable{</pre><pre>  constructor() </pre><pre>  ERC721Full(&quot;SIMPLE&quot;, &quot;SMPL&quot;)</pre><pre>  public {}</pre><pre>function mint(address to, uint256 tokenId) public onlyOwner {</pre><pre>   _mint(to, tokenId);</pre><pre>  }</pre><pre>function _mint(address to) public onlyOwner{</pre><pre>   mint(to, totalSupply().add(1));</pre><pre>  }</pre><pre>}</pre><p>From the above, we’re inheriting two contracts simultaneously; ERC721FULL and Ownable.</p><p>Ownable: With this contract, we’ll be able to manage ownership of our contract and also mint NFTs from the contract owner’s address only.</p><p>ERC721FULL: This is a standard implementation of the ERC-721 interface mentioned earlier. Let&#39;s have an internal look at this contract:</p><pre>pragma solidity ^0.4.24;</pre><pre>import &quot;./ERC721.sol&quot;;</pre><pre>import &quot;./ERC721Enumerable.sol&quot;;</pre><pre>import &quot;./ERC721Metadata.sol&quot;;</pre><pre>contract ERC721Full is ERC721, ERC721Enumerable, ERC721Metadata {</pre><pre>  constructor(string name, string symbol) ERC721Metadata(name, symbol)</pre><pre>    public</pre><pre>  {</pre><pre>  }</pre><pre>}</pre><p>Internally, ERC721FULL inherits 3 contracts — ERC721, ERC721Enumerable, and ERC721Metadata. Let’s focus on ERC721 to understand better how it works.</p><p>Before going through the main function one after the other, let’s understand are tokens are stored first:</p><pre>// Mapping from token ID to owner</pre><pre>  mapping (uint256 =&gt; address) private _tokenOwner;</pre><pre>// Mapping from token ID to approved address</pre><pre>  mapping (uint256 =&gt; address) private _tokenApprovals;</pre><pre>// Mapping from owner to number of owned token</pre><pre>  mapping (address =&gt; uint256) private _ownedTokensCount;</pre><pre>// Mapping from owner to operator approvals</pre><pre>  mapping (address =&gt; mapping (address =&gt; bool)) private _operatorApprovals;</pre><p>_tokenOwner: This mapping is required for the storage of the token against its owner. We can find out who owns a particular token ID by using this.</p><p>_tokenApprovals: This mapping is required for the storage of token ID against an address that has been approved by the token owner to transfer a token on behalf of the owner.</p><p>_ownedTokenCount: This mapping is required to determine the number of tokens an address holds. If this mapping is not created, we&#39;ll have to loop to get this token count, which consumes a lot of gas on EVM.</p><p>_operatorApprovals: Mapping of an owner and an operator—any address, primarily wallets and exchanges— to determine whether the owner has approved or not.</p><p>Now, we can go through the functions</p><p>balanceOf: This will return an address&#39;s balance. It verifies for a valid address first, and then uses _ownedTokensCount to return the token&#39;s count.</p><pre>function balanceOf(address owner) public view returns (uint256) {</pre><pre>    require(owner != address(0));</pre><pre>    return _ownedTokensCount[owner];</pre><pre>  }</pre><p>OwnerOf: Using the _tokenOwner mapping, this will return the owner address for a specific token.</p><pre>function ownerOf(uint256 tokenId) public view returns (address) {</pre><pre>    address owner = _tokenOwner[tokenId];</pre><pre>    require(owner != address(0));</pre><pre>    return owner;</pre><pre>  }</pre><p>approve: This authorizes an address to transfer a token on behalf of the owner. The function initially verifies whether the function was called by the owner or if the call was approved by the owner to send all tokens. If everything is correct, it will update _tokenApprovals</p><pre>function approve(address to, uint256 tokenId) public {</pre><pre>    address owner = ownerOf(tokenId);</pre><pre>    require(to != owner);</pre><pre>    require(msg.sender == owner || isApprovedForAll(owner, msg.sender));</pre><pre>_tokenApprovals[tokenId] = to;</pre><pre>    emit Approval(owner, to, tokenId);</pre><pre>  }</pre><p>safeTransferFrom: There are two similar functions with varying arguments. These functions internally call the transferFrom function has another essential task they perform. They verify whether or not the recipient’s address is authorized to get the token. This contributes to the token&#39;s security.</p><pre>function safeTransferFrom(</pre><pre>    address from,</pre><pre>    address to,</pre><pre>    uint256 tokenId,</pre><pre>    bytes _data</pre><pre>  )</pre><pre>    public</pre><pre>  {</pre><pre>    transferFrom(from, to, tokenId);</pre><pre>    require(_checkOnERC721Received(from, to, tokenId, _data));</pre><pre>  }</pre><p>transferFrom: This is the primary function of transferring a token from a particular address to another. It does the following:</p><ol><li>Determine whether the token is owned by called, or approved to the caller. It also verifies if an address is valid.</li><li>Clear approval, remove existing ownership and lower the current owner’s token count.</li><li>Add a token to the recipient’s account and increase the recipient’s token count.</li></ol><pre>function transferFrom(</pre><pre>    address from,</pre><pre>    address to,</pre><pre>    uint256 tokenId</pre><pre>  )</pre><pre>    public</pre><pre>  {</pre><pre>    require(_isApprovedOrOwner(msg.sender, tokenId));</pre><pre>    require(to != address(0));</pre><pre>_clearApproval(from, tokenId);</pre><pre>    _removeTokenFrom(from, tokenId);</pre><pre>    _addTokenTo(to, tokenId);</pre><pre>emit Transfer(from, to, tokenId);</pre><pre>  }</pre><p>setApprovalForAll: This function authorizes the address to send all tokens on the owner&#39;s behalf. It checks to see if the called and to addresses are different before updating the _operatorApprovals mapping.</p><pre>function setApprovalForAll(address to, bool approved) public {</pre><pre>    require(to != msg.sender);</pre><pre>    _operatorApprovals[msg.sender][to] = approved;</pre><pre>    emit ApprovalForAll(msg.sender, to, approved);</pre><pre>  }</pre><p>isApprovedForAll: This function verifies whether the owner has permitted the operator to transfer tokens or not.</p><pre>function isApprovedForAll(</pre><pre>    address owner,</pre><pre>    address operator</pre><pre>  )</pre><pre>    public</pre><pre>    view</pre><pre>    returns (bool)</pre><pre>  {</pre><pre>    return _operatorApprovals[owner][operator];</pre><pre>  }</pre><p>getApproved: Returns the approved address for a certain token ID.</p><pre>function getApproved(uint256 tokenId) public view returns (address) {</pre><pre>    require(_exists(tokenId));</pre><pre>    return _tokenApprovals[tokenId];</pre><pre>  }</pre><h3>Conclusion</h3><p>We just used Solidity on Ethereum to create a Non-Fungible Token. NFTs mostly serve as collectibles, but they can also be used to represent real estate, artwork, certifications, and loans, among other things. NFTs are used as items and collections in gaming, metaverse, and other platforms.</p><p>Isn’t it fun?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=147c0d725372" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/how-to-create-your-nft-on-ethereum-blockchain-147c0d725372">How to Create Your NFT on Ethereum Blockchain</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bitcoin Taproot: A Multifarious Upgrade to the Bitcoin Ecosystem]]></title>
            <link>https://medium.com/@talktomaruf/bitcoin-taproot-a-multifarious-upgrade-to-the-bitcoin-ecosystem-a5a19261cac7?source=rss-2669c475d893------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5a19261cac7</guid>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Abubakar Maruf O.]]></dc:creator>
            <pubDate>Tue, 21 Jun 2022 16:41:03 GMT</pubDate>
            <atom:updated>2022-06-21T16:41:03.059Z</atom:updated>
            <content:encoded><![CDATA[<p>Bitcoin is the first of its kind digital currency, birthed in 2008. The word “Bitcoin” is interchangeably used for the Bitcoin blockchain and its native cryptocurrency — BTC. The bitcoin blockchain is a permissionless and decentralized public ledger that records all transactional activities happening on the bitcoin blockchain.</p><p>In the course of transactions, there’s a need to verify transactions before they are added to a block to form a blockchain of transaction data. This verification or validation of transactions is done by validators called “miners.” The reward for mining activities by miners is paid in BTC — bitcoin cryptocurrency, the native cryptocurrency of the bitcoin blockchain — to incentivize validators in the ecosystem.</p><p>Being the first of its kind that paved the way for others, Bitcoin has had a series of hiccups in its ecosystem ranging from the trilemma problem to a series of hard forks and other hurdles it has experienced. With all these hiccups the network has undergone, it still stands as the foremost cryptocurrency with the highest market cap among its contemporaries.</p><p>Being the earliest and foremost doesn’t mean Bitcoin is flawless; it still has flaws. One of these flaws is the issue of privacy. Bitcoin hasn’t been able to overcome this since it operates a permissionless public blockchain where every Jack can monitor all transactions.</p><p>In order to mitigate this privacy issue that has been a significant concern within its community, core contributors like P. Wuille, J. Nick, and T. Ruffing submitted a draft BIP — Bitcoin Improvement Proposal.</p><h3>Why the need for this Improvement?</h3><p>Remember you approve withdrawals from your bank account by appending your signature to a designated paper slip. Your signature is your assertion that you’re approving such a transaction. Similar to that in the crypto-verse is the Digital signature. As against the previously used algorithm, which makes transactions visible to all users, the improved or newly implemented algorithm will secure complex transactions by making them seem similar to simple transactions. This is another privacy shield.</p><h3>What is Digital Signature?</h3><p>A digital signature is a user’s way of signing digital transactions of cryptocurrencies using their private keys. Before the implementation of Taproot in November 2021, Bitcoin used the ECDSA — Elliptic Curve Digital Signature Algorithm — to generate keys and also verify transactions. But with the advent of Taproot, a new dawn has been ushered in where Schnorr signatures will take over from ECDSA.</p><p>Just like Bitcoin implemented the SegWit in 2017 to enhance transaction capacity by fitting more transactions in one block, the Taproot has also been implemented to solve the issue of privacy and other related concerns on the Bitcoin network by providing another layer of anonymity to its users.</p><h3>What is the Taproot Upgrade?</h3><p>The Taproot upgrade was birthed from three BIPs resulting in a soft fork of Bitcoin’s ecosystem. This soft fork is nothing but an upgrade of the network’s software. Bitcoin Core developer Greg Maxwell initially proposed the Taproot idea in January 2018. It was later incorporated into the Bitcoin Core library in October 2020. The Taproot’s adoption requires consensus rules from node operators before it can be integrated to implement the update fully. It was officially launched on November 14, 2021, after 90% of miners voted in support. The BIPs are:</p><ul><li>BIP 340 (Schnorr Signatures)</li><li>BIP 341 (Taproot)</li><li>BIP 342 (Tapscript)</li></ul><h3>BIP 340 — Schnorr Signatures</h3><p>The Schnorr signature is a lightweight cryptographic signature developed by Claus Schnorr, a German mathematician-cum-cryptographer. Unlike the ECDSA, the Schnorr signatures validate transactions faster in a more secure way on the Bitcoin blockchain. In addition to enhanced security, the signatures are also efficient in generating short signatures and offer lower fees and flexible multi-sig transactions.</p><p>Though the Schnorr signatures have been in existence during the advent of Bitcoin, Satoshi Nakamoto had to choose the ECDSA over Schnorr for two reasons:</p><ol><li>The ECDSA has been widely used and well-understood to be secure, concise, and open-source, fitting into what was needed.</li><li>Claus Schnorr patented his Schnorr signatures, which later expired after Bitcoin was launched in 2008.</li></ol><p>The Schnorr signature is laden with features that enable faster verification of transactions and better security. The key features are:</p><ul><li>Key Aggregation</li><li>Signature Aggregation</li><li>Batch Validation</li><li>Signature Hash</li><li>Remarkable Security</li></ul><h3>Key and Signature Aggregation</h3><p>Key and Signature Aggregation made the gathering of public keys and signatures feasible. This is synonymous with verifying multiple transactions once by gathering all the transactions into a single collection. For example, if you have a transaction with 23 people, you’ll need 23 signatures and 23 public keys; so, with the number of people involved, a validator will have to validate each key and signature one after the other. But with the advent of Schnorr signatures, the key and signature aggregation will assemble or gather all the 23 keys into just one key, and all the 23 signatures will be assembled into one signature. The validator will now validate the transaction once since they’ve been assembled into a single public key and signature. This will reduce the computational stress and the fee it may accrue.</p><h3>Batch Validation</h3><p>The batch validation stems from the key and signature aggregation, as explained above, where multiple transactions are assembled and batched to be validated instead of validating them one after the other. This batch validation results in fewer resources being expended for validation purposes and makes other ecosystem transactions seamless and faster.</p><h3>SigHash and Remarkable Security</h3><p>All transactions usually have a SigHash — signature hash — applied to them. Once it has been applied, the transactional data becomes immutable — fixed and unchangeable. If the information is tampered with or modified, the transaction becomes invalid because the SigHash will be destroyed. Initially, a small piece of information can be modified through “malleability” — which is a security risk — yet the transaction will still be valid. But the Schnorr signatures lack malleability.</p><p>Signature malleability” refers to changing a transaction’s signature before it is confirmed. It makes the transaction seem as if it never occurred. This exposes Bitcoin to the infamous double-spending problem, which might jeopardize the distributed ledger’s integrity.</p><p>The Schnorr signatures accomplish their remarkable security via the aggregation process.</p><p>How?</p><p>On-chain profiling will not be able to distinguish between multisig and single-signature transactions, allowing for greater anonymity. This is how complex transactions will look like simple transactions.</p><p>Isn’t that remarkable!</p><h3>BIP 341 — Taproot</h3><p>The Taproot upgrade was themed from this part of the BIPs. The Taproot relies on the 2017 SegWit upgrade to scale the volume of transaction data on the Bitcoin ecosystem using the Merkelized Alternative Script Tree (MAST).</p><p>Since public and private keys are used to encrypt transactions on the Bitcoin network, transactions are complex. Any spender must provide a signature to prove their ownership of the asset they are about to spend in their wallet.</p><p>The MAST contracts the volume of scripts and verification required to release bitcoin and presents a single MAST transaction that will represent multiple or several scripts. So, to spend your bitcoin, you only need to supply your script and the proof that your script is stored in the Markle root. This significantly lowers the volume of data that is stored on the network. Aside from enhancing the scalability and efficiency of the Bitcoin blockchain, it also provides Bitcoin users extra anonymity.</p><h3>BIP 342 — Tapscript</h3><p>The Tapscript can be regarded as a coding language update to the Bitcoin script to make room for the other two BIPs. It is a set of “opcodes” — strings of codes that execute commands on the Bitcoin protocol that have been updated to accommodate the changes birthed by Taproot.</p><p>The Bitcoin script initially had a size limit of 10,000-byte, which has been replaced with larger scripts or Taproot contracts. The Tapscript also removes the “opcodes” cap, ushering in more flexibility in terms of features and coding, making the Bitcoin network support and developing smart contracts in the near future.</p><h3>Benefits of the Taproot Upgrade to the Bitcoin Network</h3><ol><li>It enhances the blockchain scalability by lessening the volume of data that needs to be transferred and recorded on the blockchain;</li><li>Cheaper transaction fees;</li><li>TPS rate becomes higher; since there are more transactions per block;</li><li>Ends signature malleability;</li><li>Potential smart contract capability.</li></ol><h3>Conclusion.</h3><p>The advent of the Taproot upgrade has levelled the playing ground for Bitcoin to compete with other blockchains. In conjunction with the perks it brought, the Taproot upgrade birthed a new chapter that could accommodate smart contracts. This primary tool defines the extended use cases of the Bitcoin blockchain like the possibilities of DeFi, NFTs, and more, making the Taproot upgrade a multifarious upgrade.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5a19261cac7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is Impermanent Loss?]]></title>
            <link>https://medium.com/@talktomaruf/what-is-impermanent-loss-4ed5e35f0f0f?source=rss-2669c475d893------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ed5e35f0f0f</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[liquidity-pool]]></category>
            <category><![CDATA[impermanent-loss]]></category>
            <dc:creator><![CDATA[Abubakar Maruf O.]]></dc:creator>
            <pubDate>Fri, 17 Jun 2022 11:56:17 GMT</pubDate>
            <atom:updated>2022-06-17T11:56:17.630Z</atom:updated>
            <content:encoded><![CDATA[<p>Decentralized Finance — DeFi — is one of blockchain technology’s novel financial use cases. It is a developed financial ecosystem that offers conventional financial services without a governing/central authority or intermediaries.</p><p>Virtually all financial services provided by the traditional system of banking — which reflects Centralized Finance — are available on DeFi with a perk of secured seamless transactions without downtime. Decentralized exchanges — DEXes — are platforms that allow the trading or exchanging of cryptocurrencies without the interference of a third party. The features and solutions of DeFi exist on DEXes which can be accessed via Dapps — Decentralized applications. There two primary forms of DEX are:</p><ul><li>Order Book-based DEXes The Order book-based DEXes are DEXes that allow users to buy and sell orders at their preferred or chosen prices. It can be On-chain or off-chain order book, but the latter because trades stay off-chain until they are paired and executed. Notable DEXes like dYdX, Serum, and DeversiFi use this model.</li><li>Liquidity Pool-based DEXes These are DEXes that use the Automated Market Makers — AMMs — algorithm to determine the token’s price. Such DEXes are built to execute orders automatically using the smart contract; this is known as P2C — peer-to-contract — protocol. This P2C protocol enables users to transact directly with the smart contract, which already has its predefined asset prices.</li></ul><h3>But where did the smart contract get its liquidity from?</h3><p>Who is funding these DEXes?</p><p>Think no further; the answer to all these is Liquidity Pool.</p><h3>What is Liquidity Pool?</h3><p>Just as it sounds, a liquidity pool is a pooled or contributed liquidity — asset. It represents a collection or combination of gathered crypto assets deposited by investors — Liquidity providers — and locked in a smart contract to be available for exchange purposes as liquidity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/0*V9x1r2zzkViKXmqr" /></figure><p>The liquidity pool is the heart of DEXes that uses the AMM protocol to execute trading. Just like the body is useless without the heart that pumps blood, DEXes is also useless without the pool because it fuels the functionality of the exchanges.</p><h3>But what exactly is the AMM?</h3><p>Automated Market Makers — AMMS — allows decentralized exchange users to directly with the smart contract. It allows users to create a market by them initiating a P2C exchange. Dealing with the contract means users carry out exchanges of crypto tokens with the pegged price of the smart contract. The AMM uses a mathematical formula embedded in its smart contract to determine prices for assets. The general formula used is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/167/0*rlR65lTF9w31j9Xs" /></figure><p>Where:</p><ul><li>x = amount of token A</li><li>y = amount of token B</li><li>k = constant product of the pool</li></ul><p>Normally, a pair of assets is usually contributed to a pool; the particular pair provided by LPs is used to facilitate exchange. For example, a liquidity pool of ETH/USDT will only facilitate ETH/USDT exchanges.</p><p>The AMMs have two generations, namely:</p><ul><li>First Generation: Constant Function Market Makers (CFMM), which comprises Constant Product Market Maker(CPMM), Constant Sum Market Maker (CSMM), and Constant Mean Market Maker (CMM)</li><li>Second Generation: This comprises Hybrid Automated Market Maker (HAMM), Dynamic Automated Market Maker (DAMM), Proactive Market Maker (PMM), and Virtual Automated Market Maker (VAMM).</li></ul><p>Each of the above-mentioned market makers is peculiar to several DEXes platforms, and they have their limitations, especially the first generation. The second generation is a modification of the first generation to mitigate the limitations encountered with the first generation of AMM.</p><p>One of the limitations of the Constant Function Market Maker is Impermanent Loss.</p><p>So, what exactly is this Impermanent Loss?</p><p>When you deposit tokens to a liquidity pool and the token’s price goes bearish or bullish after some time leading to a loss, the money lost dues to these events is known as Impermanent Loss. It results from the distinctive value over time between depositing your token to AMM and holding on to it in your wallet. It occurs when the value of your deposited assets changes from when you deposited them.</p><h3>How Impermanent Loss Occur</h3><p>Since the liquidity pool finances DEXes, Impermanent loss is only applicable to LPs — Liquidity providers — contributing to a liquidity pool. When LPs commit tokens A &amp; B to a liquidity pool, it will be available for users to exchange token A with token B or vice-versa.</p><p>From the formula x * y = k, x represents the amount of token A while y represents the amount of token B in the pool. This formula intends to create a price range for both tokens with respect to their quantities available in the pool. To maintain constant k, when the supply of either token increases, the supply of its counterpart in the pool must decrease.</p><blockquote>For example:</blockquote><blockquote>Assuming token A is ETH and token B is BUSD with a 50/50 ETH/BUSD pool.</blockquote><blockquote>If a user exchanges or buys BUSD with ETH, the number of BUSD in the pool decreases while the number of ETH increases. This, in turn, will make BUSD go bullish and ETH becomes bearish because the supply of BUSD has dropped while the supply of ETH has been increased. This event opens the arbitrage window for arbitragers to buy the cheaper ETH from such an exchange and sell at a higher price on another exchange platform.</blockquote><p>For that, if LPs who committed the bearish token decide to withdraw their portion from the pool, they’ll be at a loss because the value of their token has dropped. This loss is termed Impermanent or Temporary loss. It is temporary because the market can readjust so that the value returns to its initial state. But LPs should pull out without waiting for re-balance; then, the loss will be permanent.</p><p>As LPs, you withdraw the same amount of token deposited, but its worth to the corresponding token would have dropped.</p><p>What if the worth eventually increases?</p><p>In such a case, there’s no impermanent loss.</p><h3>How to Calculate Impermanent Loss</h3><p>Before we can calculate the impermanent loss of any LP, we must first determine the LP’s percentage share.</p><blockquote>Imagine a Bruno has 7 ETH and intends to contribute liquidity to a 50/50 ETH/BUSD pool. He has to deposit 7 ETH and 13,020 BUSD — assuming 1 ETH = 1,860 BUSD.</blockquote><blockquote>If the total asset value of the pool is 159,960 BUSD (43 ETH and 79,980 BUSD), his percentage share can be calculated as follows:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*ljw86e82neV2rhgE" /></figure><p>Where VoCA = Value or worth of Committed Assets</p><p>VoPA = Value or worth of Pooled Assets</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/0*6RCjFEhy5KFnI4Mq" /></figure><p>Therefore, Bruno’s share of the pool is 16.3%. This also means the percentage of Bruno’s assets in the liquidity will be his percentage share when he wants to withdraw his asset from the pooled liquidity.</p><p>So when LPs deposit their assets to a pool, they will get the liquidity pool’s tokens. These tokens are based on LPs’ share of the pool, and they will be used to withdraw their share or percentage of the pooled asset any time they want to.</p><p>LPs are prone to impermanent loss when their deposit’s value drops compared to its value before or at the point of making the deposition.</p><h3>So how do we calculate Impermanent Loss?</h3><p>Using Bruno’s example above, where he deposited 7 ETH and 13,020 BUSD when 1 ETH = 1,860 BUSD at the time of deposit. Assuming the price of ETH doubles where 1 ETH = 3,720 BUSD. Since the AMM model adjusts the pool using formulas, the commonly used formula is the constant product formula which goes thus:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/0*0yoKD1CuOkctAV5E" /></figure><p>Using Bruno’s figure, 43 ETH and 79,980 BUSD with the above constant product formula, we have:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/0*dlNb-0hxhrjZCBz0" /></figure><p>ETH price in the pool can be obtained using the formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/0*IvdWSL-3Tuq1SGh3" /></figure><p>Now that ETH price has doubled to 1 ETH = 3,720 BUSD, the crypto liquidity and token liquidity can be calculated using:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*7n8bcjcImSKp6eKU" /></figure><p>Using the new price of 1 ETH = 3,720 BUSD</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/0*uERbR5i-CklCxNzx" /></figure><p>The above calculation can be verified using the constant product formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*kZn3EUeBznppa_IP" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/0*TZkoO2gOd2QTLXXB" /></figure><p>Now that we have the equivalent values for the new price of ETH/BUSD, if Bruno wishes to withdraw his assets from this pool, he’ll exchange his LP tokens for his 16.3% share of the pool. His percentage share will be withdrawn from each asset in the pool with respect to the updated amounts i.e.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/0*DKfD2G_FqRE7egtC" /></figure><p>Now, the sum of assets withdrawn = [(4.86489465 ETH <em>*</em> 3,720 BUSD) + 18,097.408 BUSD]</p><p>= 36,194.816 BUSD</p><p>Assuming Bruno did not participate in this liquidity pool, his original 7 ETH alone would have earned him [7 ETH * 3720 BUSD] = 26,040 BUSD</p><p>In addition to his 13,020 BUSD, his total assets would have been worth 39,060 BUSD i.e.</p><p>26,040 BUSD + 13,020 BUSD = 39,060 BUSD</p><p>This difference that occurs due to how the AMM manages the asset ratio is known as Impermanent Loss. From the concluded example, Bruno’s loss is:</p><p>39,060–36,194.816 BUSD = 2,865.184 BUSD</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/0*NRjdTsL-vuzXbsxM" /></figure><p>Impermanent Loss can also be calculated using:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/0*X3cKcDZtAAmXv2SH" /></figure><h3>Conclusion</h3><p>Impermanent loss is a temporary loss. If the AMM could readjust the volatility of crypto such that the value goes back to how it was during pooling, no loss will be recorded. But if LPs pull out their asset in such a dwindling market, the loss will be permanent.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ed5e35f0f0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Market Makers: What You Need to Know]]></title>
            <link>https://medium.com/@talktomaruf/automated-market-makers-what-you-need-to-know-2bc281adea1b?source=rss-2669c475d893------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bc281adea1b</guid>
            <category><![CDATA[automated-market-maker]]></category>
            <dc:creator><![CDATA[Abubakar Maruf O.]]></dc:creator>
            <pubDate>Fri, 17 Jun 2022 11:54:12 GMT</pubDate>
            <atom:updated>2022-06-17T11:54:12.376Z</atom:updated>
            <content:encoded><![CDATA[<p>The advent of DeFi is perpetually becoming a broader gateway to newer use cases in the crypto world. Even naysayers that initially thought DeFi to be an overhyped aspect of finance or a bubble that will fade away are biting their fingers for not joining the ride early.</p><p>Decentralized finance hitherto has kept its promise of decentralization in the financial system by disintermediating the giant centralized finance behemoths or intermediaries in the financial ecosystem as it portrays. No doubt, you can conduct P2P financial transactions on DeFi without interference from any party.</p><p>What if there is no one to trade with?</p><p>Although trading is 24/7 on DeFi, there’s a protocol yet to be fully exploited by many users; or rather not widely known in DeFi. The protocol runs on a P2C — peer-to-contract — protocol where you deal directly with the smart contract (a self-enforcing automated strings of code- chiefly written in Solidity).</p><p>Do you fear that a smart can outsmart you?</p><p>A smart contract is a self-executing and predefined set of rules encoded in a computer programing to take action when the predefined condition has been met. It aims to create a trustless ecosystem where you have to trust the smart contract to act unbiased, favoring each party in a transaction.</p><p>So, if you can trust a smart contract for a favorable transaction, you should trust it that it can’t con you.</p><p>The protocol that allows users to transact directly with the smart contract is none other than the Automated Market Maker — AMM.</p><h3>What is an Automated Market Maker?</h3><p>AMM is a decentralized exchange protocol — DEX — allowing users to deal directly with the smart contract. It relies on a mathematical algorithm to peg a price for assets. AMM is the DeFi version of the conventional “Order book” known with CEXes — centralized exchanges which use the matching engine to match orders.</p><p>The order book depicts a list of buying and selling orders for security, including the order history. It is developed to use smart contracts to mathematically set a price for assets.</p><p>Rather than using the conventional order book, AMM uses a pricing algorithm or formula to price assets. The formula is:</p><blockquote>x * y = k</blockquote><p>“x and y” are the amounts of respective tokens in liquidity, while constant “k” is the total amount of liquidity in the pool, which must always remain constant.</p><blockquote>The above formula varies for each kind of AMMs protocol, as known with different platforms that utilize AMM like Bancor, Uniswap, Curve, and their ilk.</blockquote><p>Before delving into the kinds of AMM, let’s take a brief dive into the liquidity pool.</p><h3>What is Liquidity Pool?</h3><p>Liquidity generally refers to the seamless conversion of something — preferably an asset — to cash. In the crypto world, liquidity is the easiness of exchanging a token with another. On the other hand, a pool can be regarded as a gathering of entities or corporations formed to transact a particular or promote their common interest.</p><p>So, a liquidity pool refers to a pool or collection of crypto assets locked in a smart contract to enable trading crypto assets by providing users with the liquidity needed. It is the spine of DEX platforms where AMM is deployed to allow for users to become market makers.</p><blockquote>Investors who pool their assets together for mutual benefits are known as Liquidity providers — LPs. They contribute a corresponding amount of two tokens — a stablecoin and any other unstable cryptocurrency or any pair of unstable cryptos — to a pool.</blockquote><h3>How Do LPs Earn Interest From Their Pooled Assets?</h3><p>LPs are understandably the financers of AMM, and they earn interest via liquidity mining. By contributing their crypto asset to the pool, LPs earn interest from the trading fees charged to traders who trade within the pool.</p><p>Earnings are usually proportional to their contribution to the pool, i.e., they earn with respect to their share in the pool. For example, if a liquidity provider contributes 10% of the liquidity, such an LP will always get 10% of each trading fee.</p><h3>Types of Automated Market Maker</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/0*c9j5yjyFK6R2x7H0" /></figure><p>There are two generations of the AMM:</p><ul><li>First Generation: Constant Function Market Makers — CFMMs.</li><li>Second Generation</li></ul><h3>Constant Function Market Makers — CFMMs.</h3><p>This is the first generation of AMM, where exchanges are established on a constant function such that the total asset or token reserved for trading pairs — liquidity pool — must remain constant in the smart contract where it is locked. Examples of CFMMs are:</p><h3>Constant Product Market Maker — CPMM.</h3><p>This model of CFFMs is established on the general algorithm x * y =k, which sets a range of prices for the paired tokens according to the quantities of each token available in the liquidity. If the supply of token x increases, the collection of token y must fall, and vice versa.</p><p>As the case may be, this simultaneous rise and fall of tokens are to sustain the constant k, which is the total amount of liquidity in the pool. When plotted, the result of this rise and fall is hyperbola such that liquidity is invariably available at ever-increasing prices that approach infinity on both ends. This model is notable with Bancor and also used by Uniswap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/0*cahf8gM2OTJ2ct8I" /></figure><h3>Constant Sum Market Maker (CSMM)</h3><p>This model is established on the formula x + y=k. This creates a straight line when plotted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/0*KYUEPqaMvlcluIZt" /></figure><p>If the off-chain reference price between tokens x and y is not 1:1, two interwoven events are bound to happen:</p><ul><li>The token with the higher quantity in the pool will be cheaper than the other token, and its price will go bullish. This will open an arbitrage window for arbitragers who will drain the cheaper token.</li><li>In the course of arbitrage, the cheaper token side of the pool will fall because all liquidity will shift to the other asset, leaving no liquidity for traders anymore.</li></ul><p>The above events are why this model is hardly used. CSSM is suitable for trades with zero price impact but does not offer unlimited liquidity.</p><h3>Constant Mean Market Maker (CMMM)</h3><p>Balancer first introduced this model; it allows the development of AMMs with more than two tokens and weightings other than the conventional 50/50 distribution. Each reserve’s weighted geometric mean remains constant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/0*SdFqfac0a5hBD1K8" /></figure><p>Equation i is applicable for a liquidity pool with three tokens, while equation ii applies for four tokens. This facilitates swaps between any pool&#39;s assets and allows for varying exposure to different assets in the pool.</p><h3>Advantages of Constant Function Market Makers</h3><ul><li>Fast and seamless exchange.</li><li>It enables traders to determine the price of a token without relying on third parties.</li></ul><p>Traders do not need a cumbersome plan to make trades because they obtain the same price by participating all at once as they would from a series of modest trades.</p><h3>Limitations of Constant Function Market Makers</h3><ul><li>Low/Limited capital power.</li><li>Complex financial risks like slippage, impermanent loss, short volatility, long volatility, etc.</li></ul><h3>What is Slippage?</h3><p>Slippage is the discrepancy between the projected price of an order and the actual price when the order is eventually executed. The volatility of cryptocurrency causes crypto tokens to waver based on trading activities and volume. The slippage percentage indicates how much a particular asset’s price has changed.</p><h3>What is Impermanent Loss?</h3><p>An Impermanent loss is a gross difference between the values of paired crypto tokens in AMM’s liquidity pool. It is due to the contrasting value over time between depositing tokens in AMM and simply holding the tokens in your wallet. For instance, when you contribute to a pool of liquidity by depositing tokens, and the price of such tokens changes after a few minutes, hours, or days, the sum of money lost due to such changes is referred to as impermanent loss.</p><h3>Second Generation of AMM</h3><p>The Second Generation of AMMs is a series of novel projects with innovative blueprints that aim to address the limitations of the first generation of AMM.</p><p>They include:</p><ul><li>Hybrid Automated Market Makers (HAMM)</li><li>Dynamic Automated Market Makers (DAMM)</li><li>Proactive Market Makers (PMM)</li><li>Virtual Automated Market Makers (VAMM)</li></ul><h3>Hybrid Automated Market Makers (HAMM)</h3><p>Hybrid automated market makers are also termed Hybrid CFMM because it incorporates diverse functions and parameters to achieve certain features like reduced price impact for traders and reduced risk exposure for LPs.</p><p>HAMM uses an exchange rate curve that is generally linear and becomes parabolic only when the liquidity pool is pushed to its limits, allowing for extremely low price-impact trades. Because capital is used more efficiently, LPs earn more in charges — though on a reduced fee per-trade basis — yet arbitragers still benefit from rebalancing the pool.</p><p>An example of HAMM is the Curve finance AMMs which incorporate both CPMM and CSMM. Curve AMMs use an advanced formula to incorporate a CPMM and a CSMM to produce deeper liquidity pockets that reduce price impact within a specified range of trades.</p><p>The outcome is a hyperbola curve — blue line — with a linear exchange rate for most of the price curve and exponential prices near the outer bounds of the exchange rate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/0*37F7lDTsCqPkyDNw" /></figure><p>Curve finance lets users make low-cost swaps between tokens with a generally stable 1:1 exchange rate. This indicates that its solution is primarily intended for stablecoins.</p><h3>Dynamic Automated Market Makers (DAMM)</h3><p>DAMM incorporates multiple dynamic variables into its formula to create a more substantial market maker that accommodates changing market conditions. Summarily, DAMM uses real-time price feed to ceaselessly and automatically adjust the pool price to the market price, giving no room for arbitragers.</p><p>An example of DAMM use cases is its integration in Sigmadex, which uses price feeds from Chainlink, alongside estimated volatility, to help distribute liquidity dynamically along the price curve. DAMM makes Sigmadex flexible.</p><p>Sigmadex can concentrate liquidity near the market price during low volatility to improve capital efficiency, and then expand it during high volatility to protect traders from impairment loss.</p><h3>Proactive Market Maker (PMM)</h3><p>PMM is a highly configured algorithm with active price discovery. This algorithm is adopted by DODO, which is capable of anticipating market conditions and proactively altering parameters such as asset ratio and curve slope, resulting in DODO pools that are flexible and adaptable for various use cases.</p><p>The DODO’s PMM model can be configured to use external price oracles to minimize impermanent loss and achieve greater capital efficiency.</p><p>DODO’s PMM uses the formula below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/0*JABvQEBxOIbUfAGB" /></figure><ul><li>B = Base token (ask- side liquidity)</li><li>Q = Quote tokens (bid-side liquidity)</li><li>B0 = Original base tokens</li><li>Q0 = Original quote tokens</li><li>K = Configurable pool metric as mid-price</li><li>Pa = Price of token A</li><li>Pb = Price of token B</li></ul><h3>Virtual Automated Market Makers (VAMM)</h3><p>Virtual Automated Market Maker is another novel type of AMM that extends its use case beyond token swaps to derivatives like perpetual contracts. Recall that the AMM has to do with token swap in DEXes; in the case of VAMMs, virtual assets, otherwise known as synthetic assets, are swapped instead of real tokens because there are no real tokens in the VAMMs.</p><p>Traders can only make leveraged trades based on collateral held in a smart contract. Rather than trading underlying assets, users trade synthetic assets and access the price movement of a wide range of crypto assets.</p><p>Users holding onto an open position in synthetic assets are prone to having their collateral liquidated should the price swing against them. The concept of VAMMs is to reduce price impact and impermanent loss and expose single tokens to synthetic assets.</p><h3>Conclusion</h3><p>AMM sought to offer a modernized order book on the decentralized ecosystem. As its use cases were being unraveled, it exhibited a perpetual development that gave rise to the first and second generations of AMM.</p><p>The second generation of AMM addresses the limitations of the first generation by trying to mitigate price impact and impermanent loss. In a particular case, it cancels out impermanent loss.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bc281adea1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeFi — the Solution to Centralized Finance]]></title>
            <link>https://medium.com/@talktomaruf/defi-the-solution-to-centralized-finance-9163e837e75b?source=rss-2669c475d893------2</link>
            <guid isPermaLink="false">https://medium.com/p/9163e837e75b</guid>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Abubakar Maruf O.]]></dc:creator>
            <pubDate>Fri, 17 Jun 2022 11:52:23 GMT</pubDate>
            <atom:updated>2022-06-17T11:52:23.532Z</atom:updated>
            <content:encoded><![CDATA[<h3>DeFi — the Solution to Centralized Finance</h3><p>Since time immemorial, the digital world has offered permanent solutions to humanity’s livelihood. It has either proffered solutions to many problematic endeavors or paved a better and easier way. This perpetual savior of the digital world has made economic researchers project the theory of “computers taking over human jobs,” which has been peddled for some time now.</p><p>According to a report published by the <a href="https://www.weforum.org/reports/the-future-of-jobs-report-2020?ref=hackernoon.com">World Economic Forum</a> in 2020, about 85 million jobs will be replaced by AI machines by 2025, and at the same pace, another 95 million new jobs will be created the same year. As weird as this sounds, it’s still good news.</p><p>DeFi is a major financial breakthrough that validates the opinion that computers and technology are taking over and might even take over quicker than projected.</p><p>How?</p><p>Have you ever imagined you could conduct financial transactions without banks and allied financial institutions in the last two decades or even in the last decade?</p><p>Have you ever thought of the possibility of sending a sizeable amount of money without being flagged?</p><p>Have these and many more been made possible through DeFi? What is DeFi?</p><p>DeFi — a blended word from Decentralized Finance and pronounced as de-fiy ( as in fibre) — is a blockchain-based financial solution to the odds and limitations posed by the centralized financial entities- such as banks and the central banks. I used the word “solution” because DeFi simplifies financial transactions in opposition to the conventional method of financial transactions.</p><p>Still not getting it?</p><p>For simplicity, let’s inversely assess DeFi through centralized finance.</p><h3>What is Centralized Finance — TradFi?</h3><p>Traditional Finance — TradFi — or Centralized Finance, is a financial ecosystem managed by a central authority. A notable example of such a financial system is conventional banking and other related financial institutions.</p><p>The centralized feature of the financial system is the inclusion of central authorities — governments — and third parties in the financial ecosystem. Central authority in this form of financial system limits what you can do with your and how easily you can access your asset 24/7–365.</p><p>You’ll understand this better as we discuss it further.</p><h3>So, what is DeFi?</h3><p>DeFi is a decentralized financial ecosystem built on distributed ledger technology, otherwise known as blockchain technology to promote seamless financial transactions and make financial services accessible to all and sundry.</p><p>It is a P2P — peer-to-peer — model of a financial system that shuts out centralization by granting governance to anyone that has access to a computer or a smartphone and the internet.</p><p>Yes, you read it right!</p><p>The P2P model basically shuts out mediators like bankers and brokers just the way decentralization etched out central governance. Mediators in centralized finance were replaced with a string of self-enforcing codes that integrated predefined and self-executing terms of the agreement, known as “Smart Contract.”</p><blockquote>The smart contract made DeFi automated and trustless.</blockquote><p>Wait up, does that mean you can’t trust DeFi? No!</p><p>Since DeFi is a P2P ecosystem, you don’t have to be worried if the other party you’re transacting with can be trusted. All you have to do is rely on the smart contract to act unbiasedly on your behalf.</p><p>Can you see how DeFi is becoming a solution to centralized finance? Not yet or not enough?</p><p>Please wait and read further!</p><p>Imagine saving your money with an online savings account where you’re to earn an interest rate of 0.80%. After saving your money, the bank lends your money to another customer at a 5.5% interest rate. The bank just made a 4.7% profit on your money, and you get just 0.80%. But with DeFi, you deal directly with the borrower and claim the full 5.5% profit.</p><h3>How does DeFi relate to Fiat Money?</h3><p>All transactions on DeFi are done in crypto as a means of exchange since DeFi represents another form of digital solution to our financial ecosystem.</p><p>Cryptocurrency is a digital currency that is a means of exchange in the blockchain ecosystem. There are various kinds of crypto, as each crypto is a native coin of each blockchain. Bitcoin is the native coin of the Bitcoin blockchain; ETH is the native coin of the Ethereum blockchain, and so on.</p><p>To be part of DeFi, one has to exchange fiat money for digital currencies, which can be done on centralized and decentralized crypto exchange platforms. Some countries support buying crypto with credit and debit cards, while some don’t. However, you can purchase Cryptocurrency via P2P transactions in almost all countries.</p><h3>How DeFi Outshines Conventional Banking Systems and other Financial Institutions</h3><p>DeFi offers all financial products and services provided by centralized banks in a flexible version. You can loan or take a loan on DeFi, apply for insurance, and trade assets, among others.</p><p>So, how does DeFi outsmart Centralized Finance?</p><h3>1. Flexibility</h3><p>There are limits to what you can do in centralized finance and the time you can also make transactions. It is widely known that Thursdays and Fridays are usually the worst banking days of the week. Banks are consistently unable to complete financial transactions during weekends and holidays.</p><p>With DeFi, you can send or receive digital currencies and tokenized assets anytime, anywhere. There is no limit to what you can send or receive, and there’s neither downtime nor paperwork. You don’t have to wait for any third party’s approval. Day and night, you’re in control of your assets, 24/7–365.</p><h3>2. Transparency</h3><p>DeFi is not opaque as conventional banks. Everyone involved can monitor transactions in real-time. This is possible due to the decentralized framework of blockchain technology, a public ledger of transactions. No centralized financial institution will/can make their ledger public, and they will never give you absolute control over your assets.</p><h3>3. Openness</h3><p>DeFi is open to all and sundry with internet access. There is no restriction on who can use or access DeFi products and services. Unlike banks where you have to enroll for some services or even open an account, all you have to do in DeFi is create a wallet and start transacting in crypto.</p><h3>4. Cheaper and Faster</h3><p>DeFi, unlike TradFi, is cheaper to use with less transaction fee or gas fee. Say you buy groceries with your credit card; you pay a transaction fee to the following mediators:</p><p>i. Acquisition bank that offers merchant accounts to the grocery store</p><p>ii. Credit Card Provider</p><p>iii. Your bank</p><p>Each of these trios — a third party — will charge you for whatever services are rendered. By cutting them off, you pay a small transactional fee; this is what DeFi offers. Imagine if there was internet lag where these third parties couldn’t transact. Your payment will loiter. But for DeFi, your transaction is seamless without downtime. Except that you have to wait for a few seconds for the transactions to be validated.</p><h3>5. Anonymity</h3><p>Unlike banks that attach your name to your bank account, DeFi protects your identity. You don’t need your name or personal information to transact on DeFi. In case you’re worried about trust, trust the smart contract.</p><p>DeFi can be accessed via Dapps — decentralized applications. Dapp is a web service developed on blockchain technology. Dapps are not only built for DeFi alone; they also offer web services like social media platforms, gaming, marketplaces, and so on.</p><h3>Conclusion</h3><p>DeFi uses blockchain and cryptocurrencies alongside the smart contract to offer financial services and products without third-party interference.</p><p>With DeFi, you can</p><ul><li>Access stable currencies / Stablecoin issuance</li><li>Instantly send and receive money from anywhere in the world</li><li>Lend money with or without collateral.</li><li>Access flash loans</li><li>Trade tokens and derivatives</li><li>Save your crypto and earn interest. All of these anytime and anywhere in the world.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9163e837e75b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>