<?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 Haaniya Iram on Medium]]></title>
        <description><![CDATA[Stories by Haaniya Iram on Medium]]></description>
        <link>https://medium.com/@haaniyairam?source=rss-473c7a1dbabf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Haaniya Iram on Medium</title>
            <link>https://medium.com/@haaniyairam?source=rss-473c7a1dbabf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:18:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@haaniyairam/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[“Decoding DeFi: Unraveling the Risks in the Revolution of Finance”]]></title>
            <link>https://medium.com/@haaniyairam/decoding-defi-unraveling-the-risks-in-the-revolution-of-finance-5608c53ecb77?source=rss-473c7a1dbabf------2</link>
            <guid isPermaLink="false">https://medium.com/p/5608c53ecb77</guid>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[financial]]></category>
            <dc:creator><![CDATA[Haaniya Iram]]></dc:creator>
            <pubDate>Tue, 23 May 2023 04:07:24 GMT</pubDate>
            <atom:updated>2023-05-23T05:09:14.716Z</atom:updated>
            <content:encoded><![CDATA[<p>Decentralized Finance (DeFi) offers immense promise: a world of open, permissionless financial applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*TwWKwuAIAwg9REiv1cz9Tg.png" /></figure><p>However, the road to realizing this promise is not without significant risks and controversies. This document seeks to explore these risks in detail and present real-world examples.</p><blockquote><strong>Smart Contract Risk :</strong></blockquote><p>Smart contracts autonomously execute transactions in DeFi operations, but coding errors or bugs in these contracts can create serious problems. Hackers exploited a flaw in the DAO’s smart contract during the 2016 DAO hack, stealing approximately $50 million worth of Ethereum. Once deployed on the blockchain, developers cannot easily modify smart contracts, which exacerbates these risks.</p><blockquote><strong>Rug Pulls and Scams :</strong></blockquote><p>‘Rug pulls’ and scams are also prevalent in DeFi. In a rug pull, the developers of a DeFi project abruptly abandon the project and run off with the users’ funds. One notorious example is the rug pull performed by Compounder Finance’s developers, disappearing with $10.8 million in November 2020.</p><blockquote><strong>Regulatory Risk :</strong></blockquote><p>DeFi operates globally, exposing it to various regulatory risks. Changes in legal frameworks can lead to significant financial losses for DeFi platforms and users. The U.S. Commodity Futures Trading Commission (CFTC) demonstrated this when it took enforcement actions against the decentralized exchange BitMEX.</p><blockquote><strong>Lack of Insurance :</strong></blockquote><p>DeFi doesn’t offer the same level of deposit insurance as traditional finance. While traditional banks provide FDIC insurance, DeFi platforms usually lack such protections. In April 2020, a hacker exploited this lack of protection and stole $25 million from the dForce platform.</p><blockquote><strong>Over-Collateralization :</strong></blockquote><p>DeFi platforms often demand over-collateralization for loans to mitigate the crypto market’s high volatility. On the MakerDAO platform, users must provide collateral worth at least 150% of the loan they want to borrow. Although this safeguard protects the platform, it also makes borrowing more difficult as users need to possess and lock up more capital than they borrow.</p><blockquote><strong>Centralization Risk :</strong></blockquote><p>Despite their focus on decentralization, some DeFi projects retain certain centralized elements, creating potential central points of failure. In 2020, Compound received criticism for using a centralized admin key, which could be exploited or lead to concentrated power.</p><blockquote><strong>Privacy Concerns :</strong></blockquote><p>The transparent nature of blockchain transactions can lead to privacy issues. If people can link a user’s wallet address back to their real-world identity, the user’s entire transaction history becomes publicly available. A user of yEarn Finance highlighted this issue in 2020, discovering that people could trace their transactions back to them.</p><blockquote><strong>Sustainability and Environmental Impact :</strong></blockquote><p>DeFi platforms, especially those based on proof-of-work blockchains have high energy consumption, raising sustainability concerns. As DeFi continues to grow, these platforms’ carbon footprints remain a contentious issue, much like Bitcoin’s environmental impact.</p><blockquote><strong>Conclusion :</strong></blockquote><p>While DeFi holds the promise of reshaping the financial landscape, the risks and controversies outlined in this document pose significant challenges. By understanding these risks, users can make informed decisions, contributing to a safer DeFi space.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5608c53ecb77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Strengthening Smart Contract Security: Mitigating Reentrancy Attacks”]]></title>
            <link>https://medium.com/@haaniyairam/strengthening-smart-contract-security-mitigating-reentrancy-attacks-3a4a84fa7aad?source=rss-473c7a1dbabf------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a4a84fa7aad</guid>
            <category><![CDATA[reentrancy-attack]]></category>
            <category><![CDATA[smart-contract-security]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[dao-hack]]></category>
            <dc:creator><![CDATA[Haaniya Iram]]></dc:creator>
            <pubDate>Tue, 16 May 2023 05:45:06 GMT</pubDate>
            <atom:updated>2023-05-16T05:45:06.737Z</atom:updated>
            <content:encoded><![CDATA[<p>Blockchain-powered smart contracts have revolutionized industries by enabling decentralized and trustless transactions. However, they face critical security concerns, particularly the reentrancy attack.</p><figure><img alt="Ethereum symbol" src="https://cdn-images-1.medium.com/max/480/1*tNh3I78K7WSvZ8A8j3eyjQ.png" /></figure><p>We will explore reentrancy attacks, their implications, and effective strategies to mitigate the threat, ensuring the integrity and safety of smart contracts.</p><blockquote><strong>Understanding Reentrancy Attacks :</strong></blockquote><p>Reentrancy attacks exploit flaws in smart contract execution flow, where an attacker repeatedly re-enters a vulnerable contract before completing previous calls. This manipulation enables unauthorized access to funds and disrupts intended functionality.</p><blockquote><strong>Implications and Key Components :</strong></blockquote><p>Reentrancy attacks have severe consequences, as demonstrated by the infamous DAO hack on 30 April 2016. The DAO, a decentralized autonomous organization, suffered a reentrancy attack resulting in the loss of approximately 3.6 million Ether worth $50M.The hacker manipulated the code to repeatedly withdraw funds, preventing the balance from updating. This incident led to a controversial hard fork, creating two chains: Ethereum and Ethereum Classic. Key components of a reentrancy attack include vulnerable contracts, attacker’s contracts, triggering external calls, and state manipulation.</p><p><a href="https://etherscan.io/tx/0xa348da60799bff3ca804b3e49c96edebea44c5728a97f64bec3e21056d42f6e3">Ethereum Transaction Hash (Txhash) Details | Etherscan</a></p><blockquote><strong>Mitigation Strategies :</strong></blockquote><p>To enhance smart contract security and mitigate reentrancy attacks, developers should</p><ul><li>Implement the “Checks-Effects-Interactions” pattern to prioritize state changes and calculations before external calls.</li><li>Use function modifiers to enforce necessary conditions and restrict reentrant calls.</li><li>Minimize external calls after modifying the contract state.</li><li>Employ secure withdrawal patterns and validate conditions before transferring funds.</li><li>Emphasize thorough code review and testing to identify and proactively address vulnerabilities.</li></ul><blockquote><strong>Techniques to Prevent Reentrancy Vulnerabilities :</strong></blockquote><p>Preventing reentrancy vulnerabilities involves utilizing techniques such as mutex locks, gas limits, and careful state management. Mutex locks ensure mutual exclusion, preventing interference between reentrant calls. Gas limits restrict excessive gas usage, avoiding infinite loops. Careful state management during external calls mitigates unexpected behaviors.</p><blockquote><strong>Strengthening Security Through Formal Verification and Code Audits :</strong></blockquote><p>Enhancing smart contract security involves formal verification and code audits. Formal verification employs mathematical proofs to ensure correctness and security, identifying and addressing reentrancy vulnerabilities. Code audits by experienced professionals thoroughly review smart contract code, identifying potential issues, including reentrancy vulnerabilities, and adhering to best practices.</p><blockquote><strong>Conclusion :</strong></blockquote><p>Reentrancy attacks significantly threaten smart contract security, as seen in the DAO hack. Strengthening security involves understanding implications and implementing effective mitigation strategies. Utilizing techniques like mutex locks, gas limits, state management, formal verification, and code audits provides robust protection against reentrancy vulnerabilities, ensuring the integrity and safety of smart contracts in the evolving blockchain landscape. In addition, using updated programming paradigms and secure design patterns that minimize complexity can further deter reentrancy attacks. Leveraging blockchain platforms with in-built security features and embracing the practice of peer review in smart contract development also contribute to heightened security.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a4a84fa7aad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“A Closer Look at 5irechain: A Comprehensive Guide “]]></title>
            <link>https://medium.com/@haaniyairam/a-closer-look-at-5irechain-a-comprehensive-guide-e817e6d661a5?source=rss-473c7a1dbabf------2</link>
            <guid isPermaLink="false">https://medium.com/p/e817e6d661a5</guid>
            <dc:creator><![CDATA[Haaniya Iram]]></dc:creator>
            <pubDate>Sun, 12 Mar 2023 16:01:24 GMT</pubDate>
            <atom:updated>2023-03-12T16:01:24.054Z</atom:updated>
            <content:encoded><![CDATA[<p>5irechain is a blockchain protocol that is committed to sustainable and for-benefit development, based on the United Nations Sustainable Development Goals (SDGs).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*hKiGx2XaRrJuBuhhkfEIIw.png" /></figure><p>The protocol’s consensus mechanism prioritizes sustainability and aims to prevent favoritism and cartelization that can occur in proof of stake consensus mechanisms.</p><p><strong><em>Consensus Mechanism:</em></strong></p><p>5irechain’s new consensus protocol, SPoS, is a multifactor consensus protocol that assigns weights to nodes based on Stake, Reliability, Randomized Voting, Sustainability Score (Environmental, Social &amp; Governance), and Previous Nomination.</p><p>The key features of the consensus mechanism include:</p><ul><li>The use of multifactor weights to select nodes for the assembly of the block.</li><li>Randomized voting carries 20% weight, allowing nodes with lower stake to be selected for block assembly and preventing the cartelization of the network.</li><li>Nodes are assigned a reliability score based on their time online, stake duration, successful block creation, and attested blocks, incentivizing participation in the network.</li><li>The sustainability score is taken into account and is assigned based on credible inputs from trusted authorities. Later, a decentralized mechanism will assign and update sustainability scores.</li><li>The probability of being selected as an assembler reduces by 2% after each epoch.</li></ul><p>Overall, SPoS aims to provide a fair share of opportunities to nodes with lower stakes to encourage more participation in the network while still prioritizing nodes with higher stake.</p><p><strong><em>Uncovering the Unique Features of 5irechain:</em></strong></p><p>Randomized Voting</p><p>The concept of randomized voting in 5irechain is introduced to provide a better alternative to nominated or delegated voting. In randomized voting, nodes use a pseudo-random algorithm to vote for nodes randomly and attest the blocks created by those nodes. This helps curb coercion and promotes individual responsibility. Nodes are rewarded and punished based on their individual acts, rather than on collective reward and punishment. In the case of a fraudulent block created by a compromised node, only the stake of the fraudulent node will be slashed, and not the stake of those who voted for it, unless they also attested the fraudulent block.</p><p>Reliability Score</p><p>The reliability score is based on three factors: age, stake, and block assembly. Age is determined by the number of successful blocks created by the node over the past 14 epochs (7 days). Stake is determined by how long the node has held its stake. The longer the node has held its stake and been online, the higher its reliability score. Block assembly refers to the successful creation of blocks by the node when assigned, which increases its probability of being elected again as an assembler. Failure to create a block when assigned will result in a lower reliability score and stake slashing.</p><p>Sustainability score</p><p>5ire uses a sustainability score as one of the factors to select assemblers, based on the environmental, social, and governance (ESG) index of an organization. Nodes can submit their sustainability report using a template, which will be evaluated by 5ire ESG nodes who assign weights on a Likert scale to each factor. The template will be used to collect data from stakeholders who want to participate in the network. The multi-factor consensus algorithm will use this score, along with reliability score, stake, and randomized voting to select assemblers for a 12-hour duration.</p><p><strong><em>Future Prospects:</em></strong></p><p>The 5irechain blockchain seems to have several unique features such as its multi-factor consensus algorithm, randomized voting, and sustainability score, which can potentially make it more efficient, secure, and eco-friendly compared to other blockchains. If the blockchain is successfully implemented and adopted by users, it could attract more investors, developers, and businesses to build on top of it, which could increase its popularity and value.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e817e6d661a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>