<?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 Varun Parakh on Medium]]></title>
        <description><![CDATA[Stories by Varun Parakh on Medium]]></description>
        <link>https://medium.com/@varun.parakh07?source=rss-4089f696431e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*H_Nm9gUAML4Z9mUP</url>
            <title>Stories by Varun Parakh on Medium</title>
            <link>https://medium.com/@varun.parakh07?source=rss-4089f696431e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:51:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@varun.parakh07/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What is MEV ?]]></title>
            <link>https://medium.com/@varun.parakh07/what-is-mev-fc3589b2bd76?source=rss-4089f696431e------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc3589b2bd76</guid>
            <dc:creator><![CDATA[Varun Parakh]]></dc:creator>
            <pubDate>Sat, 11 May 2024 17:41:21 GMT</pubDate>
            <atom:updated>2024-05-11T17:41:21.339Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is MEV ?</h3><p>Before we dive into the who’s who of MEV, let’s look at an overview of the building blocks of a transaction on Ethereum.</p><h3>Transaction Lifecycle</h3><ul><li>A typical transaction on a blockchain goes through various steps to be included in a block &amp; finalised.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xMtVHVf5LFr8a1hU" /></figure><h3>What is MEV?</h3><p>MEV (Miner Extractable Value) refers to the profit a validator / MEV Bot can make by strategically including, excluding, or reordering transactions within a block.</p><ul><li>What does it do?</li><li>Why is it required?</li><li>How does DEX Trade happen</li><li>What is an Offchain dex trade</li><li>What does intent do to MEV behaviour</li><li>What are the side effects of Off-chain signing</li><li>Who’s using it</li><li>UniswapX &amp; Cowswap</li></ul><p>The discussion centred around off-chain mechanisms, Miner Extractable Value (MEV) attacks, and the balance between decentralization and efficiency in decentralized finance (DeFi) and Web3.</p><h3>MEV and Time Delays</h3><ul><li>MEV: Refers to the potential profit that miners or validators can extract by manipulating transaction ordering within a block.</li><li>Time Delays: Proposed as a mitigation strategy, time delays involve a multi-step process, including a commitment phase, time delay period, reveal phase, and execution phase.</li><li>Limitations: Time delays alone do not prevent MEV attacks like front-running or back-running. They must be used in conjunction with other strategies to be effective.</li></ul><h3>Off-Chain Mechanisms</h3><ul><li>Definition: Off-chain mechanisms refer to activities outside the main blockchain, including coordination, signing, computation, and data management.</li><li>Benefits: Enhance efficiency, scalability, and privacy by reducing on-chain complexity and costs.</li><li>Threats: Include privacy risks, trust and centralization issues, coordination failures, data integrity challenges, and regulatory and legal risks.</li></ul><h3>Centralization vs. Decentralization</h3><ul><li>Centralized Components: Many DeFi projects use centralized off-chain mechanisms, such as relayers or Web3 backends, to facilitate off-chain activities.</li><li>Trade-offs: Centralized components can provide efficiency and regulatory compliance but introduce trust, security, and governance risks.</li><li>Hybrid Approaches: Balance on-chain and off-chain components to align with decentralized principles while leveraging efficiency benefits.</li></ul><h3>P2P Services vs. Off-Chain Orders</h3><ul><li>Off-Chain Orders: Trade orders are managed outside the blockchain, often for efficiency and cost reduction.</li><li>P2P Services: Allow direct trading between users on exchanges, enhancing user control and reducing reliance on intermediaries.</li><li>Differences: Off-chain orders focus on efficiency, often involving centralized coordination, while P2P services emphasize direct trading and potential decentralization.</li></ul><h3>Innovations and Challenges</h3><ul><li>Decentralized Off-Chain Coordination: Some projects are exploring decentralized off-chain coordination using peer-to-peer networks, cryptographic protocols, or decentralized oracles.</li><li>Layer 2 Solutions: Provide off-chain scalability while preserving decentralization and security guarantees.</li><li>Community Governance: Implement community governance or oversight to align with decentralized principles.</li></ul><h3>Conclusion</h3><p>Off-chain mechanisms offer valuable tools in the DeFi and Web3 landscape but come with complexities and challenges. The relationship between off-chain mechanisms, centralization, and decentralization is multifaceted, reflecting trade-offs between efficiency, trust, control, and regulatory considerations.</p><p>The evolving nature of these concepts reflects the dynamic nature of the decentralized ecosystem. Ongoing research, innovation, and collaboration within the community are essential to developing solutions that balance these diverse factors.</p><p>The discussion underscores the importance of careful design, governance, transparency, and community engagement in leveraging the potential of off-chain mechanisms while aligning with the values and principles of decentralization.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc3589b2bd76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rise of Hybrid DEX-CEX Liquidity Aggregation]]></title>
            <link>https://medium.com/coinmonks/the-rise-of-hybrid-dex-cex-liquidity-aggregation-7eab607b3e11?source=rss-4089f696431e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7eab607b3e11</guid>
            <category><![CDATA[okxwallet]]></category>
            <category><![CDATA[dex]]></category>
            <category><![CDATA[1inch-exchange]]></category>
            <category><![CDATA[otc]]></category>
            <category><![CDATA[cex-vs-dex]]></category>
            <dc:creator><![CDATA[Varun Parakh]]></dc:creator>
            <pubDate>Sat, 11 May 2024 17:26:14 GMT</pubDate>
            <atom:updated>2024-05-20T07:38:21.184Z</atom:updated>
            <content:encoded><![CDATA[<p>The world of decentralized finance (DeFi) is evolving rapidly, with leading decentralized exchanges (DEXs) now integrating centralized exchange (CEX) and over-the-counter (OTC) liquidity to provide users with better rates and execution.</p><h3>Let’s take an example of 1inch Network’s Fusion 2.0</h3><p><a href="https://blog.1inch.io/1inch-fusion-2-0-revolutionizes-swap-efficiency-for-users/">Fusion 2.0</a> is a prime example of this hybrid model. By splitting trades across multiple DEXs, CEXs and OTC desks, 1inch can access deeper liquidity pools and offer users the most optimal rates. This reduces gas costs, especially for larger trades, as portions can be executed on CEXs and OTC desks with no gas fees.</p><h3>Other projects like UniswapX and LI.FI</h3><p>are also working on similar concepts. <strong>UniswapX</strong> aims to leverage <strong>a network of solvers</strong> (similar to 1inch’s Fillers) to execute trades across on-chain and off-chain liquidity, providing fast, cheap and efficient cross-chain swaps.</p><p><strong>LI.FI</strong> supports protocols like Across, Connext and Hop which offer intent-centric trading and gas-free swapping by tapping into multiple liquidity sources.</p><p>However, there are some key differences between these approaches:</p><ul><li><strong>UniswapX</strong> focuses on price improvement for users by reducing MEV and slippage, while 1inch prioritizes gas optimization by splitting trades across centralized and decentralized sources.</li><li><strong>LI.FI</strong> is a comprehensive aggregator that supports the most chains, bridges, DEXs and single DEXs, allowing users to adjust the API to their specific risk profile and use case.</li></ul><h3>Wait, what’s this network of solvers?</h3><p>A network solver is a set of algorithms used to perform network analysis and optimization based on a given set of network data.</p><p>The network solver includes various algorithms from the fields of graph theory, combinatorial optimization, and network analysis. Some common algorithm classes include:</p><ul><li>Shortest path algorithms</li><li>Minimum spanning tree algorithms</li><li>Network flow algorithms</li><li>Matching algorithms</li><li>Clustering algorithms</li></ul><h3>Architecture of a Solver Network</h3><p>A solver network typically consists of the following key components:</p><ol><li><strong>Solvers/Fillers</strong>: These are the market makers that execute trades across multiple liquidity sources. They are incentivized to provide liquidity and optimize trades.</li><li><strong>Aggregator</strong>: The aggregator is the DEX platform that coordinates the activities of the solvers and facilitates trade execution. It receives trade requests from users and distributes them to the solver network.</li><li><strong>Liquidity Sources</strong>: The liquidity sources include decentralized exchanges (DEXs), centralized exchanges (CEXs), and over-the-counter (OTC) desks that provide the actual tokens for trade execution.</li><li><strong>Matching Engine</strong>: The matching engine is responsible for efficiently matching buy and sell orders from users and solvers to facilitate trade execution.</li><li><strong>Settlement Layer</strong>: The settlement layer handles the actual transfer of tokens between parties upon successful trade execution, typically using smart contracts.</li></ol><h3>Trade Execution Flow</h3><figure><img alt="Trade Execution Fusion 2.0" src="https://cdn-images-1.medium.com/max/1024/1*AErC7OEu9FEq9xAYoVuCOw.jpeg" /></figure><ol><li>A user submits a trade request to the DEX aggregator, specifying the tokens they want to swap and the desired slippage tolerance.</li><li>The aggregator broadcasts the trade request to the network of solvers.</li><li>Solvers analyze the trade request and the current liquidity available across DEXs, CEXs, and OTC desks.</li><li>Solvers submit bids to the aggregator, specifying the amount of tokens they are willing to provide and the exchange rate they require.</li><li>The aggregator’s matching engine selects the optimal combination of bids that maximizes the trade amount while minimizing slippage and gas costs.</li><li>The selected solvers execute the trade by sending the required tokens to the DEX’s smart contract. They may split the trade across multiple liquidity sources to optimize rates and gas costs.</li><li>The DEX’s smart contract settles the trade by transferring the purchased tokens to the user’s wallet.</li><li>The aggregator distributes the trading fees to the solvers based on their contribution to the trade execution.</li></ol><h3>What’s in it for the Solvers — Incentives and Rewards</h3><p>Solvers are incentivized to participate in the network through various rewards and revenue streams:</p><ul><li><strong>Trading fees</strong>: Solvers earn a portion of the trading fees generated by the DEX for each successful trade they execute.</li><li><strong>Liquidity mining</strong>: DEXs may offer liquidity mining rewards to solvers who provide a significant amount of liquidity to the platform.</li><li><strong>Capitalization</strong>: DEXs may provide capitalization to solvers through features like stable deposit pools, allowing them to participate with low capital commitments.</li><li><strong>Delta-neutral revenue</strong>: Solvers can tap into substantial delta-neutral and risk-adjusted revenue streams by servicing the DEX ecosystem.</li></ul><h3>Alright, what’s in it for me?</h3><h4>Improved Rates and Liquidity</h4><p>By tapping into the liquidity from CEXs and OTC desks, DEXs can access deeper pools of liquidity, especially for larger trade sizes. This allows the protocol to offer better exchange rates and lower slippage to users compared to relying solely on decentralized exchanges (DEXs).</p><h4>Reduced Gas Costs</h4><p>DEXs can optimize gas costs by splitting trades across multiple sources. For example, Fusion 2.0 can execute a portion of a trade on a CEX or OTC desk with no gas fees, while only executing the remaining part on DEXs. This significantly reduces the overall gas costs paid by users, especially for larger trades.</p><h4>Faster Execution</h4><p>DEXs can execute swaps in parallel, improving transaction speeds. Additionally, by accessing CEX and OTC liquidity, they can provide faster execution for large trade sizes that may not be easily fillable on DEXs alone.</p><p>However, not all Dex’es may integrate CEXs and OTC desks yet for a few reasons:</p><ol><li><strong>Technical complexity</strong>: Establishing secure API connections with multiple CEXs and OTC desks and managing hot wallets on those platforms requires significant engineering effort.</li><li><strong>Regulatory concerns</strong>: Some exchanges may hesitate to integrate directly with CEXs due to regulatory uncertainty around decentralized trading platforms.</li><li><strong>Liquidity incentives</strong>: DEXs often provide liquidity mining rewards to attract users and liquidity providers. Integrating CEXs may dilute these incentives.</li><li><strong>Philosophical differences</strong>: Some decentralized exchanges may prioritize a pure DEX experience and be reluctant to incorporate centralized liquidity sources.</li></ol><p>As the DeFi ecosystem matures, we can expect more DEXs to follow suit and incorporate centralized liquidity. This hybrid model combines the permissionless nature of DEXs with the deep liquidity of CEXs and OTC desks, providing users with the best of both worlds — efficient, low-cost trades with optimal rates.</p><p>Thanks for the read, hope you liked it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7eab607b3e11" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/the-rise-of-hybrid-dex-cex-liquidity-aggregation-7eab607b3e11">The Rise of Hybrid DEX-CEX Liquidity Aggregation</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[What’s Account Abstraction & why it’s the future?]]></title>
            <link>https://medium.com/coinmonks/whats-account-abstraction-why-it-s-the-future-3592d5c7ba20?source=rss-4089f696431e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3592d5c7ba20</guid>
            <category><![CDATA[eip-4337]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[account-abstraction]]></category>
            <dc:creator><![CDATA[Varun Parakh]]></dc:creator>
            <pubDate>Mon, 27 Mar 2023 16:47:59 GMT</pubDate>
            <atom:updated>2024-04-17T14:01:37.921Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we dive in, let’s talk about</p><h3>What is an EIP &amp; how does it differ to a ERC.</h3><ul><li><strong>EIP</strong> — Ethereum Improvement Proposal<br> proposal to alter some elements of the Ethereum network</li><li><strong>ERC</strong> — Ethereum Request for Comment<br>proposal to add support for specific types of applications on the Application layer, determining how applications interact with the consensus protocol (the Ethereum Blockchain)</li></ul><h3>Different states of a proposal on Ethereum</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XA7C2vTkJgQYTIKWFZY_jQ.png" /></figure><h3>So is 4337 (referred to as Account Abstraction) an ERC or EIP?</h3><p>It all started with <a href="https://medium.com/u/587a00dbce51">Vitalik Buterin</a>’s post a couple of months before the Ethereum main-net launch in 2015, where he talked about AA &amp; how smart contract accounts were there default accounts in his vision of Ethereum but alas the community got fed up with the mainnet launch delays &amp; the foundation decided to release with EOA accounts (the 12-word seed phrase backed accounts we use today).</p><p>Ever since there have been multiple EIPs gradually iterating &amp; improving on the idea of Account abstraction until finally, we landed on <a href="https://eips.ethereum.org/EIPS/eip-4337">EIP-4337 in 2021</a>. Since an EIP requires a hard fork of the Ethereum layer, the proposal was moved to the ERC track which meant <a href="https://medium.com/u/c0013a425528">Yoav Weiss</a> &amp; others behind the proposal could move on to adding further improvements to the proposal through 2022 &amp; beyond.</p><p>And finally, in March ’23 the ERC-4337 was deployed on the Ethereum mainnet &amp; as things build out more clearly, it’ll hopefully make its way into the protocol as a native &amp; only way to create Ethereum accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bW6VJDcyO8hexY9N5befTQ.png" /></figure><h3>Alright, so what’s wrong with the current accounts?</h3><p>Pre 4337, Ethereum only had 1 type of account, called <strong>EOA</strong> (<em>Externally Owned Accounts</em>).</p><p>EOAs essentially are restricted to classic account security, let’s look at some <strong>limitations of EOAs</strong></p><ul><li>Tightly coupled with a <strong>single ECDSA Key.</strong></li><li>Replay protection using nonce — fixed way for txn uniqueness &amp; ordering</li><li>DoS protection (gas payments) — gas was introduced to ensure DoS attacks are very expensive with no — little financial gains.</li><li>Securing / Backing up the key is a big pain &amp; non-scalable.</li><li>Once lost, <strong>no way to recover</strong> the key.</li><li><strong>Fixed access control</strong>. No way to set policies on how your tokens are spent.</li><li><strong>Low Efficiency</strong> — Requires multiple transactions to do a single operation — Approve + Spend</li><li><strong>Gas</strong> payments in the <strong>native token</strong> (ETH).</li><li><strong>Privacy</strong> concerns — ETH required for any txn needs to be funded from some transaction which allows a trace back to the source.</li></ul><h3>So what is ERC-4337 &amp; what does it really Abstract?</h3><blockquote>Fun fact : Account Abstraction is a name that comes from &amp; makes sense for the protocol developers, not for the account users since nothing is abstracted for them but everything is abstracted for the protocol side. <a href="https://medium.com/u/c0013a425528">Yoav Weiss</a> suggest we call it <strong>Smart Accounts.</strong></blockquote><p>ERC-4337 essentially provides full account abstraction namely -</p><h4>Authentication &amp; Authorisation</h4><ul><li>Any signature type can be used such as using your iPhone with FaceID protection to sign a transaction or imagine just a fingerprint tap on your Android device.</li><li>Multi-signature wallets can be used with native decentralized security.</li><li>We can have fraud detection services as part of your multi-sig setup providing you an extra layer of protection (Imagine having a silent <a href="https://www.pocketuniverse.app/">Pocket Universe</a> + <a href="https://info.etherscan.com/report-address/">Etherscan Flag</a> Protection working for you in the background for every transaction you make)</li></ul><h4><strong>Replay Protection</strong></h4><ul><li>Nonce is now abstracted, a wallet can provide its own nonce implementation meaning more pseudonymous transactions.</li><li><a href="https://www.youtube.com/watch?v=9wv7cwuiUTk">ZK-Nullifiers</a> are one such example used in an ETH Bagota Hackathon.</li></ul><h4><strong>Gas Payment</strong></h4><ul><li>4337 adds the use of Paymaster which allows gas abstraction. Gas for a transaction can now be sponsored by someone else opening a plethora of Web2 like use cases &amp; seamless onboarding of users.</li><li>Sponsoring special use cases can help build a bank-like UX without the dependency on the bank.</li></ul><h4>Execution</h4><ul><li>4337 also allows execution layer optimizations like batching with atomicity.</li><li>Imagine doing a Uniswap transaction that requires you to first pay for approval &amp; then another gas payment for the transfer of your tokens vs having a way to batch these 2 transactions such that with 1 signature you approve &amp; pay together if both can succeed or none at all.</li></ul><blockquote>Fun fact — All of these has always been possible with smart contract wallets before but now with ERC-4337, the idea is to make it all censorship resistant without depending on a centralised party &amp; with the security of decentralisation.</blockquote><h4>Robust Infrastructure</h4><ul><li>We also get an Alt-mempool which works like the usual mempool of Ethereum &amp; eventually the idea is all Miners will support 4337-based transactions increasing the decentralization aspect of the proposal.</li></ul><h4>No Protocol Change</h4><ul><li>With an ERC, no protocol change is required. As Smart Accounts get more common &amp; more use-cases are developed, the EIP will get more focused &amp; hopefully, someday it’ll all be natively available on ETH blockchain as part of the protocol.</li><li>Currently, L2s like Starknet &amp; ZKSync already provide native account abstraction support &amp; more L2s are heading in that direction.</li></ul><blockquote>EIP-4337 has been <a href="https://blog.openzeppelin.com/eip-4337-ethereum-account-abstraction-incremental-audit/">audited by Open Zepellin</a> &amp; is now available on testnets, mainnet &amp; multiple L2s.</blockquote><p>Before we wrap up — let’s look at some fun use-cases that can be built on top of ERC-4337.</p><ul><li><strong>Social Recovery</strong> — being able to use your Web2 accounts to recover a lost wallet.</li><li><strong>Deadman’s switch</strong> — having your account automatically move to your family as a multi-sig after a set time of inactivity on the account.</li><li><strong>Spending limits</strong> — an experience just like your banking apps, where small ticket transactions don’t require anything beyond your device fingerprint, but a slightly bigger transaction requires say an OTP or a multi-signature &amp; further-more maybe requires approval from your hardware wallet.</li><li><strong>Session Keys</strong> — imagine playing a game &amp; having to sign for some actions very often, thus breaking the flow, AA allows us to build session keys where you are able to provide an account with certain whitelisted policies to a specific game contract to carry out less risky signatures / txns on your behalf after you’ve signed once during the start of the game.</li><li>Basically, imagination is the limit now with all the abstractions provided to the Wallet devs.</li></ul><blockquote>To ensure this article doesn’t get fatter, a more Tech focused article to follow soon talking about implementation specifics of ERC-4337.</blockquote><p>References are taken from multiple talks on ERC-4337, special mention to <a href="https://medium.com/u/c0013a425528">Yoav Weiss</a> &amp; team for all the amazing work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3592d5c7ba20" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/whats-account-abstraction-why-it-s-the-future-3592d5c7ba20">What’s Account Abstraction &amp; why it’s the future?</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>
    </channel>
</rss>