<?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 kauersaki on Medium]]></title>
        <description><![CDATA[Stories by kauersaki on Medium]]></description>
        <link>https://medium.com/@kauerspam?source=rss-b23a231f5873------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*T7CxE0vTBYOhuYbe61idYQ.jpeg</url>
            <title>Stories by kauersaki on Medium</title>
            <link>https://medium.com/@kauerspam?source=rss-b23a231f5873------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 05:12:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kauerspam/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[OpenBlock Canada]]></title>
            <link>https://coinsbench.com/openblock-canada-ccf3940d85da?source=rss-b23a231f5873------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccf3940d85da</guid>
            <category><![CDATA[journalism]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[free]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[censorship]]></category>
            <dc:creator><![CDATA[kauersaki]]></dc:creator>
            <pubDate>Mon, 04 May 2026 03:18:00 GMT</pubDate>
            <atom:updated>2026-05-06T14:57:50.023Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OucE599FCk9kpk4slOh30w.jpeg" /></figure><p>OpenBlock Canada</p><p><strong>A Practical Guide to Censorship-Resistant Journalism on Solana</strong></p><p><strong>@OpenBlockCA</strong> · Built on Solana</p><h3>INTRODUCTION</h3><p><strong>Why This Document Exists</strong></p><p>The OpenBlock Manifesto was Step 1. It stated our purpose in plain terms: Canadian news is being suppressed, and we are building infrastructure that cannot be censored. The response was immediate — journalists, developers, digital rights advocates, and everyday Canadians reached out to ask the same question: <em>How does this actually work, and how do I get involved?</em></p><p>This document is Step 2. It is written for three audiences: Canadians who are alarmed by what Bills C-11 and C-18 mean for their access to information; builders and developers who want to understand the technical and historical significance of what we are constructing on Solana; and anyone who wants to join OpenBlock as a contributor, journalist, or community member.</p><p>We will cover the practical mechanics of how OpenBlock works, the historical context of why publishing on a blockchain is genuinely significant, the documented evidence of how censorship is already affecting Canadians, and exactly how you can become part of this project.</p><h3>CHAPTER I</h3><p><strong>The Practical Case for OpenBlock</strong></p><p><strong>What it is, how it works, and what it means for ordinary Canadians.</strong></p><h4>What OpenBlock Is</h4><p>OpenBlock is a publishing and content registry platform built on the Solana blockchain. In plain terms: when a journalist, writer, or community reporter publishes a piece through OpenBlock, two things happen simultaneously. The full content is stored on <strong>Arweave</strong> — a permanent, decentralized storage network designed to keep data accessible for at minimum 200 years. And a cryptographic record of that publication is registered on the Solana blockchain, timestamping the content permanently and immutably.</p><p>The result is a publication that no government regulator, no platform algorithm, and no payment processor can erase, delist, or suppress. The article exists on infrastructure that is not owned by any single company and not subject to any single jurisdiction.</p><h4>How It Works in Practice</h4><p><strong>For a writer submitting a story:</strong></p><ol><li>Write your piece — an investigative report, a community story, an opinion — in any format.</li><li>Submit it through the OpenBlock platform. The content is hashed and uploaded to Arweave.</li><li>A Solana transaction registers the hash on-chain. This creates a permanent, public, tamper-proof timestamp linking your identity, your content, and the moment of publication.</li><li>The article is immediately accessible via openblock.ca and directly from the Arweave network — meaning it can be read even if our website goes down.</li><li>Readers can pay writers directly using Solana Pay — peer-to-peer micropayments that no bank, payment processor, or platform can intercept or reverse.</li></ol><p><strong>For a reader:</strong></p><ol><li>Browse OpenBlock like any news site. No wallet required to read.</li><li>Every article shows a blockchain verification link — you can independently confirm the content has not been altered since publication.</li><li>Support writers directly with as little as a fraction of a cent using Solana Pay — no subscription, no middleman.</li></ol><blockquote><em>“The article exists on infrastructure that is not owned by any single company and not subject to any single jurisdiction.”</em></blockquote><h4>Why This Matters Beyond Crypto</h4><p>OpenBlock is not a crypto project that happens to publish news. It is a journalism project that uses crypto infrastructure because that infrastructure is uniquely suited to resisting the specific form of censorship Canada is now experiencing.</p><p>Against that kind of soft censorship, decentralized infrastructure is the only reliable defense. You cannot pressure Arweave to comply. You cannot serve the Solana blockchain a takedown notice. And you cannot cut off a writer’s income when payments run peer-to-peer on a public network.</p><h3>CHAPTER II</h3><p><strong>How Censorship Is Silencing Canada</strong></p><p><strong>The documented evidence that Canadian information access is already under threat.</strong></p><h4>Bill C-11: The Online Streaming Act</h4><p>Bill C-11, the Online Streaming Act, received royal assent in April 2023. It grants the Canadian Radio-television and Telecommunications Commission (CRTC) sweeping new authority to regulate online platforms, including social media and user-generated content.</p><h4>Bill C-18: The Online News Act</h4><p>Bill C-18, the Online News Act, came into force in 2023 and required large digital platforms to negotiate and pay news publishers for linking to their content. Meta chose to block all news content for Canadian users rather than comply. The result was the largest single suppression of news access in Canadian digital history.</p><blockquote><em>“A law designed to support journalism produced the largest single suppression of news access in Canadian digital history.”</em></blockquote><h4>What Canadians Are Actually Experiencing</h4><p>Canadian users report that news stories shared by Canadian accounts receive dramatically reduced distribution. Independent journalists — particularly those covering stories the major broadcasters ignore — find their content algorithmically suppressed.</p><p>This is <strong>censorship by compliance</strong> — quiet, deniable, and extremely effective.</p><h4>The Chilling Effect on Independent Journalism</h4><p>The regulatory environment creates fear. Many independent writers choose not to publish stories that might be suppressed or demonetized. The stories that never get written are the most damaging form of censorship.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2OE1f05jH73kSpE3_-cESw.jpeg" /></figure><h3>CHAPTER III</h3><p><strong>The Historical Significance of Blockchain Publishing</strong></p><p>Every era of censorship has been met by a technological response that changed the balance of power:</p><ul><li>Gutenberg’s printing press</li><li>Samizdat in the Soviet Union</li><li>The early internet</li></ul><p>Blockchain publishing is the next step — and the most complete. It decentralizes not just distribution, but publication, storage, and monetization.</p><p>For the first time in history, the full chain of publishing can operate beyond the reach of any single government or corporation.</p><p><strong>OpenBlock is samizdat with permanent infrastructure — and no risk of arrest for the reader.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c8s4RiolbYVYbgjmQVxYQA.jpeg" /></figure><h3>CHAPTER IV</h3><p><strong>Why Solana Changes Everything</strong></p><h4>The Problem with Other Blockchains</h4><ul><li>Bitcoin: Too slow and expensive</li><li>Ethereum: Still too costly for frequent publishing</li></ul><h4>Why Solana Is Uniquely Suited</h4><ul><li>~65,000 transactions per second</li><li>Average fee: fractions of a cent</li><li>A journalist publishing daily would spend <strong>less than a dollar per month</strong> on fees</li></ul><p><strong>Solana Pay</strong> enables direct peer-to-peer payments with no intermediary that can be pressured or regulated.</p><p>OpenBlock’s content registry will be fully open-sourced, allowing anyone to verify, fork, or build upon it.</p><h3>CHAPTER V</h3><p><strong>How to Join the Movement</strong></p><p>OpenBlock is community-built. We are looking for:</p><ul><li><strong>Journalists and writers</strong> — especially those who have been suppressed</li><li><strong>Developers and builders</strong> (Solana, frontend, open source)</li><li><strong>Community organizers</strong></li><li><strong>Researchers</strong> tracking censorship</li><li><strong>Readers and supporters</strong></li></ul><p><strong>How to Get in Touch:</strong></p><p>DM us on X: <strong>@OpenBlockCA</strong></p><p>Whether you are a journalist with a story, a developer who wants to contribute, or a Canadian who is angry about what is happening to independent media — reach out.</p><p><strong>The press was never meant to be licensed.</strong> <strong>So we made it unlicensable.</strong></p><p><strong>OpenBlock Canada</strong> · @OpenBlockCA Built on Solana · Stored on Arweave · Open Source</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccf3940d85da" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/openblock-canada-ccf3940d85da">OpenBlock Canada</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[OpenBlock Canada: Technical Sovereignty & The Permanent Press]]></title>
            <link>https://coinsbench.com/openblock-canada-technical-sovereignty-the-permanent-press-b9efece563d7?source=rss-b23a231f5873------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9efece563d7</guid>
            <category><![CDATA[canada]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[censorship]]></category>
            <category><![CDATA[free-speech]]></category>
            <dc:creator><![CDATA[kauersaki]]></dc:creator>
            <pubDate>Sat, 02 May 2026 15:18:56 GMT</pubDate>
            <atom:updated>2026-05-04T14:41:11.954Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gjHHenITYgLgJcXA_8_Mdw.png" /></figure><h3>A Practical Guide to Decentralized Journalism in the Age of Algorithmic Censorship</h3><h3>Chapter 1: The Canadian Digital Siege</h3><p>In the last decade, the Canadian legislative landscape has shifted from one of passive internet observation to active content management. The introduction of <strong>Bill C-11</strong> (The Online Streaming Act) and <strong>Bill C-18</strong> (The Online News Act) represents a fundamental pivot in how information is mediated in Canada.</p><h3>The Compliance Trap</h3><p>Censorship in Canada is rarely a direct “delete” order. Instead, it is a system of financial and regulatory levers that force platforms to act as proxy censors. By mandating payments for links (C-18), the government triggered a defensive reaction from tech giants: the total removal of Canadian news links from social feeds. This created an “Information Desert” where local journalism no longer reaches the citizens it is meant to serve.</p><h3>Chapter 2: The Historical Choice of Solana</h3><p>Building a registry for the free press requires a foundation that is both permanent and performant. OpenBlock chose the Solana blockchain not just for its speed, but for its role in the evolution of cryptographic sovereignty.</p><h3>The Proof of History (PoH) Advantage</h3><p>While other blockchains struggle with “Gas Fees” that make publishing prohibitively expensive, Solana’s architecture allows for high-throughput validation. For a journalist, this means the cost of “notarizing” a story is negligible — often less than a fraction of a cent.</p><p>Historically, the power of the press was limited by the cost of ink and the reach of the delivery truck. In the digital age, the “ink” is the transaction fee and the “truck” is the validator network. By using Solana, OpenBlock ensures that the delivery mechanism is global, decentralized, and immune to local Canadian ISP blocks or CRTC mandates.</p><h3>Chapter 3: The Architecture of Permanence</h3><p>OpenBlock utilizes a “Dual-Chain” strategy to ensure that once a story is written, it exists for as long as the internet itself.</p><ol><li><strong>The Registry (Solana):</strong> This acts as the immutable index. Every article is assigned a unique cryptographic signature. Even if a website’s frontend is taken down, the registry exists on thousands of nodes globally.</li><li><strong>The Permanent Web (Arweave):</strong> While Solana handles the index, Arweave handles the storage. Using a “pay-once-store-forever” model, content is stored in a decentralized manner, making it impossible for a single hosting provider to “un-publish” a piece of investigative journalism.</li></ol><blockquote>“If the registry belongs to no one, it belongs to everyone. We have replaced the editor’s desk with a cryptographic consensus.”</blockquote><h3>Chapter 4: Practical Implementation for Journalists</h3><p>Using OpenBlock is a strategic departure from traditional Content Management Systems (CMS).</p><h3>1. Sovereign Identity</h3><p>Journalists use private keys to sign their work. This eliminates the “impersonation” risk prevalent in social media. If a state actor tries to release fake news under a journalist’s name, the blockchain signature will reveal the fraud instantly.</p><h3>2. Bypassing Intermediaries</h3><p>Because the content is served via decentralized gateways, it does not rely on the “Discoverability” algorithms mandated by Bill C-11. The relationship between the writer and the reader is direct and unmediated.</p><h3>Chapter 5: The Road Ahead</h3><p>OpenBlock Canada is more than a tool; it is a movement to reclaim the digital commons. We are building the infrastructure for a post-censorship era. The technology is here; the only thing missing is the collective will to adopt it.</p><h3>BECOME PART OF THE PROJECT</h3><p>We are looking for journalists, developers, and advocates for freedom of information to join Step 2 of our mission.</p><ul><li><strong>Follow &amp; DM us on Twitter:</strong> <a href="https://www.google.com/search?q=https://twitter.com/openblockca">@OpenBlockCA</a></li></ul><p><strong>The press was never meant to be licensed. So we made it unlicensable.</strong></p><p><em>Built on Solana. Immutable. Unlicensable. Canadian.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9efece563d7" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/openblock-canada-technical-sovereignty-the-permanent-press-b9efece563d7">OpenBlock Canada: Technical Sovereignty &amp; The Permanent Press</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[The OpenBlock Manifesto]]></title>
            <link>https://medium.com/@kauerspam/the-openblock-manifesto-01cfb60c02a2?source=rss-b23a231f5873------2</link>
            <guid isPermaLink="false">https://medium.com/p/01cfb60c02a2</guid>
            <category><![CDATA[journalism]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[canada]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[free-speech]]></category>
            <dc:creator><![CDATA[kauersaki]]></dc:creator>
            <pubDate>Sat, 02 May 2026 14:53:37 GMT</pubDate>
            <atom:updated>2026-05-02T14:53:37.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*npeciUAsaMf8yY-33LSE6w.jpeg" /></figure><p>Canadian news is disappearing from your feed. Not by accident. By law. Here’s what we built about it.</p><p><strong>The press was never meant to be licensed.</strong></p><p>For centuries, the freedom to publish — to report, to investigate, to dissent — was understood as something no government could grant or revoke. It was a right that existed before any law recognized it, and it survived because no single authority could control the means of distribution.</p><p>That is changing in Canada.</p><h3>What Is Happening</h3><p>Bill C-11 gives the CRTC authority to regulate online content. Bill C-18 has already caused major platforms to suppress Canadian news rather than pay for it. The result is not censorship by force — it is censorship by compliance.</p><p>Stories disappear not through bans, but through algorithms quietly adjusted to satisfy regulators. Canadians are losing access to independent journalism, and most of them don’t know it’s happening.</p><h3>What We Built</h3><p>We built OpenBlock because the solution to centralized control is decentralized infrastructure.</p><p>Every article published through OpenBlock is registered on the Solana blockchain and stored permanently on Arweave. It cannot be delisted. It cannot be shadow-banned. It cannot be removed by a platform responding to regulatory pressure. The record is immutable. The content is permanent. The act of publishing is irreversible.</p><h3>This Is Not a Protest. It Is Infrastructure.</h3><p>We are not asking permission to publish. We are building a system where permission is not required. We are not appealing to platforms to carry our stories. We are creating a registry that no platform controls. We are not waiting for laws to change. We are building outside the jurisdiction of laws that were never designed to protect the public — only to manage it.</p><p>OpenBlock is open source. Anyone can read the code, fork it, build on it, or deploy their own version. The registry belongs to no one, which means it belongs to everyone.</p><h3>What We Believe</h3><p><em>“A free press is not a privilege granted by governments — it is a condition of a free society.”</em></p><p><em>“Censorship that happens algorithmically is still censorship.”</em></p><p><em>“Decentralization is not a technical preference — it is a political necessity.”</em></p><p><em>“The answer to suppression is not louder appeals to the suppressors. It is infrastructure they cannot reach.”</em></p><p>If you are a journalist whose work has been buried, a reader who suspects you are not seeing the full picture, or a builder who believes the internet was supposed to be free — OpenBlock is for you.</p><p><strong>The press was never meant to be licensed.</strong></p><p><strong>So we made it unlicensable.</strong></p><p>— OpenBlock Canada 🇨🇦</p><p>openblock.ca · @OpenBlockCA · Built on Solana</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01cfb60c02a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built a Flash Loan Bot When I Couldn’t Afford Dinner]]></title>
            <link>https://coinsbench.com/i-built-a-flash-loan-bot-when-i-couldnt-afford-dinner-0a1a28c839bc?source=rss-b23a231f5873------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a1a28c839bc</guid>
            <category><![CDATA[trading-bot]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[kauersaki]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 12:40:24 GMT</pubDate>
            <atom:updated>2026-05-01T11:42:58.646Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*T7CxE0vTBYOhuYbe61idYQ.jpeg" /></figure><p><em>A story about DeFi, desperation, and what it actually feels like to deploy your first smart contract to mainnet.</em></p><p>I was hungry the night I deployed my first contract to Polygon mainnet.</p><p>Not dramatically hungry. Not the kind of hungry you write poetry about. Just the quiet, practical kind — the kind where you’re doing mental math on what’s left in the fridge and deciding that learning Solidity is a better use of the next four hours than thinking about it.</p><p>I had no CS degree. No bootcamp. No mentor. Just documentation, a terminal, and the particular kind of focus that comes when you don’t have a lot of other options.</p><p>This is the story of how I built a flash loan arbitrage bot — and what the live data actually showed me when I turned it on.</p><h3>What Even Is a Flash Loan?</h3><p>Before I get into it, let me explain the thing that made me obsessed with this for weeks.</p><p>A flash loan is a loan with no collateral. You borrow a million dollars, do something with it, and pay it back — all in the same transaction. If you can’t pay it back, the whole transaction reverts, like it never happened. The blockchain literally undoes it.</p><p>The math that makes this interesting: if Asset X costs $1.00 on DEX A and $1.01 on DEX B, you can borrow $100,000, buy everything on DEX A, sell it on DEX B, pocket the difference, repay the loan, and keep the profit. No capital required.</p><p>That’s the theory. I wanted to see if the theory survived contact with reality.</p><h3>Building the Thing</h3><p>I started with the Aave v3 documentation. Aave is one of the biggest DeFi protocols on Ethereum and Polygon — they offer flash loans through a clean interface. You implement a function called executeOperation, borrow what you need, do your logic, approve repayment, and return true. The protocol handles the rest.</p><p>My contract needed three things:</p><p><strong>1. The flash loan from Aave v3</strong> Borrow WMATIC (wrapped MATIC, the native token of Polygon).</p><p><strong>2. A swap on Uniswap V3</strong> Buy the asset on the first DEX using the borrowed funds.</p><p><strong>3. A swap on QuickSwap (Algebra)</strong> Sell it on the second DEX for a profit.</p><p>This is where I hit my first real wall.</p><p>Uniswap V3 and QuickSwap both look like the same DEX from a distance. They both have liquidity pools, they both use the same conceptual model. But their router interfaces are completely different under the hood. Uniswap V3 uses its own ISwapRouter. QuickSwap runs on the Algebra protocol and uses IAlgebraSwapRouter.</p><p>The function signatures are different. The parameter structs are different. Getting them to play nicely in the same contract took a full day of reading and a lot of failed compilations.</p><p>But eventually it compiled.</p><h3>The First Deployment</h3><p>There’s something about deploying a contract to mainnet that no tutorial prepares you for.</p><p>On a testnet, everything is fake. You’re not paying real gas. Nothing is real. You can be reckless.</p><p>Mainnet is different. When I ran the deployment script and watched my real MATIC leave my wallet for gas fees, my heart did something unpleasant. The contract address appeared on Polygonscan. It was live. Immutable. Mine.</p><p>I stared at it for a while.</p><h3>The Price Checker</h3><p>Before running the actual arbitrage, I built a price checker — a Python script that queried both DEXes in real time to check whether a spread actually existed.</p><p>This is the part where the story changes tone.</p><p>I ran the checker. It connected to both Uniswap V3 and QuickSwap via their on-chain quoter contracts. It compared prices on the same WMATIC/USDC pair in real time.</p><p>The spread it found: <strong>0.06%.</strong></p><p>To break even on a flash loan trade, after Aave’s fee, swap fees on both DEXes, and gas costs, you need roughly <strong>0.7%</strong> or more.</p><p>I ran it again. Same answer. Different block, same answer. I let it run for an hour.</p><p>The spread never got above 0.1%.</p><h3>What the Data Was Telling Me</h3><p>The Polygon DeFi ecosystem is efficient. More efficient than I expected.</p><p>MEV bots — automated programs run by sophisticated teams with optimized infrastructure — are constantly watching for exactly the kind of spread I was looking for. They see it before it’s profitable. They take it faster than a human can react. By the time an opportunity is large enough to be worth acting on, it’s already gone.</p><p>The spread I was seeing — 0.06% — wasn’t an opportunity. It was just background noise. The market breathing.</p><p>I had built a real contract. A working price checker. A functional arbitrage system. And the market had no profitable trade to give me.</p><h3>What I Actually Learned</h3><p>There’s a version of this story where I feel like I failed. I built a bot that didn’t make money. I was hungry. What was the point?</p><p>But here’s what I actually walked away with:</p><p><strong>I learned how DEX routers work at the interface level</strong> — not from a YouTube tutorial, but from reading the actual ABI, fighting with parameter structs, and fixing my own bugs.</p><p><strong>I learned that “it works” and “it’s profitable” are completely different things.</strong> A lot of people in DeFi conflate these. I won’t make that mistake again.</p><p><strong>I learned that the real competition in on-chain arbitrage isn’t other beginners.</strong> It’s teams with co-located servers, custom RPC infrastructure, and MEV-boost integrations. That’s who’s eating the spread before I can get there.</p><p><strong>And I learned that the blockchain doesn’t lie.</strong> The price data I pulled was real. The fees were real. The math was what it was. There’s something clarifying about working in a system where you can verify everything yourself.</p><h3>The Contract Is Still Live</h3><p>The contract still exists on Polygon mainnet. It’s not running. But it’s there, with my wallet’s signature attached to it, permanent on the chain.</p><p>That means something to me. Not because it made money — it didn’t. But because I made it, alone, without a degree or a team or anyone telling me what to do next.</p><p>I’m self-taught. I don’t have a CS background. I learned Solidity by reading documentation at night and testing things that didn’t work until they did.</p><p>If you’re doing the same thing — building stuff in the gaps, running scripts when you probably should be sleeping, trying to understand how this technology actually works instead of just watching it from the outside — I see you.</p><p>The spread wasn’t there this time.</p><p>I’ll be back when it is.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a1a28c839bc" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/i-built-a-flash-loan-bot-when-i-couldnt-afford-dinner-0a1a28c839bc">I Built a Flash Loan Bot When I Couldn’t Afford Dinner</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[I Deployed a Flash Loan Arbitrage Bot on Polygon Mainnet — Here’s Everything I Learned]]></title>
            <link>https://coinsbench.com/i-deployed-a-flash-loan-arbitrage-bot-on-polygon-mainnet-heres-everything-i-learned-19eab8802278?source=rss-b23a231f5873------2</link>
            <guid isPermaLink="false">https://medium.com/p/19eab8802278</guid>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[trading-bot]]></category>
            <category><![CDATA[blockchain-arbitration]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[kauersaki]]></dc:creator>
            <pubDate>Mon, 27 Apr 2026 21:31:16 GMT</pubDate>
            <atom:updated>2026-05-01T11:42:53.645Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*nyOkIdi0uvTJKyrdn97LzA.jpeg" /></figure><p><em>By kauersaki</em></p><p>I’m self-taught. No CS degree, no bootcamp, no mentor. Just a laptop, a terminal, and a lot of late nights reading documentation.</p><p>A few weeks ago I decided to stop reading about flash loans and actually build one. Today I have a live smart contract on Polygon mainnet that borrows USDC from Aave v3, routes trades through two different DEXes, and repays the loan — all in a single atomic transaction.</p><p>Here’s everything I learned, including the parts nobody talks about.</p><h3>What Even Is a Flash Loan?</h3><p>A flash loan is one of the few things in DeFi that genuinely has no real-world equivalent.</p><p>You borrow any amount — we’re talking thousands of dollars — with zero collateral. The catch is that you must repay it within the same blockchain transaction. If you don’t, the entire transaction reverts as if it never happened.</p><p>This sounds like a loophole. It kind of is. The reason it works is that blockchains execute transactions atomically — either everything succeeds or nothing does. Aave v3 uses this guarantee to offer uncollateralized loans because there’s literally no way to run off with the money.</p><p>The fee for this magic trick is 0.09% of whatever you borrow. Borrow $10,000 USDC, pay back $10,009.</p><h3>The Arbitrage Idea</h3><p>DEX arbitrage is simple in theory. Two decentralized exchanges quote slightly different prices for the same token pair. You buy on the cheaper one and sell on the more expensive one and keep the difference.</p><p>The problem is you need capital to do this. Flash loans solve that — you borrow the capital, execute both trades, repay the loan, and keep the spread, all in one transaction.</p><p>My target: the <strong>USDC/WPOL</strong> pair on <strong>QuickSwap</strong> (Algebra-based) and <strong>Uniswap V3</strong> on Polygon.</p><h3>Building the Contract</h3><p>The contract inherits from Aave’s FlashLoanSimpleReceiverBase, which handles most of the plumbing. The key function is executeOperation — Aave calls this automatically after sending you the borrowed funds, and you have to return true plus approve repayment before it ends.</p><p>Here’s the core logic:</p><p>solidity</p><pre>function executeOperation(<br>    address asset,<br>    uint256 amount,<br>    uint256 premium,<br>    address,<br>    bytes calldata<br>) external override returns (bool) {<br>    // Step 1: Buy WPOL with USDC on QuickSwap<br>    IERC20(USDC).approve(QUICKSWAP_ROUTER, amount);<br>    uint256 wpolReceived = IAlgebraRouter(QUICKSWAP_ROUTER).exactInputSingle(<br>        IAlgebraRouter.ExactInputSingleParams({<br>            tokenIn:          USDC,<br>            tokenOut:         WPOL,<br>            recipient:        address(this),<br>            deadline:         block.timestamp + 60,<br>            amountIn:         amount,<br>            amountOutMinimum: 0,<br>            limitSqrtPrice:   0<br>        })<br>    );</pre><pre>    // Step 2: Sell WPOL for USDC on Uniswap V3<br>    IERC20(WPOL).approve(UNISWAP_ROUTER, wpolReceived);<br>    IUniswapV3Router(UNISWAP_ROUTER).exactInputSingle(<br>        IUniswapV3Router.ExactInputSingleParams({<br>            tokenIn:           WPOL,<br>            tokenOut:          USDC,<br>            fee:               100,<br>            recipient:         address(this),<br>            deadline:          block.timestamp + 60,<br>            amountIn:          wpolReceived,<br>            amountOutMinimum:  0,<br>            sqrtPriceLimitX96: 0<br>        })<br>    );</pre><pre>    // Step 3: Repay Aave<br>    IERC20(asset).approve(address(POOL), amount + premium);<br>    return true;<br>}</pre><p>One thing that tripped me up early: <strong>QuickSwap and Uniswap V3 have different router interfaces</strong>. Uniswap V3 takes a fee tier and sqrtPriceLimitX96. QuickSwap uses Algebra under the hood and takes limitSqrtPrice instead, with no fee parameter. They look similar but are not interchangeable — I learned this the hard way.</p><h3>The Part Nobody Warns You About</h3><p>I built the contract, deployed it, and then wrote a price checker to see the live spread between the two DEXes.</p><pre>🔍 Checking prices for 100 USDC → WPOL...</pre><pre>Uniswap V3:  100 USDC → 1085.9087 WPOL<br>QuickSwap:   100 USDC → 1086.5616 WPOL</pre><pre>📊 Spread: 0.060%<br>❌ Spread too small — not profitable after fees.</pre><p>0.06%. You need roughly 0.7% to break even after Aave’s fee plus both swap fees.</p><p>Here’s what nobody tells you when they post flash loan tutorials: <strong>the spread you need almost never exists</strong>, because hundreds of bots are already arbitraging it away in milliseconds. By the time your transaction lands, the opportunity is gone.</p><p>This isn’t a flaw in the code. The code works perfectly. The problem is the environment — Polygon DEX arbitrage is one of the most competitive MEV environments on any chain.</p><h3>What the Contract Gets Right</h3><p>Even though profitable opportunities are rare, the contract architecture is solid:</p><p><strong>Atomic execution</strong> — if anything fails, the whole transaction reverts. You can’t lose the borrowed funds because Aave’s repayment check reverts everything if it isn’t met.</p><p><strong>Owner-only controls</strong> — only the deployer can trigger the flash loan or withdraw profits, preventing anyone else from draining the contract.</p><p><strong>Dual DEX routing</strong> — the contract correctly handles two completely different router interfaces in a single transaction.</p><p><strong>Live on mainnet</strong> — contract address 0x9be08d88B5Db4385948351471BD6c653EE41e0a2 on Polygon, verifiable on PolygonScan.</p><h3>What I’d Improve</h3><p><strong>Slippage protection.</strong> Both swaps currently have amountOutMinimum: 0, meaning a sandwich bot could manipulate prices mid-transaction and leave the contract with less than needed to repay Aave. In production you&#39;d calculate a minimum acceptable output before submitting.</p><p><strong>Dynamic direction.</strong> The contract always buys on QuickSwap and sells on Uniswap. A better version would check prices off-chain first and pass the direction as a parameter.</p><p><strong>Profit guard.</strong> Adding a require(usdcAfter &gt; amount + premium) check before repaying would make the revert reason explicit rather than letting Aave revert it silently.</p><h3>The Real Takeaway</h3><p>I went into this expecting to make money. I came out understanding why making money this way is genuinely hard — and that turned out to be more valuable.</p><p>I now understand:</p><ul><li>How Aave v3 flash loans work at the contract level</li><li>The difference between Uniswap V3 and Algebra DEX architectures</li><li>How to query on-chain quoters to estimate swap output</li><li>Why MEV is a competition, not a faucet</li><li>How to deploy and verify contracts on Polygon mainnet with Hardhat 3</li></ul><p>None of that came from a tutorial. It came from building something real and watching it hit the wall of reality.</p><p>If you’re learning Solidity, I’d recommend doing exactly this — pick a real protocol, integrate it, deploy to mainnet, and see what happens. The gap between “I understand flash loans” and “I deployed one” is enormous, and crossing it is worth more than any course.</p><p><em>The full contract and scripts are on GitHub. If you have questions or want to collaborate on something in the Web3 space, find me here on Medium.</em></p><p>Tags: Blockchain, Solidity, DeFi, Ethereum, Web3</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19eab8802278" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/i-deployed-a-flash-loan-arbitrage-bot-on-polygon-mainnet-heres-everything-i-learned-19eab8802278">I Deployed a Flash Loan Arbitrage Bot on Polygon Mainnet — Here’s Everything I Learned</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>
    </channel>
</rss>