<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>autonomy &amp;mdash; On the Block</title>
    <link>https://paper.wf/on-the-block/tag:autonomy</link>
    <description>Read a 13-year-old&#39;s ramblings about DeFi, free software and economics. But mainly DeFi.</description>
    <pubDate>Sat, 30 May 2026 14:32:20 +0000</pubDate>
    <item>
      <title>Grape Wars: Attack of the Bots</title>
      <link>https://paper.wf/on-the-block/grape-wars-attack-of-the-bots</link>
      <description>&lt;![CDATA[Today I was getting ready for the Grape Finance AMA. Everything seemed fine and dandy but then I saw a particular message that piqued my interest...&#xA;&#xA;!--more--&#xA;&#xA;A Discord message from the #ama-weekly-questions server.&#xA;&#xA;  &#34;Can we orchestrate an attack on the bot ruining the fun in Gladiators KoC Grape tournament? @Andy_Tomb and myself took him for a fair few grape last night but he&#39;s restocked and we don&#39;t want to have to have that fight again on our own!&#34;&#xA;&#xA;Bot? Ruining the fun? Not on my watch!&#xA;&#xA;For some context, Gladiator King of the Colosseum is a sort of game where you have to hold your position as &#34;king of the Colosseum&#34; straight for a time duration (3 hours for the GRAPE KoC).&#xA;&#xA;Any player can just send a transaction, pay a small amount of GRAPE (currently 1.08 GRAPE) and become the new king, so you have to defend your position day and night, stopping others from winning the grand reward pool.&#xA;&#xA;However, the fun was ruined when one person decided to build a bot to do this. People had to defend their positions against a bot that didn&#39;t need to sleep, eat, touch grass or take a break in any way. It just kept entering.&#xA;&#xA;Game plan: Counter the bot WITH a bot&#xA;&#xA;I brainstormed ideas with people in the #ama-live-chat channel. We had a game plan: outbot the bot, make them give up.&#xA;&#xA;Idea 1&#xA;Build a Node.JS bot to watch transactions, test the bot, rent a VPS, maintain this VPS... nah. This idea got scrapped because it&#39;s just too much effort and too much cost to just fuck over a bot messing with a game.&#xA;&#xA;So then what?&#xA;&#xA;Eureka! Using Gelato Network to automate transactions&#xA;We thought a lot and talked a lot in the chat which we now moved to the top secret OG-only #og-chat. Suddenly, it came to me and I sent a message in the thread.&#xA;&#xA;  https://gelato.network/ can be used to outsource the execution of tasks, i believe it&#39;s reliable enough to be able to send a transaction within a 3 hour range&#xA;&#xA;Gelato Network. It&#39;s a system of bots that send transactions at specific times or whenever possible. These automated transactions are incredibly important for this!&#xA;&#xA;Now, I didn&#39;t have to code in JS with a blockchain library like ethers.js which I didn&#39;t know so well. I could just code in Solidity, a language I&#39;ve gotten very accustomed to!&#xA;&#xA;It worked on the first second try&#xA;&#xA;The code is very simple, the logic is only about a hundred lines (the interfaces don&#39;t count of course) In fact, you can check it out here at this address: 0x34521c12104f8af6c5cfe139a107e6d7f49ebd7e&#xA;&#xA;I then hooked it up to Gelato Network, so it would scan every block, check if my transaction would execute, then if it did, run it to go kick out that piece of sh enemy bot.&#xA;&#xA;Currently it&#39;s at about 5 executions on Gelato (and one test execution to kick that bot out manually!) at the time of this writing. You can see them all in the Events tab on Snowtrace.&#xA;&#xA;Grape go brrr! https://grapefinance.app&#xA;&#xA;#defi #bots #autonomy #gelato #p2e&#xA;&#xA;div class=&#34;post-footer-links&#34;&#xD;&#xA;a rel=&#34;me&#34; href=&#34;https://mastodon.social/@cybertelx&#34;my mastodon/a • a href=&#34;https://github.com/cybertelx&#34;my github/a • please donate if you can: a href=&#34;https://snowtrace.io/address/0x3e86ab8925af073e1f1b3780d9cb77550ee19a6e&#34;0x3e86ab8925af073e1f1b3780d9cb77550ee19a6e/a&#xD;&#xA;/div]]&gt;</description>
      <content:encoded><![CDATA[<p>Today I was getting ready for the Grape Finance AMA. Everything seemed fine and dandy but then I saw a particular message that piqued my interest...</p>



<p><img src="https://iili.io/h035Ol.png" alt="A Discord message from the #ama-weekly-questions server."></p>

<blockquote><p>“Can we orchestrate an attack on the bot ruining the fun in <a href="https://gladiatorfinance.app/koc" rel="nofollow">Gladiators KoC Grape tournament</a>? @Andy_Tomb and myself took him for a fair few grape last night but he&#39;s restocked and we don&#39;t want to have to have that fight again on our own!”</p></blockquote>

<p>Bot? Ruining the fun? Not on my watch!</p>

<p>For some context, Gladiator King of the Colosseum is a sort of game where you have to hold your position as “king of the Colosseum” straight for a time duration (3 hours for the GRAPE KoC).</p>

<p>Any player can just send a transaction, pay a small amount of GRAPE (currently 1.08 GRAPE) and become the new king, so you have to defend your position day and night, stopping others from winning the grand reward pool.</p>

<p>However, the fun was ruined when one person decided to build a bot to do this. People had to defend their positions against a bot that didn&#39;t need to sleep, eat, touch grass or take a break in any way. It just kept entering.</p>

<h2 id="game-plan-counter-the-bot-with-a-bot" id="game-plan-counter-the-bot-with-a-bot">Game plan: Counter the bot WITH a bot</h2>

<p>I brainstormed ideas with people in the <a href="/on-the-block/tag:ama" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">ama</span></a>-live-chat channel. We had a game plan: outbot the bot, make them give up.</p>

<h2 id="idea-1" id="idea-1">Idea 1</h2>

<p>Build a Node.JS bot to watch transactions, test the bot, rent a VPS, maintain this VPS... nah. This idea got scrapped because it&#39;s just too much effort and too much cost to just fuck over a bot messing with a game.</p>

<p>So then what?</p>

<h2 id="eureka-using-gelato-network-to-automate-transactions" id="eureka-using-gelato-network-to-automate-transactions">Eureka! Using Gelato Network to automate transactions</h2>

<p>We thought a lot and talked a lot in the chat which we now moved to the top secret OG-only <a href="/on-the-block/tag:og" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">og</span></a>-chat. Suddenly, it came to me and I sent a message in the thread.</p>

<blockquote><p><a href="https://gelato.network/" rel="nofollow">https://gelato.network/</a> can be used to outsource the execution of tasks, i believe it&#39;s reliable enough to be able to send a transaction within a 3 hour range</p></blockquote>

<p><a href="https://gelato.network" rel="nofollow">Gelato Network.</a> It&#39;s a system of bots that send transactions at specific times or whenever possible. These automated transactions are incredibly important for this!</p>

<p>Now, I didn&#39;t have to code in JS with a blockchain library like ethers.js which I didn&#39;t know so well. I could just code in Solidity, a language I&#39;ve gotten very accustomed to!</p>

<h2 id="it-worked-on-the-first-second-try" id="it-worked-on-the-first-second-try">It worked on the <del>first</del> second try</h2>

<p>The code is very simple, the logic is only about a hundred lines (the interfaces don&#39;t count of course) In fact, you can check it out here at this address: <a href="https://snowtrace.io/address/0x34521c12104f8af6c5cfe139a107e6d7f49ebd7e" rel="nofollow">0x34521c12104f8af6c5cfe139a107e6d7f49ebd7e</a></p>

<p>I then hooked it up to Gelato Network, so it would scan every block, check if my transaction would execute, then if it did, run it to go kick out that <del>piece of sh</del> enemy bot.</p>

<p>Currently it&#39;s at about 5 executions on Gelato (and one test execution to kick that bot out manually!) at the time of this writing. You can see them all in the Events tab on Snowtrace.</p>

<p>Grape go brrr! <a href="https://grapefinance.app" rel="nofollow">https://grapefinance.app</a></p>

<p><a href="/on-the-block/tag:defi" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">defi</span></a> <a href="/on-the-block/tag:bots" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">bots</span></a> <a href="/on-the-block/tag:autonomy" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">autonomy</span></a> <a href="/on-the-block/tag:gelato" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">gelato</span></a> <a href="/on-the-block/tag:p2e" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">p2e</span></a></p>

<div class="post-footer-links">
<a href="https://mastodon.social/@cybertelx" rel="nofollow">my mastodon</a> • <a href="https://github.com/cybertelx" rel="nofollow">my github</a> • please donate if you can: <a href="https://snowtrace.io/address/0x3e86ab8925af073e1f1b3780d9cb77550ee19a6e" rel="nofollow">0x3e86ab8925af073e1f1b3780d9cb77550ee19a6e</a>
</div>
]]></content:encoded>
      <guid>https://paper.wf/on-the-block/grape-wars-attack-of-the-bots</guid>
      <pubDate>Sat, 11 Jun 2022 19:53:37 +0000</pubDate>
    </item>
    <item>
      <title>Giving smart contracts autonomy</title>
      <link>https://paper.wf/on-the-block/giving-smart-contracts-autonomy</link>
      <description>&lt;![CDATA[Smart contracts are like complicated vending machines. They can&#39;t do anything on their own, they can&#39;t just dispense lots of soda randomly, or grow legs and arms to fight a competing vending machine in the area. But what if they could? What if they could create transactions on their own?&#xA;!--more--&#xA;&#xA;Autonomy Network&#xA;Autonomy Network is a system that allows smart contracts to queue Requests in the Registry contract, with a trigger (e.g. price of ABC goes above 500$). The system then, when the condition is met, calls the contract to do whatever it needs to do.&#xA;&#xA;It works by a sort of Proof-of-Stake system. &#34;Validators&#34; (bots) can lock their AUTO (in the StakeManager contract) to get the exclusive right to execute Requests for a certain period of blocks.&#xA;&#xA;In exchange, the smart contract has to pay enough ETH or AUTO to cover gas fees and a little extra to make it worthwhile for that validator.&#xA;&#xA;Autonomy&#39;s PoS structure vs. &#34;Free-for-all&#34; incentives&#xA;Current ways of trying to achieve autonomous transactions is to incentivize bots to do it, for example, the compounding of an autocompounder.&#xA;&#xA;This is like putting a small pile of money that is just about worthwhile for somebody to grab, so 100 bots will try and lunge for it before the other ones, and one random lucky bot will win the grand prize of... 5 cents after gas, probably, while everyone else fails.&#xA;&#xA;This works, but is inefficient, prone to frontrunning and this free-for-all battle can make it not worthwhile for the bot, as there is a high chance of loss and a tiny chance of earning (and tiny earnings).&#xA;&#xA;Frontrunners&#xA;Bots aren&#39;t instant, they have to pay for gas and their transactions will sit quietly in the memory pool. Generalized frontrunners can scan the memory pool and copy profitable transactions with a slightly higher gas price, and so the bots trying to grab the pile of money end up being outpaced by those frontrunners.&#xA;&#xA;Inefficiency&#xA;For every lucky bot that succeeds, there are at least 5 more who fail. The model of a free-for-all means there can be only one.&#xA;&#xA;The combination of all these factors causes bots to slowly become disincentivized as more bots join in, with extremely tiny profit margins and high chances of loss. This causes bot makers to just &#34;give up&#34;, turning off their losing bots. This also leads to centralization, as certain people have an &#34;edge&#34; over others, such as well-connected nodes or an agreement with a miner.&#xA;&#xA;To contrast, Autonomy Network is more structured, with each validator bot having the exclusive rights to grab these piles of money at different times. This stops these cycles of bots bumping into each other as they wrestle for this tiny pile of money, saving a lot of time, gas and having better economic guarantees that your request will be executed (if you pay enough).&#xA;&#xA;What can Autonomy be used for?&#xA;Right now, Autonomy Network hasn&#39;t launched most of its stuff yet, like the AUTO token, or its documentation. It&#39;s in beta currently.&#xA;&#xA;The current main usecase of Autonomy is trading. Autonomy&#39;s request architecture allows for limit orders and other stuff available on a CEX, on AutoSwap.Trade.&#xA;&#xA;It could potentially be used in the future to create blockchain life, or NFTs that can run transactions on their own and be autonomous, these things could be used in the Metaverse too. Who knows?&#xA;&#xA;I think Autonomy&#39;s really cool and I&#39;ll definitely be buying the token when it launches. Not financial advice by the way.&#xA;&#xA;🚀&#xA;---&#xA;tags down here as to not interrupt your reading:&#xA;#autonomy #defi #dapp #dev #nft #pos #dex&#xA;&#xA;div class=&#34;post-footer-links&#34;&#xD;&#xA;a rel=&#34;me&#34; href=&#34;https://mastodon.social/@cybertelx&#34;my mastodon/a • a href=&#34;https://github.com/cybertelx&#34;my github/a • please donate if you can: a href=&#34;https://snowtrace.io/address/0x3e86ab8925af073e1f1b3780d9cb77550ee19a6e&#34;0x3e86ab8925af073e1f1b3780d9cb77550ee19a6e/a&#xD;&#xA;/div]]&gt;</description>
      <content:encoded><![CDATA[<p>Smart contracts are like complicated vending machines. They can&#39;t do anything on their own, they can&#39;t just dispense lots of soda randomly, or grow legs and arms to fight a competing vending machine in the area. But what if they could? What if they could create transactions on their own?
</p>

<h2 id="autonomy-network" id="autonomy-network">Autonomy Network</h2>

<p><a href="https://autonomynetwork.io" rel="nofollow">Autonomy Network</a> is a system that allows smart contracts to queue Requests in the Registry contract, with a trigger (e.g. price of ABC goes above 500$). The system then, when the condition is met, calls the contract to do whatever it needs to do.</p>

<p>It works by a sort of Proof-of-Stake system. “Validators” (bots) can lock their AUTO (in the StakeManager contract) to get the exclusive right to execute Requests for a certain period of blocks.</p>

<p>In exchange, the smart contract has to pay enough ETH or AUTO to cover gas fees and a little extra to make it worthwhile for that validator.</p>

<h2 id="autonomy-s-pos-structure-vs-free-for-all-incentives" id="autonomy-s-pos-structure-vs-free-for-all-incentives">Autonomy&#39;s PoS structure vs. “Free-for-all” incentives</h2>

<p>Current ways of trying to achieve autonomous transactions is to incentivize bots to do it, for example, the compounding of an autocompounder.</p>

<p>This is like putting a small pile of money that is just about worthwhile for somebody to grab, so 100 bots will try and lunge for it before the other ones, and one random lucky bot will win the grand prize of... 5 cents after gas, probably, while everyone else fails.</p>

<p>This works, but is inefficient, prone to frontrunning and this free-for-all battle can make it not worthwhile for the bot, as there is a high chance of loss and a tiny chance of earning (and tiny earnings).</p>

<h4 id="frontrunners" id="frontrunners">Frontrunners</h4>

<p>Bots aren&#39;t instant, they have to pay for gas and their transactions will sit quietly in the memory pool. <a href="https://www.paradigm.xyz/2020/08/ethereum-is-a-dark-forest" rel="nofollow">Generalized frontrunners can scan the memory pool</a> and copy profitable transactions with a slightly higher gas price, and so the bots trying to grab the pile of money end up being outpaced by those frontrunners.</p>

<h4 id="inefficiency" id="inefficiency">Inefficiency</h4>

<p>For every lucky bot that succeeds, there are at least 5 more who fail. The model of a free-for-all means <a href="https://www.youtube.com/watch?v=sqcLjcSloXs" rel="nofollow">there can be only one</a>.</p>

<p>The combination of all these factors causes bots to slowly become disincentivized as more bots join in, with extremely tiny profit margins and high chances of loss. This causes bot makers to just “give up”, turning off their losing bots. This also leads to centralization, as certain people have an “edge” over others, such as well-connected nodes or an agreement with a miner.</p>

<p>To contrast, Autonomy Network is more structured, with each validator bot having the exclusive rights to grab these piles of money at different times. This stops these cycles of bots bumping into each other as they wrestle for this tiny pile of money, saving a lot of time, gas and having better economic guarantees that your request will be executed (if you pay enough).</p>

<h2 id="what-can-autonomy-be-used-for" id="what-can-autonomy-be-used-for">What can Autonomy be used for?</h2>

<p>Right now, Autonomy Network hasn&#39;t launched most of its stuff yet, like the AUTO token, or its documentation. It&#39;s in beta currently.</p>

<p>The current main usecase of Autonomy is trading. Autonomy&#39;s request architecture allows for <a href="https://autoswap.trade" rel="nofollow">limit orders and other stuff available on a CEX, on AutoSwap.Trade</a>.</p>

<p>It could potentially be used in the future to <a href="https://blog.autonomynetwork.io/sentient-nfts-a-new-form-of-life-part-1-the-roadmap-590237e18753" rel="nofollow">create blockchain life</a>, or NFTs that can run transactions on their own and be autonomous, these things could be used in the Metaverse too. Who knows?</p>

<p>I think Autonomy&#39;s really cool and I&#39;ll definitely be buying the token when it launches. Not financial advice by the way.</p>

<p>🚀</p>

<hr>

<p>tags down here as to not interrupt your reading:
<a href="/on-the-block/tag:autonomy" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">autonomy</span></a> <a href="/on-the-block/tag:defi" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">defi</span></a> <a href="/on-the-block/tag:dapp" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">dapp</span></a> <a href="/on-the-block/tag:dev" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">dev</span></a> <a href="/on-the-block/tag:nft" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">nft</span></a> <a href="/on-the-block/tag:pos" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">pos</span></a> <a href="/on-the-block/tag:dex" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">dex</span></a></p>

<div class="post-footer-links">
<a href="https://mastodon.social/@cybertelx" rel="nofollow">my mastodon</a> • <a href="https://github.com/cybertelx" rel="nofollow">my github</a> • please donate if you can: <a href="https://snowtrace.io/address/0x3e86ab8925af073e1f1b3780d9cb77550ee19a6e" rel="nofollow">0x3e86ab8925af073e1f1b3780d9cb77550ee19a6e</a>
</div>
]]></content:encoded>
      <guid>https://paper.wf/on-the-block/giving-smart-contracts-autonomy</guid>
      <pubDate>Thu, 03 Mar 2022 16:40:00 +0000</pubDate>
    </item>
  </channel>
</rss>