<?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 yuichiro aoki on Medium]]></title>
        <description><![CDATA[Stories by yuichiro aoki on Medium]]></description>
        <link>https://medium.com/@yuichiroaoki?source=rss-f1edf0523484------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*LCXYyCfOqhyQQ-d-</url>
            <title>Stories by yuichiro aoki on Medium</title>
            <link>https://medium.com/@yuichiroaoki?source=rss-f1edf0523484------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:26:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yuichiroaoki/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[How Uniswap Auto Router Works]]></title>
            <link>https://medium.com/coinmonks/how-uniswap-auto-router-works-74c8bbf93c3?source=rss-f1edf0523484------2</link>
            <guid isPermaLink="false">https://medium.com/p/74c8bbf93c3</guid>
            <category><![CDATA[dex]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[yuichiro aoki]]></dc:creator>
            <pubDate>Thu, 13 Jul 2023 06:21:46 GMT</pubDate>
            <atom:updated>2023-07-14T13:01:33.164Z</atom:updated>
            <content:encoded><![CDATA[<h4>Library to get the best route on uniswap used in production</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vjse3dXTyCyLLOxm.png" /><figcaption>Uniswap Auto Router</figcaption></figure><p>Uniswap Auto Router gives you the best route on uniswap by splitting the trade. It is used in production and basically you input the tokens to trade and the amount, it will tell you the best route, quote, gas adjusted quote, etc.</p><p>I’m just curious how it made possible to get the optimized trade part, so I looked into it. It has so much code, so it took me while to figure out how it works.</p><p><a href="https://blog.uniswap.org/auto-router">Official Blog</a></p><h4>Get pool data</h4><p>The auto router gets the pool data from subgraph pools with the following uri:</p><pre>https://cloudflare-ipfs.com/ipns/api.uniswap.org/v1/pools/${protocol}/${chainName}.json</pre><p>For example, you can get uniswap V3 pool data on polygon mainnet with <a href="https://cloudflare-ipfs.com/ipns/api.uniswap.org/v1/pools/v3/polygon-mainnet.json">https://cloudflare-ipfs.com/ipns/api.uniswap.org/v1/pools/v3/polygon-mainnet.json</a>.</p><p>The json data contains an array of each pool info like the following:</p><pre>{<br> &quot;id&quot;: &quot;0x0004302b6a85e5e4ecc88317efe3ce4da7f7f05e&quot;,<br> &quot;token0&quot;: {<br>  &quot;id&quot;: &quot;0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270&quot;<br> },<br> &quot;token1&quot;: {<br>  &quot;id&quot;: &quot;0x6e6dab6be7c102eb4ff73e82046dd9d0f9bbc3aa&quot;<br> },<br> &quot;feeTier&quot;: &quot;100&quot;,<br> &quot;liquidity&quot;: &quot;49999990208047568803&quot;,<br> &quot;tvlETH&quot;: 0.0025879711685522673,<br> &quot;tvlUSD&quot;: 3.34181459860312<br>}</pre><p>id means an address, and tvlUSD means the total market value of the pool that has in USD.</p><p><a href="https://github.com/Uniswap/smart-order-router/blob/2cd43f1174c91740c1ae09fae8fcd8d6773d2df7/src/routers/alpha-router/alpha-router.ts#L534-L569">smart-order-router/src/routers/alpha-router/alpha-router.ts at 2cd43f1174c91740c1ae09fae8fcd8d6773d2df7 · Uniswap/smart-order-router</a></p><p>This is useful when you want to get all uniswap pool info without a node rpc url.</p><h4>Get candidate pools</h4><p>In order to speed up getting the best route, it first filter out pools by checking whether it has blocked tokens, tokens to trade, etc.</p><p><a href="https://github.com/Uniswap/smart-order-router/blob/main/src/routers/alpha-router/functions/get-candidate-pools.ts">smart-order-router/src/routers/alpha-router/functions/get-candidate-pools.ts at main · Uniswap/smart-order-router</a></p><h4>Computing all routes</h4><p>After getting all relevant pools, it computes the possible routes to connect token in and token out. computeAllRoutes is the function that gets the possible routes. It figures out what pools fit in the next with loop and does this recursively.</p><p><a href="https://github.com/Uniswap/smart-order-router/blob/2cd43f1174c91740c1ae09fae8fcd8d6773d2df7/src/routers/alpha-router/functions/compute-all-routes.ts#L67-L140">smart-order-router/src/routers/alpha-router/functions/compute-all-routes.ts at 2cd43f1174c91740c1ae09fae8fcd8d6773d2df7 · Uniswap/smart-order-router</a></p><p>When I was doing MEV, I used Neo4j to find possible routes and cache the result to key-value DB, so I’m interested in which is the better approach. This is where you can optimize with the compiled language like Rust for better performance. I hope Uniswap team build the next router with Rust or Go.</p><p><a href="https://github.com/yuichiroaoki/chaser/blob/6c37e83f416cb626078ab434e99d90ba4d0f9048/dexquote/src/path/mod.rs#L64-L156">Rust implementation</a></p><h4>Get quotes</h4><p>After getting routes, it will get quotes for the combination of every route and every amount. In the next part, it will combine all the quotes for small parts to get the best combinations of routes and trading parts. In order to do that, first it have to get all the quotes for each small trading part of each route. It quotes uniswap V3 prices with Quotercontract, which you can simulate the swap with eth_call method using a node api.</p><p>e.g.</p><p>Found 26 possible routes</p><p>percentages: [5%, 10%, 15%, … 100%] (20 parts)</p><p>Number of Quotes: 26 * 20 = 520</p><p>Speaking of quoting uniswap V3 prices, when I was doing MEV, I stored all the uniswap V3 pool states on Redis and query prices using that Redis. You can update the pool states with just listening to liquidity and swap events, so I like this method. It’s fast and doesn’t even require to run a node.</p><p><a href="https://github.com/Uniswap/smart-order-router/blob/2cd43f1174c91740c1ae09fae8fcd8d6773d2df7/src/routers/alpha-router/quoters/base-quoter.ts#L86-L124">smart-order-router/src/routers/alpha-router/quoters/base-quoter.ts at 2cd43f1174c91740c1ae09fae8fcd8d6773d2df7 · Uniswap/smart-order-router</a></p><h4>Get the best route</h4><p>With all the possible routes and quotes, you can finally estimate the best route for a swap. First, it seeds a queue with the best quotes for each percentage. For routes without splitting, it can order by their 100% quotes. Quotes that are less than 100% need other parts to complete the swap, so it construct the swaps by filling other quotes to fit in. Pools for each split need to be different.</p><p>e.g. 1900 USDC -&gt; WETH</p><p>(): percentage of trade</p><p>1 split</p><ul><li>USDC/WETH 0.5% fee (100%)</li><li>USDC/WETH 0.1% fee (100%)</li></ul><p>2 splits</p><ul><li>USDC/WETH 0.5% fee (95%), USDC/DAI 0.1% fee (5%) -&gt; DAI/WETH 0.5% fee</li><li>USDC/WETH 0.5% fee (95%), USDC/WBTC 0.5% fee (5%) -&gt; WBTC/WETH 0.5% fee</li></ul><p>Top 5 quotes for each split can be added to the best route queue. And after the gas factored in, it orders them by the highest quotes, and that’s how it get the best route.</p><p><a href="https://github.com/Uniswap/smart-order-router/blob/main/src/routers/alpha-router/functions/best-swap-route.ts">smart-order-router/src/routers/alpha-router/functions/best-swap-route.ts at main · Uniswap/smart-order-router</a></p><p>I might have skipped important parts, so please correct me if I’m wrong. This could work with any Dex protocols except the quoting part. Splitting trade increases the gas use and need so many quotes, but it increase the amount you receive especially when you trade low-cap tokens or a huge amount of capitals.</p><h3>Final Thoughts</h3><p>Overall, the core algorithm of Uniswap Auto Router was not so complicated. I initially thought they might have some fancy math formulas to get the best route. However, what it does is to divide into small parts, to quote each one by one with the Quoter contract, and to combine all quotes like building LEGO.</p><p>I’m currently experimenting a tool to get the best route. This library gave me some insights on how to approach it. I’m doing this because I hope to build something that helps people trade safely, but who knows. Let’s see how it goes. I feel better because I can opensource every single piece of code I write now.</p><p>If you have any trading strategy you want to try but don’t know how to build, please reach me out on <a href="https://twitter.com/FF1KAaniyz7Tc3N">twitter</a>. I can help you build your bots with ~$1,000.</p><p>Thank you for reading😁</p><h4>References</h4><ul><li><a href="https://blog.uniswap.org/auto-router">https://blog.uniswap.org/auto-router</a></li><li><a href="https://github.com/Uniswap/smart-order-router">https://github.com/Uniswap/smart-order-router</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74c8bbf93c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/how-uniswap-auto-router-works-74c8bbf93c3">How Uniswap Auto Router Works</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[Liquidity Backrun — MEV analysis]]></title>
            <link>https://yuichiroaoki.medium.com/liquidity-backrun-mev-analysis-d040afbae466?source=rss-f1edf0523484------2</link>
            <guid isPermaLink="false">https://medium.com/p/d040afbae466</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[yuichiro aoki]]></dc:creator>
            <pubDate>Tue, 11 Jul 2023 13:28:02 GMT</pubDate>
            <atom:updated>2023-07-11T13:28:02.685Z</atom:updated>
            <content:encoded><![CDATA[<h3>Liquidity Backrun — MEV analysis</h3><h4>How searchers make money by backrunning adding liquidity events</h4><p>Arbitrage MEV bots watch the swap transactions to see if there is any opportunities to backrun for the most part, but sometimes they make money by backrunning liquidity related transactions like `addLiquidity` from Uniswap V2 protocol.</p><p><a href="https://github.com/yuichiroaoki/chaser/blob/main/contracts/test/LiquidityEventBackrun.t.sol">Code</a></p><p>Here are the transactions.</p><p>Trigger transaction</p><p><a href="https://arbiscan.io/tx/0x795114e6f654bd61649c3aa83d698b7add2340a7940f466ed4ec1bfb873d9d95">Arbitrum Transaction Hash (Txhash) Details | Arbiscan</a></p><p>Backrun transaction</p><p><a href="https://arbiscan.io/tx/0x7e84c5153f513a0b49c667f1d6fbdb8602efdeae23cab7fd255d16f3314f7214">Arbitrum Transaction Hash (Txhash) Details | Arbiscan</a></p><p>In the trigger transaction, a user(0x0CF47073093Ec2f3C28f7b2A03A9fC345D6af678) added 266.29 WOO and 103 USDC to USDC/WOO pool on SushiSwap using SushiSwap Router.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*QaQ3i6aPhrNFYtK58wuG-Q.png" /><figcaption>trigger transaction</figcaption></figure><p>In the backrun transaction, a bot borrowed 22.22 USDC with flashloan from Balancer, swap 22.22 USDC to 107.8 WOO on WoofiV2, and swap 107.8 WOO to 29.62 USDC to USDC/WOO pool on SushiSwap. The bot made 7.4 USDC profit in this transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*5_WuxkYVKIsCJGqVJMptPw.png" /><figcaption>liquidity backrun</figcaption></figure><h4>Why this happened</h4><p>Because the initial token market value ratio of this USDC/WOO pool was not correct, the user accidentally added the tokens with an unbalanced market value to the pool.</p><p>initial reserves<br>0.001537 USDC</p><p>0.00397 WOO (~$0.00087)</p><p>market value ratio<br>USDC:WOO = 0.001537:0.00397 = 0.387:1</p><p>Usually, MEV searchers fill this kind of gap right away, but since the amount of liquidity of the pool was too small and the profit will be too small, no one filled the gap for a while.</p><h4>How to prevent</h4><p>You have to be careful when you add liquidity especially when the pool is new or the liquidity is small because you are the one lose money by adding wrong token amounts.</p><p>Remove liquidity transaction for the user</p><p><a href="https://arbiscan.io/tx/0xd86c3561626aacb4bdf10109772fb78f7767842aa2f917a68c3973fb71b186dc">Arbitrum Transaction Hash (Txhash) Details | Arbiscan</a></p><p>As you can see, the user ended up losing some money compared to the value added to the pool.</p><h4>What were the correct amounts to add</h4><p>Given that a good liquidity ratio on UniV2 pools is where the market value of the two tokens roughly are equal, I thought it would be better to add the amount to meet that condition. So let’s simulate that scenario. In this simulation, I set the the amount of WOO adding to the pool to the same as the actual one and changed the amount of USDC to be equally worth to the WOO reserves after this transaction. I got the market value of WOO by querying on WoofiV2 which was used in the backrun transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*kFSB315ms_feIJi7HrEHFA.png" /><figcaption>new trigger transaction</figcaption></figure><p>It turned out that the bot would still make 1.38 USDC with the same transaction, so obviously this is not perfect, but it reduces the MEV extraction. Let me know if you have know the formula to get the right amounts to add. I haven’t looked into how Woofi quotes prices. It uses a price oracle unlike Uniswap V2.</p><h3>Final Thoughts</h3><p>I just don’t like to see people lose tons of money with a single liquidity add transaction and give away to searchers. I hope this post helps people understand how MEV works and how they can minimize the loss.</p><p>If you have any trading strategy you want to try but don’t know how to build, please reach me out on <a href="https://twitter.com/FF1KAaniyz7Tc3N">twitter</a>. I can help you build your bots with ~$1,000.</p><p>Thank you for reading😁</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d040afbae466" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Idea to Make MEV to Positive-sum Game]]></title>
            <link>https://yuichiroaoki.medium.com/the-idea-to-make-mev-to-positive-sum-game-2cd8cbb596b1?source=rss-f1edf0523484------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cd8cbb596b1</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[game-theory]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[arbitrum]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[yuichiro aoki]]></dc:creator>
            <pubDate>Fri, 30 Jun 2023 05:53:09 GMT</pubDate>
            <atom:updated>2023-07-11T13:20:02.668Z</atom:updated>
            <content:encoded><![CDATA[<h4>With a real-world example</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*6mUYIHydp0go-InemJCibg.png" /><figcaption>Ideal trade vs actual trade</figcaption></figure><h4>Summary</h4><ul><li>Mev is a zero-sum or perhaps a negative-sum game</li><li>People lose money on a single swap and let MEV searchers make money</li><li>If individual users make a perfect swap, the net result will be greater than the current situation</li></ul><h4>MEV is a zero-sum game</h4><p>You can tell who are the winners and losers on MEV space these days. Many of the top bots are now very sophisticated that they can detect pretty much all arbitrage opportunities and extract them right after the trigger transactions. <br>When they are making money, someone is losing money before their transactions. Let’s how all this works.</p><h4>How people lose money on a single swap</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*rK6jiXs4c0FH7zuYuAuM_g.png" /><figcaption>Uniswap: Price impact warning</figcaption></figure><p>When people swap too large token amounts compared to the current liquidity in the pool, they will lose money.<br>They get receive less tokens than they should have received. The biggest DEX, Uniswap, has this nice warning message in their UI above, but still some people make a swap and lose money.</p><p>Typical cases are:</p><ul><li>Relatively large low-cap token swap (e.g. 1 ETH to &lt;<em>some shit coin&gt;</em>)</li><li>Swap on a very low liquidity pool (e.g. total liquidity of 1 ETH &amp; 2000 DAI)</li></ul><p>You can minimize this negative price impact by using DEX aggregator like 1inch. They split the trade across many pools. However, some pools are not indexed on 1inch, and you still could suffer the negative price impact by swapping a large low-cap token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*qVnAc4ZGS3-oFD0RAvKgIA.png" /><figcaption>1inch: Price impact warning</figcaption></figure><p><a href="https://help.1inch.io/en/articles/4585109-what-is-price-impact-vs-price-slippage-in-defi#h_b5df901091">How to minimize negative price impact</a> by 1inch</p><h4>How MEV searchers make money after a negative price impact</h4><p>How MEV searchers make money after a negative price impact<br>When someone suffers a negative price impact and loses money, there are opportunities to make money right after their transaction. In this post, I call the first transaction “trigger tx” and the MEV transactions after that “backrun tx”.</p><p>Here is a real-world example from Arbitrum:</p><ol><li><a href="https://arbiscan.io/tx/0xf655ab9e4f21121476abc0c8b26c382e042c9b8fb1b18638fef839962301e076">trigger tx</a></li><li><a href="https://arbiscan.io/tx/0xbcf2e46c15110cb8ca020e227493e56e695b4501cebb5111e12c53d8d266ead0">backrun tx1</a></li><li><a href="https://arbiscan.io/tx/0xef872b446b503f7b1ff079873902f01051f709889c38f2dc12348994bfb5b2bc">backrun tx2</a></li></ol><p>In the trigger tx, a user (0x36528721ee15c46f2d24Fb6bfc5b580029749c5a) swapped 52,500 XIRTAM for 0.021535 ETH using Uniswap Universal Router and roughly lost 0.0136 ETH ($25.8) due to the negative price impact. While in the two backrun txs, the first one made 0.01228 ($23.05) ETH and the second one made 0.000425 ETH ($0.80).</p><p>Usually, it’s a good idea to swap on Uniswap, but when you swap a low-cap token, you have to be careful, and I recommend you take a look at DEX aggregator before the swap.<br>In this case, you can see from the chart below that the pools on Uniswap had much less liquidity compared to SushiSwap. So, that user not just suffered the negative price impact but also created opportunities for MEV searchers to make money.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jvFQz0W0Cv9ZlXa9197JqQ.png" /><figcaption>liquidity size for ETH/XIRTAM</figcaption></figure><p>If the user swapped on SushiSwap, the user would have received 0.0351 ETH and didn’t create any opportunities for MEV searchers. 1inch probably would suggest this route because ETH/XIRTAM uniswap pools don’t appear on 1inch at the time of this writing.</p><p>Or even the user might have received more by splitting the swap to 92% on SushiSwap and 8% on Uniswap. The user would have received 0.03516457 ETH on this route as the chart below suggests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*JlSvn3F6AI3GEoJOSlVFWw.png" /></figure><h4>Ideal trade vs Actual trade</h4><p>Now, let’s compare the ideal trade and the actual trade in term of the net result. You can see that the amount the user receives in the ideal trade is greater than the actual trade plus the MEV bot profits. This is a positive-sum game compared to the current situation.<br>Given that there are many failed MEV transactions and the MEV searchers spend a lot of money on servers, it seems the actual impact of making an ideal swap is even greater than the chart below suggests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*6mUYIHydp0go-InemJCibg.png" /><figcaption>Ideal trade vs actual trade</figcaption></figure><h4>Final Thoughts</h4><p>I just don’t like to see people lose tons of money on a single swap and give away to searchers. I hope this post helps people understand how MEV works and how they can minimize the negative price impact.</p><p>If you have any trading strategy you want to try but don’t know how to build, please reach me out on <a href="https://twitter.com/FF1KAaniyz7Tc3N">twitter</a>. I can help you build your bots with ~$1,000.</p><p>Thank you for reading😁</p><h4>References</h4><ul><li><a href="https://github.com/yuichiroaoki/chaser/blob/main/analysis/search_equilibrium.ipynb">https://github.com/yuichiroaoki/chaser/blob/main/analysis/search_equilibrium.ipynb</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cd8cbb596b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Verify the Ownership of Your Ethereum Wallet]]></title>
            <link>https://yuichiroaoki.medium.com/how-to-verify-the-ownership-of-your-ethereum-wallet-e2b35c366c18?source=rss-f1edf0523484------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2b35c366c18</guid>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[yuichiro aoki]]></dc:creator>
            <pubDate>Tue, 27 Jun 2023 02:05:00 GMT</pubDate>
            <atom:updated>2023-06-27T05:12:58.669Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*4LdXhbUK-bM5eC7AwoAU-Q.png" /><figcaption>Verified Signatures on Etherscan</figcaption></figure><p>I was just looking at these verified signatures on Etherscan the other day. My first thought was that why would anyone want to show off their signatures?</p><p>One of the reasons could be that they want to prove that they are the owner of the wallet. Let’s take a look at the real example below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*77vDLGIh82Z1gEUwf2iuxw.png" /><figcaption>Example Signature</figcaption></figure><p><a href="https://etherscan.io/verifySig/20738">Ethereum Verified Signed Message</a></p><h4>Verify</h4><p>You can verify what wallet address signed the message from the message and the signature hash like this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd853449d1a36848dfc9f32d89fa4d3f/href">https://medium.com/media/bd853449d1a36848dfc9f32d89fa4d3f/href</a></iframe><p>Why can you verify the ownership of the wallet address? Well because without the private key of the wallet address, you can’t generate that signature hash.<br>That’s why you can prove that you own the wallet address without revealing the private key.</p><h4>Sign</h4><p>You can sign a message like this. So signing a message is equal to creating a signature hash with your private key and message hash.</p><pre> privateKey, err := crypto.HexToECDSA(&quot;fad9c8855b740a0b7ed4c221dbad0f33a83a49cad6b3fe8d5817ac83d38b6a19&quot;)<br> if err != nil {<br>  log.Fatal(err)<br> }<br> msg := []byte(`IS THIS MY CONTRACT ADRESS ? <br>I DON&#39;T UNDERSTAND WHAT TO DO TO GET MY MONEY !!`)<br> messageHash := accounts.TextHash(msg)<br> signature, err := crypto.Sign(messageHash, privateKey)<br> if err != nil {<br>  log.Fatal(err)<br> }</pre><h4>Some application ideas</h4><p>If you apply this to some applications, you can do the followings.<br>- clocking in/out of work<br>- smart lock<br>- physical vault</p><p>Clocking in/out of work</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*u0cXchwTAQJUbvwj5AljdQ.png" /></figure><p>repo: <a href="https://github.com/yuichiroaoki/simple-clock-sys">https://github.com/yuichiroaoki/simple-clock-sys</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2b35c366c18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aave V2 Liquidation Example]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/coinmonks/aave-v2-liquidation-example-162de8436ff5?source=rss-f1edf0523484------2"><img src="https://cdn-images-1.medium.com/max/779/1*qrNwZVtD6Yu0V-mtctqOtg.png" width="779"></a></p><p class="medium-feed-snippet">Example code for a liquidation strategy on Aave V2 Ethereum Mainnet using foundry</p><p class="medium-feed-link"><a href="https://medium.com/coinmonks/aave-v2-liquidation-example-162de8436ff5?source=rss-f1edf0523484------2">Continue reading on Coinmonks »</a></p></div>]]></description>
            <link>https://medium.com/coinmonks/aave-v2-liquidation-example-162de8436ff5?source=rss-f1edf0523484------2</link>
            <guid isPermaLink="false">https://medium.com/p/162de8436ff5</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[yuichiro aoki]]></dc:creator>
            <pubDate>Sun, 23 Oct 2022 10:52:46 GMT</pubDate>
            <atom:updated>2022-10-24T06:28:41.873Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Flashloan with Balancer V2]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://yuichiroaoki.medium.com/flashloan-with-balancer-v2-59720798e9ee?source=rss-f1edf0523484------2"><img src="https://cdn-images-1.medium.com/max/600/1*w_324FGShua_p24mwYOZ3Q.png" width="600"></a></p><p class="medium-feed-snippet">You can borrow tokens with zero fee on Balancer V2!</p><p class="medium-feed-link"><a href="https://yuichiroaoki.medium.com/flashloan-with-balancer-v2-59720798e9ee?source=rss-f1edf0523484------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://yuichiroaoki.medium.com/flashloan-with-balancer-v2-59720798e9ee?source=rss-f1edf0523484------2</link>
            <guid isPermaLink="false">https://medium.com/p/59720798e9ee</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[yuichiro aoki]]></dc:creator>
            <pubDate>Tue, 18 Oct 2022 02:48:46 GMT</pubDate>
            <atom:updated>2022-10-24T06:29:36.296Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How the Oracle Manipulation Attack Happened to Inverse Finance]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/coinmonks/how-the-oracle-manipulation-attack-happened-to-inverse-finance-cb95e5343034?source=rss-f1edf0523484------2"><img src="https://cdn-images-1.medium.com/max/600/1*Bttgc6gjaWqd0HeWkTw9RQ.png" width="600"></a></p><p class="medium-feed-snippet">Let&#x2019;s reproduce the attack on the Ethereum mainnet fork with hardhat!</p><p class="medium-feed-link"><a href="https://medium.com/coinmonks/how-the-oracle-manipulation-attack-happened-to-inverse-finance-cb95e5343034?source=rss-f1edf0523484------2">Continue reading on Coinmonks »</a></p></div>]]></description>
            <link>https://medium.com/coinmonks/how-the-oracle-manipulation-attack-happened-to-inverse-finance-cb95e5343034?source=rss-f1edf0523484------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb95e5343034</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[yuichiro aoki]]></dc:creator>
            <pubDate>Tue, 16 Aug 2022 06:18:21 GMT</pubDate>
            <atom:updated>2022-08-16T08:12:49.774Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Flashloan with Aave V3]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/coinmonks/flashloan-with-aave-v3-9f94868aeff4?source=rss-f1edf0523484------2"><img src="https://cdn-images-1.medium.com/max/600/1*tZhryd3dJfeB1QNWXTcn0A.png" width="600"></a></p><p class="medium-feed-snippet">You can borrow millions of token with 0.05% fee on Aave V3&#xA0;!</p><p class="medium-feed-link"><a href="https://medium.com/coinmonks/flashloan-with-aave-v3-9f94868aeff4?source=rss-f1edf0523484------2">Continue reading on Coinmonks »</a></p></div>]]></description>
            <link>https://medium.com/coinmonks/flashloan-with-aave-v3-9f94868aeff4?source=rss-f1edf0523484------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f94868aeff4</guid>
            <category><![CDATA[flash-loan]]></category>
            <category><![CDATA[arbitrage]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[yuichiro aoki]]></dc:creator>
            <pubDate>Sun, 19 Jun 2022 02:30:57 GMT</pubDate>
            <atom:updated>2022-06-19T06:38:56.702Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How I Run a Polygon Node for Flashloan Bots]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/coinmonks/how-i-run-a-polygon-node-for-flashloan-bots-71229e1a905d?source=rss-f1edf0523484------2"><img src="https://cdn-images-1.medium.com/max/1104/1*r0odx_t3LECYl0s6AxSYPA.png" width="1104"></a></p><p class="medium-feed-snippet">Use as little SSD as possible to save money</p><p class="medium-feed-link"><a href="https://medium.com/coinmonks/how-i-run-a-polygon-node-for-flashloan-bots-71229e1a905d?source=rss-f1edf0523484------2">Continue reading on Coinmonks »</a></p></div>]]></description>
            <link>https://medium.com/coinmonks/how-i-run-a-polygon-node-for-flashloan-bots-71229e1a905d?source=rss-f1edf0523484------2</link>
            <guid isPermaLink="false">https://medium.com/p/71229e1a905d</guid>
            <category><![CDATA[matic]]></category>
            <category><![CDATA[polygon]]></category>
            <category><![CDATA[arbitrage]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[yuichiro aoki]]></dc:creator>
            <pubDate>Fri, 27 May 2022 01:30:08 GMT</pubDate>
            <atom:updated>2022-08-17T12:31:03.698Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Pros and Cons of Running a Polygon Node as an Arbitrage Trader]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/coinmonks/pros-and-cons-of-running-a-polygon-node-as-an-arbitrage-trader-743822112fb?source=rss-f1edf0523484------2"><img src="https://cdn-images-1.medium.com/max/666/1*HVuQrpjVPD_sleb02yGriQ.png" width="666"></a></p><p class="medium-feed-snippet">Thoughts on running a polygon node after 2 months</p><p class="medium-feed-link"><a href="https://medium.com/coinmonks/pros-and-cons-of-running-a-polygon-node-as-an-arbitrage-trader-743822112fb?source=rss-f1edf0523484------2">Continue reading on Coinmonks »</a></p></div>]]></description>
            <link>https://medium.com/coinmonks/pros-and-cons-of-running-a-polygon-node-as-an-arbitrage-trader-743822112fb?source=rss-f1edf0523484------2</link>
            <guid isPermaLink="false">https://medium.com/p/743822112fb</guid>
            <category><![CDATA[flash-loan]]></category>
            <category><![CDATA[polygon]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[mev]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[yuichiro aoki]]></dc:creator>
            <pubDate>Fri, 20 May 2022 07:36:31 GMT</pubDate>
            <atom:updated>2022-05-20T13:36:10.614Z</atom:updated>
        </item>
    </channel>
</rss>