<?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 Kirill Naumov on Medium]]></title>
        <description><![CDATA[Stories by Kirill Naumov on Medium]]></description>
        <link>https://medium.com/@kinaumov?source=rss-97a731779123------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*y23buq7T_hR1FMx3moLYeQ.jpeg</url>
            <title>Stories by Kirill Naumov on Medium</title>
            <link>https://medium.com/@kinaumov?source=rss-97a731779123------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 19:45:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kinaumov/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[Exploring the Relationships Between Cryptocurrency Volatility, Sentiment, and Transaction Volumes]]></title>
            <link>https://medium.com/@kinaumov/exploring-the-relationships-between-cryptocurrency-volatility-sentiment-and-transaction-volumes-ea0d019f9632?source=rss-97a731779123------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea0d019f9632</guid>
            <dc:creator><![CDATA[Kirill Naumov]]></dc:creator>
            <pubDate>Mon, 08 May 2023 01:46:01 GMT</pubDate>
            <atom:updated>2023-05-08T01:46:01.546Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sjXMB4D2GJn4cNvnVIjNXg.png" /></figure><blockquote>Written by: <strong>Kirill Naumov</strong><br>OIDD 2450: Analytics &amp; the Digital Economy<br>The Wharton School, University of Pennsylvania</blockquote><p>Cryptocurrency has made a name for itself with its volatility and swinging consumer sentiment. At first it was associated with terrorism, then we had every youtuber selling their own NFT collection or promoting yet another token with zero utility, and now (yet again) we are in a sentiment downturn.</p><p>Most of the action in Crypto happens on Twitter — tweets are how projects are conceived, promoted, and discussed. At the end of the day, what social media other than the one with a strict character limit would be better for the short-attention-span and freedom-liking industry? One of the things we’ll explore in this project is the ability to employ natural language processing models in order to compute consumer sentiment about specific tokens and predict price action.</p><p>Another direction of this project will be into transaction volumes. Pretend that a whale moves a significant amount of tokens to a new wallet — it’s highly likely that those will be sold off or accumulated soon. Therefore, the hypothesis is that movements of large amounts of tokens can lead to volatility in token prices.</p><p>So, to summarize, we’ll focus on two things:</p><ul><li>Getting tweets, computing sentiment, and checking for correlation with price</li><li>Getting on-chain transaction data, aggregating it into a volume number, and checking for correlation with price</li></ul><h3>Before we dive in…</h3><p>Why am I writing about this topic in the first place?</p><p>Cryptocurrency is a field that is deeply interesting to me and I plan to work in this field for a while after graduation. It’s also rich with all kinds of data, which allows for endless possibilities for data analysis and quantitative trading strategies. While this is not my first venture into crypto-related data projects, it certainly will be the most insightful one.</p><h3>Part 1: Several Projects, Single Point in Time</h3><p>The first part of the analysis will focus on a basket of Decentralized Finance tokens: <strong>Uniswap, Balancer, Aave, Curve, Sushi, Compound, and Bancor</strong></p><p>Let’s first work out the tweet sentiment. After setting up Twitter API access (took several hours and $120) and loading in all of the keys and libraries, I wrote a function that searched for Tweets. Side note: Twitter has some of the worst documentation I have read — for some reason its very hard to navigate. After pulling the tweet texts, I computed the sentiment for each using <a href="https://cran.r-project.org/web/packages/syuzhet/vignettes/syuzhet-vignette.html">syuzhet</a> and saved the average for each Token.</p><pre>getSentiment &lt;- function(symbol) {<br>  #Note: I tried to remove any keywords bots post with<br>  query = paste(symbol,&quot;token -airdrop -drop -giveaway -free -link -register -presale lang:en&quot;, sep=&quot; &quot;)<br>  json_data &lt;- searchTweets(query, 100)<br>  text_column &lt;- json_data$&quot;data.text&quot;<br>  sentiment_column &lt;- get_sentiment(text_column)<br>  return(mean(sentiment_column))<br><br>}</pre><p>After obtaining the sentiment for each of the cryptocurrency tickers, I wanted to explore how different the word clouds would be for a well-known DeFi project versus a more Niche one.</p><p>Here’s the word cloud of <strong>Uniswap </strong>(largest decentralized exchange)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*55h5WjKLOqC3qezRjvGJYA.png" /></figure><p>And here’s one for <strong>Compound </strong>(2nd largest money market, much less users)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*6e8lZySt9egZyRAJmMu6VA.png" /></figure><p>Something I noticed was that for Compound, many of the tweets just listed it as one of the tagged tokens while talking about something completely unrelated. Uniswap, on the other hand, had less of such occurrences, and its word cloud, therefore, turned out to be much more relevant to the context of the project.</p><p>Linguistic analysis aside, let’s look at some rock-solid evidence on the blockchain. Specifically, using the <a href="https://etherscan.io/">Etherscan</a> API, I analyzed how much of each token was transacted via the blockchain over the preceding week as a percentage of its total supply.</p><pre>totalMoved1wk = c()<br>numberOfRowsChecker1wk = c()<br><br>#looping though each of the tokens<br>for (addy in tokenaddresses ) {  <br>  url_handle &lt;- paste(&quot;http://api.etherscan.io/api?module=account&amp;action=tokentx&amp;contractaddress=&quot;,addy,&quot;&amp;startblock=0&amp;endblock=999999999&amp;sort=desc&amp;apikey=&quot;,etherscan_token, sep=&quot;&quot;)<br>  response &lt;-<br>    httr::GET(url = url_handle)<br>  obj &lt;- httr::content(response, as = &quot;text&quot;)<br>   <br>  json_data &lt;- fromJSON(obj, flatten = TRUE) %&gt;% as.data.frame<br>  relevant = json_data[json_data$&#39;result.timeStamp&#39; &gt;= 1682880206,]<br>  totalMoved1wk[length(totalMoved1wk)+1] = sum(as.numeric(relevant$&#39;result.value&#39;))<br>  numberOfRowsChecker1wk[length(numberOfRowsChecker1wk)+1] = length(relevant$&#39;result.value&#39;)<br>}<br><br>df$TotalMoved1Week = totalMoved1wk<br>df$numTx1week = numberOfRowsChecker1wk<br><br>getPercentage &lt;- function(num1,num2) {<br>  num1/num2<br>}<br><br>df = df %&gt;%<br>  mutate(percentageMoved = getPercentage(TotalMoved1Week/10^18,MaxSupply))</pre><p>Finally, what I had to obtain was price action over time. For this part, specifically, I needed to find the change in token price over a week for each of the projects. I used the <a href="https://www.coingecko.com/">CoinGecko</a> API endpoints for this task.</p><p>Here’s what the aggregated dataframe looked like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oco2eOQDJbfddpyd61pIyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3Q_fQfxXl1oztNpJt22ZA.png" /></figure><p>Now that the data is collected, let’s check whether sentiment or transaction volume has been more predictive of 7-day volatility for the different DeFi tokens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*ccF6YsRMwXB_iTYC5E2ZrQ.png" /></figure><p>The graph actually shows a weak negative correlation with Sentiment — as sentiment grows, absolute change in a token’s price decreases. A possible explanation for this is that the past week has been largely negative for the market and the tokens that performed best lost the least in price.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*EVjfeEkrlt9OjZHvvKm58A.png" /></figure><p>With regards to transaction volume, on the scope of one week there was nearly no correlation with price.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*wt3JOdz1Wh_fs4ENP8aGbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*mVTnMpovqGUeJ8AEOSJ91A.png" /></figure><p>Ultimately, however, this analysis should be performed over time.</p><h3>Part 2: Single Project (Aave), Over Time</h3><p>Unfortunately, Elon Musk would not allow me to access tweets older than 7 days even while paying $120 per month, so I could only conduct on-chain transaction volume analysis for this part. That being said, tweets were largely a waste of time anyway — Twitter is plagued with bots that spam with their giveaways, airdrops, free tokens, and other promotional material, which fully offsets the sentiment analysis. The same API level of access was also insufficient to pull any significant data for notable verified accounts (smart money).</p><p>This time, I also used Etherscan API and CoinGecko API to pull on-chain and price data. One I simply had to call for every week of the analysis (1 year), while with the other I figured out an endpoint that can serve me all the data at once and allow me to process it locally (otherwise I was getting rate-limited there to a point where I could only analyze 3 weeks).</p><p>Ultimately, I built a second dataframe, which, for every week going back a year, aggregated the percentage of <strong>Aave </strong>token supply that was moved on chain that week and the absolute change in price in the <strong>following </strong>week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MqytYWEdCV3Y8Fa8nS-G8Q.png" /></figure><p>When I plotted the volume transacted percentage against the absolute change in price, I got a much stronger correlation than the last time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*YeqJ_NV4DQtSdZftIwOZrQ.png" /></figure><p>A linear model to estimate the absolute change produces a t-value of 3.773 for the on-chain volume percentage coefficient, which means that the variable is statistically significant!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*lObnXWC0btateHfu2E3QPQ.png" /></figure><p>The results of the linear model prove beyond reasonable doubt that transaction volume in week T has an impact on price volatility in week T+1</p><p><strong>Perhaps buying volatility options won’t be such a bad idea if on-chain transaction volume exceeds certain thresholds.</strong></p><h3>Next Steps</h3><p>To build upon this project, I would do a more granular analysis of on-chain transaction volume and eventually build a volatility options trading strategy. Given that all occurrences of volume above 0.4% of supply resulted in a larger than 10% move the following week, this strategy will likely be able to pay for the options premium and be profitable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea0d019f9632" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Back to the Basics: MakerDAO]]></title>
            <link>https://medium.com/@kinaumov/back-to-the-basics-makerdao-380252c65870?source=rss-97a731779123------2</link>
            <guid isPermaLink="false">https://medium.com/p/380252c65870</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[dai]]></category>
            <category><![CDATA[makers]]></category>
            <category><![CDATA[makerdao]]></category>
            <dc:creator><![CDATA[Kirill Naumov]]></dc:creator>
            <pubDate>Mon, 11 Jul 2022 13:16:34 GMT</pubDate>
            <atom:updated>2022-07-11T17:32:17.676Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*npmdOhOynmQOCwea2X0iRA.png" /></figure><blockquote><em>This article was originally posted as a Twitter thread, you can check it out </em><a href="https://twitter.com/kinaumov/status/1546471307822366720?s=20&amp;t=rj2Bjur4a96gQrY4HEyiPQ"><em>here</em></a><em>.</em></blockquote><p>MakerDAO is the largest decentralized stablecoin protocol with 6.4 billion DAI outstanding, collateralized by over $8 billion of crypto and real-world assets including USDC, USDT, ETH, BTC, and stETH. Let’s get into what it is and how it works.</p><p>MakerDAO was launched in 2017 with a Single-Collateral $DAI system (SAI), which allowed users to mint $DAI using ETH as collateral. Users could take out overcollateralized stablecoin loans against their ETH holdings. If the value of ETH fell, they’d get liquidated</p><p>Following the success of SAI, Maker launched Multi-Collateral DAI (MCD) in 2019 and started accepting different collateral types to take out DAI loans.</p><p>Since then, Maker have introduced the ability to borrow 1:1 against stablecoins through the Peg Stability Module (PSM) and have added real world assets as a viable collateral type.</p><p>In MakerDAO, each collateralized debt position (CDP) is called a Vault. There are different vault types, which allow for different collateral, LTV ratios, and rates. To analyze Maker vaults, one could check out <a href="https://maker.blockanalitica.com/vault-types/">this dashboard</a> by Block Analitica.</p><p>How does Maker work from a user’s perspective? You can deposit $150 of $ETH to draw a loan of $100 in $DAI. When you’re ready to repay the loan, you return the 100 $DAI plus some interest and unlock your $ETH. If collateral value falls, you get liquidated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WD3TBlLpOFeGp46XwyK0WA.png" /><figcaption>Source: <a href="https://messari.io/article/makerdao-valuation">MakerDAO Valuation (Messari)</a></figcaption></figure><p>If $DAI is trading below $1, those who borrowed $DAI can buy it (which pushes the price back up) to repay their loans cheaper, also making a profit. Eg, they’d buy $DAI for 0.95 $USDC to repay their loan and unlock the 1 $USDC from the PSM.</p><p>While the PSM has greatly helped improve the price stability of $DAI, many argue that the protocol before PSM and real world assets, or even before the addition of multi-collateral DAI, was more secure. If a PSM stablecoin collapses, MakerDAO will take a huge hit.</p><p><strong>Now let’s dive deeper.</strong></p><p>This is what MakerDAO’s smart contract architecture looks like. To not get overly technical, we won’t be going over every module, but here are a few of the most important ones:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z9HAksKu-9YfAmhrD6BcdQ.png" /><figcaption>Source: Maker docs</figcaption></figure><p>Dai Module</p><p>The Dai Contract is the ERC-20 token contract which maintains the accounting of external DAI balances. Note: unlike other ERC-20 contracts, it allows for unlimited approval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZE6p-J6mWjSTHVN5mLKbWQ.png" /></figure><p>Core Module (Vat)</p><p>Vat keeps the core Vault, Dai, and collateral states. It maintains the central accounting of Dai.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TbXiE6TMuuOeX7b4e2rBeA.png" /></figure><p>Collateral Module</p><p>The collateral module is unique to every collateral type. Each collateral module connects to Vat and contains all the functions for a specific collateral asset, including the auction contracts.</p><p>Liquidation Module</p><p>This module transfers collateral from undercollateralized vaults to the protocol. In the liquidation contract, an auction is then held to sell the collateral for DAI to repay the loan.</p><p>Rates Module</p><p>The rates module stores and updates global “cumulative rate” value which can be multiplied by a normalized debt amount to give the total debt. See formula below. The rates for each Vault Type are set by Maker Governance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qNeI72sj_aVjfZJBZJj_vw.png" /></figure><p>OSM — Oracle Security Module</p><p>The OSM ensures that price values from oracles are only taken up by the system after a delay has elapsed. OSM contracts are unique per collateral type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eCZ5GM4ANWcRRpPsQLXHaw.png" /></figure><p>PSM — Peg Stability Module</p><p>PSM allows users to swap collateral directly for DAI at a fixed rate (1:1), without the need for overcollateralized borrowing. Currently USDC is the largest PSM Maker vault, with $3.64B in USDC. Other PSM vaults include USDP and GUSD.</p><p>D3M — Direct Deposit DAI Module</p><p>This module enables the interaction of the Maker protocol with third-party lending pools. Specifically, it allows the lending protocol to mint or burn DAI tokens. This module is implemented to limit the maximum interest rate required to borrow DAI.</p><p>Flash Mint Module</p><p>This module allows users to mint $DAI up to a limit set by Maker governance on one condition: that they pay it back within the same transaction and with a fee. This way users can perform DeFi arbitrage without significant capital requirements.</p><p>For a more comprehensive overview of the smart contracts within the Maker Protocol, check out the <a href="https://drive.google.com/file/d/1VtGV8Ct2iBO8WjWsjFYLg5DnwlGmetSp/view">Maker Protocol 101 Slide Deck</a></p><p><strong>Decentralized governance:</strong></p><p>Maker is governed by $MKR holders. Governance includes adjusting protocol settings, selecting collateral types, and voting on the direction of the DAO. Governance includes forums, public governance votes, governance polls, and executive votes.</p><p>MakerDAO governance is considered the most developed in the DAO space. A recent vote saw 30% participation from MKR holders. MarkerDAO has 19 recognized delegates and 69 shadow delegates. If you have MKR, consider delegating to PennBlockchain.</p><p><strong>A few notable recent updates:</strong></p><p><strong>July 7: </strong>MakerDAO <a href="https://www.theblock.co/post/156301/makerdao-approves-100-million-stablecoin-loan-vault-for-151-year-old-us-bank">approved</a> a $100 million DAI loan vault for Huntingdon Valley Bank, a 151-year old US bank. The debt ceiling will grow to $1 billion over 12 months.</p><p><strong>June 27: </strong>In a very contentious vote with 30% of $MKR supply participating, MakerDAO community <a href="https://cointelegraph.com/news/makerdao-members-shoot-down-proposal-for-more-centralization">rejected</a> a proposal to create a Lending Oversight Core Unit (LOVE-001).</p><p><strong>June 23:</strong> Maker Governance has <a href="https://twitter.com/MakerDAO/status/1540032172265963525?s=20&amp;t=oIomXp-jZj1atyf-6cxrqw">passed</a> a vote to buy and burn MKR with 3 million DAI over 3 months.</p><p><strong>June 15: </strong>Maker Governance voted to disable the @AaveAave DAI Direct Deposit Module (D3M) which allowed users to mint DAI through Aave due to market volatility and risks of stETH.</p><p><strong>JPEG’d</strong></p><p>Maker is cool, but it’s old news. Another similar project I’m following is JPEG’d. JPEG’d allows users to borrow (mint) a stablecoin collateralized by blue-chip NFTs. Normally NFT-collateralized loans have an APY of 60% due to risk, but they’re only 2% on JPEG’d.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qE8PatFhtcZFctc4K3ZYQg.png" /></figure><p>It can offer such low rates due to low (40%) LTV thresholds and high liquidation premiums. Doing so, it improves capital efficiency in the NFT space. It also has a treasury 3x its market cap and is at a massive discount to the initial sale.</p><p>DYOR but imo it’s fun</p><p>This concludes my overview of what Maker is, how it works, and why it’s cool. If you learned something new, pls give a follow here and on Twitter <a href="https://twitter.com/kinaumov">@kinaumov</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=380252c65870" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[100 Questions: Tokenomics]]></title>
            <link>https://medium.com/@kinaumov/100-questions-tokenomics-c31382966785?source=rss-97a731779123------2</link>
            <guid isPermaLink="false">https://medium.com/p/c31382966785</guid>
            <category><![CDATA[tokenomics]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[token]]></category>
            <dc:creator><![CDATA[Kirill Naumov]]></dc:creator>
            <pubDate>Sun, 10 Jul 2022 16:06:32 GMT</pubDate>
            <atom:updated>2022-07-10T16:06:32.203Z</atom:updated>
            <content:encoded><![CDATA[<p><em>100 questions you should ask yourself when analyzing tokenomics</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MwgW_bnGIKXMWr688UJmOw.png" /></figure><blockquote><em>This article was originally posted as a Twitter thread, you can check it out </em><a href="https://twitter.com/kinaumov/status/1545785921085341696?s=20&amp;t=7-dgTTNe-4dNeXs9R8YnPw"><em>here</em></a><em>.</em></blockquote><p>You’ve found a project you like and are considering aping in. Before you do, consult this list. Asking these really helps to avoid fool’s gold and to choose better long-term investments in the crypto market.</p><p><strong>Question outline:</strong></p><ul><li>General</li><li>Token launch</li><li>Supply</li><li>Demand</li><li>Token utility</li><li>Past performance</li><li>Currently relevant questions</li></ul><p><strong>General</strong></p><ol><li>Which tokens does the project use?</li><li>If there are several tokens, why?</li><li>What is the market cap of the token?</li><li>What is the circulating supply?</li><li>What is the maximum possible supply? (more on this in the Supply section)</li><li>What is the Fully-Diluted Valuation?</li><li>Is the token’s supply inflationary, stable, or deflationary?</li><li>Where can you buy the token?</li><li>Why is the token on these specific DEXes / CEXes?</li><li>How deep is the liquidity on these exchanges for the token?</li><li>How high is the token’s volume on these exchanges?</li><li>Who are the main liquidity providers / market makers?</li><li>Are they in for the long term or incentivized via unsustainable token emissions?</li><li>Which parties do you put faith in when holding the token (ie chain, bridge, team, etc)?</li><li>Does the team benefit from the token appreciating?</li><li>Do users (not tokenholders) benefit from the token appreciating?</li><li>Can the project function without a token?</li></ol><p><strong>Token launch<br></strong>- How the project launched its token</p><p>18. Why was this blockchain chosen to launch the token?</p><p>19. Is the chosen chain best for security, speed, or interoperability?</p><p>20. How old was the project when it launched the token?</p><p>21. Which token launch method was used?</p><p>22. How much did the project raise through its token launch?</p><p>23. What Fully-Diluted Valuation (FDV) was the launch done at?</p><p>24. How has the Market Cap / FDV changed since launch?</p><p>25. How does the chosen percentage of initial supply affect the emissions and tokenholder dilution in the future?</p><p><strong>Supply </strong><br>— A token’s price is fundamentally determined by supply and demand. Let’s first analyze supply.</p><p>26. What factors affect the token’s selling pressure?</p><p>27. How much will token supply grow in the future?</p><p>28. Who holds the token?</p><p>29. What % of supply do top 10 addresses control?</p><p>30. How about top 100 addresses?</p><p>31. When are VC and Team unlocks?</p><p>32. Have a large number of coins been lost or burned?</p><p>33. How much does the community hold?</p><p>34. How fair is the distribution?</p><p>35. What is the overall emissions schedule?</p><p>36. Who do emissions go to?</p><p>37. What is their behavior (do they sell off instantly or hold)?</p><p>38. Can you benefit from emissions by staking or LPing?</p><p>39. Do emissions generate you profit, or just protect you against dilution?</p><p>40. Why are some released tokens not in circulating supply?</p><p>41. What will happen when locked (or staked) tokens are released?</p><p>42. Are there bulk unlocks in community lockup mechanisms?</p><p><strong>Demand </strong><br>— Now let’s look at demand, why the token is purchased from the market.</p><p>43. What are the key drivers of demand for the token?</p><p>44. Are there other projects users can easily substitute to?</p><p>45. How did you find out about this project?</p><p>46. Will other people want this token in the future?</p><p>47. What is your expected return from holding the token?</p><p>48. Are there protocol revenues that get distributed to the token holders? (more on this in the Utility section)</p><p>49. Does the project buy back and / or burn its own tokens?</p><p>50. Do tokens get destroyed or transferred when used to purchase a good / service from the protocol?</p><p>51. Does the project have a cult-like following?</p><p>52. How is the energy in their Discord?</p><p>53. How active is the project on Twitter?</p><p>54. How active is the community on Twitter?</p><p>55. How long have they been this active?</p><p>56. Will they be as active a month or a year from now?</p><p>57. Is there game theory driven incentive to hold the token?</p><p>58. Is there a token lockup mechanism?</p><p>59. Does it smell like a Ponzi scheme?</p><p>60. Is there a burn mechanism?</p><p><strong>Token utility <br></strong>— What the token is used for in the project</p><p>61. What is the purpose of the token?</p><p>62. Are you supposed to hold it or use it for transactions / services?</p><p>63. What percentage of a project’s cash flows are distributed to tokenholders?</p><p>64. Are cash flows dilutive or redistributive?</p><p>65. Do you plan to instantly sell or hold onto the earnings?</p><p>66. Is the token used for governance?</p><p>67. If yes, how concentrated are governance votes?</p><p>68. Will your vote make a difference?</p><p>69. What are the minimum token requirements to submit and escalate a governance proposal?</p><p>70. Can governance enable or affect profit distribution?</p><p>71. Are there bribes for governance voting that you can earn from?</p><p>72. Do the tokens secure the project?</p><p>73. Can the token be used as collateral to borrow liquidity?</p><p><strong>Past performance <br></strong>— Token performance since launch</p><p>74. Is the token correlated with the broader crypto market (ETH, BTC) or not?</p><p>75. Why would you want to hold the token instead of ETH or BTC?</p><p>76. How volatile is the token’s price?</p><p>77. How has the token held up against USD or ETH since its inception?</p><p>78. Have emissions / staking earnings offset any of the losses?</p><p>79. What is the token’s velocity (velocity = transaction volume / market cap)?</p><p>80. What’s the difference between current price and the ATH?</p><p>81. Has the token price been responsive to positive / negative news?</p><p><strong>Currently relevant questions <br></strong>— Bear market things and otherwise relevant stuff you should consider</p><p>82. Do the tokenomics still make sense in the bear market?</p><p>83. How has the token been affected by the crash?</p><p>84. Do the tokenomics hold up during high volatility and other edge cases?</p><p>85. Does the token resemble a security (what are the chances of SEC knocking)?</p><p>86. Is there enough liquidity for you to exit quickly?</p><p>87. How about if everyone were exiting at the same time?</p><p>88. Are tokenomics affected by inflow / outflow of users?</p><p>89. Are there tranches to cover protocol losses incurred in black swan events?</p><p>90. Has the team adjusted tokenomics in the past?</p><p>91. Are there other projects with similar tokenomics and how are they doing?</p><p>92. Are there well-known holders?</p><p>93. Are they selling or accumulating?</p><p>94. Will the project remain relevant to see the next bull run?</p><p>95. Are the tokenomics of this project better than that of its direct competitors?</p><p>96. Has there been research into the tokenomics of this project?</p><p>97. Is the project behind the token doing well?</p><p>98. Are the tokenomics of the project overly complex and does that introduce more points of failure?</p><p>99. How available was the data to answer all of these questions?</p><p>100. Are you still sure you want to ape in?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c31382966785" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Back to the Basics: Compound, Aave]]></title>
            <link>https://medium.com/@kinaumov/back-to-the-basics-compound-aave-436a1887ad94?source=rss-97a731779123------2</link>
            <guid isPermaLink="false">https://medium.com/p/436a1887ad94</guid>
            <category><![CDATA[lending]]></category>
            <category><![CDATA[aave]]></category>
            <category><![CDATA[compounds]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Kirill Naumov]]></dc:creator>
            <pubDate>Fri, 10 Jun 2022 00:35:49 GMT</pubDate>
            <atom:updated>2022-06-10T00:35:49.468Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yqK0rgiUsqSiC2fphu1jWA.png" /></figure><blockquote>This article was originally posted as a Twitter thread, you can check it out <a href="https://twitter.com/kinaumov/status/1535055544368906241?s=20&amp;t=Lxviot7aOBpMb0D5fqDLbQ">here</a>.</blockquote><p>Compound and Aave built the foundation for DeFi money markets and knowing the formulas behind them is crucial to evaluating new lending products. In this article I’ll summarize exactly how they work. Try to follow the math, it’s interesting.</p><p>While some people may be familiar with the general concepts of how these lending platforms work, few can explain the gigabrain formulas. It may get complex fairly quickly, so feel free to pause or skip parts of the thread.</p><p>Let’s get into it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*14ExSAzCljuq9judaRXHow.gif" /></figure><p>Originally, lending on Ethereum was facilitated via peer-to-peer marketplaces. However, matching user deposits with borrow requests was inefficient due to having to negotiate duration, collateral, and the interest rates. Because of that, p2p lending didn’t get much traction.</p><p>In September 2018, Robert Leshner and Geoffrey Hayes launched Compound, an algorithmic decentralized money market protocol. Compound allows users to lend and borrow from a pool, where the interest rate is based on the proportion of the pool reserves lent out.</p><p>Compound aggregates the supply of users and lends it out on demand. When users deposit into the pool, they receive a number of ERC-20 cTokens, which are a claim to a portion of the total pool. When the pool earns interest, the amount a user can claim with their cTokens grows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*3kimYJ5s9M5P6m7Riz8ItQ.png" /></figure><p>Users can borrow from the protocol using their cTokens as collateral. Assets have different collateral factors, which are regularly adjusted via governance. Check out the most recent proposal by Gauntlet <a href="https://compound.finance/governance/proposals/108">here</a>.</p><p>The total of a user’s underlying token balances, multiplied by the collateral factors, is their borrowing capacity. When a user borrows funds, they lock a portion of their cTokens so that they are unable to transfer them and/or redeem the collateral.</p><p>If a user’s outstanding borrowing exceeds their borrowing capacity due to volatility of asset prices, up to a fixed percentage of the outstanding borrowing may be repaid by another user in exchange for the first user’s cToken collateral (with a liquidation discount).</p><p>How does the protocol remain solvent if, let’s say, all of the deposited USDC is lent out to borrowers and someone wants to withdraw? It’s all in the interest rate model. Let’s get into the formulas.</p><p>First, an important concept to understand is utilization. Utilization (U) for each market (a) is the percentage of a given asset that is lent out with respect to the entire supply of the asset in the pool. The interest rates in the protocol revolve around utilization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*Lgg_laSAJ8QXw6hmFCfD7w.png" /></figure><p>The interest rate on borrows is calculated as a function of Utilization, which is set via protocol governance. For most volatile markets, like ETH, the interest rate for borrowers is a linear function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fh3S6_67mYYGuwzp89eQUg.png" /></figure><p>For assets which are the most borrowed (stablecoins), the protocol uses a piecewise function with an optimal utilization rate, beyond which the interest rate grows faster. At high APY, users are incentivized to deposit more, ensuring there is always liquidity for withdrawals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*Q4EKmT_xJfkoOOw_aSBOPA.png" /></figure><p>Mathematically, the curve looks like this. The total borrow rate is composed of the rate at zero utilization (intercept) plus the one or two utilization slopes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WlGRzWVfKb3aQqP5gRGiFg.png" /></figure><p>The interest rate offered to depositors is simply the borrow rate multiplied by the utilization. This makes the amount earned from borrowers equal to the amount paid to depositors. For simplicity, the formula I show here doesn’t include protocol fees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*GJ2EYM0yjMKP0beMwOfBBQ.png" /></figure><p>Anyone can check Compound interest rates functions for different tokens by going to <a href="https://compound.finance/markets">https://compound.finance/markets</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*or4WGdqoxYxv2IkJfe0ziw.png" /></figure><p>Now to more complex stuff. How does the protocol track balances?</p><p>Each time a transaction occurs, the protocol records a new Interest Rate Index value for borrowers. Instead of refreshing the state every block (consumes too much gas), we can just timestamp specific values.</p><p>We can obtain a new index value multiplying the old one by the interest rate and the elapsed time. So, for example, we start with an index value of 1, then have 1 month of 12% APY, then 2 months of 6% APY and end up with</p><p>1 * (1 + 0.12 * 1/12) * (1 + 0.06 * 2/12) = 1.0201</p><p>When a transaction occurs (interest is fixed if nothing changes in the pool), the Interest Rate Index for the asset (a) is updated using the interest for the elapsed period, denominated by r * t</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*6NwMtzbMuW_3t4nucJxJ1Q.png" /></figure><p>The total borrowing outstanding in a given asset (a) is updated to include interest accrued since the last index:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aRsRwLA5AZbfH_OTemGHBQ.png" /></figure><p>From this value, we can calculate total amount owed to depositors as</p><p>Borrows + Cash = Total Deposits</p><p>The formula gets slightly more complex if we account for fees that go to the reserve but that’s beyond the scope of this thread.</p><p>From the total amount owed to depositors, we can derive the amount of deposits (including accrued interest) of a given user as</p><p>User’s deposit = Total Deposits * user’s cTokens / Total cTokens</p><p>The amount a given user (x) borrowed is stored in a data structure in the contract alongside the Interest Rate Index at that time. It’s updated each time the user borrows / repays. To calculate the current amount of asset (a) a user owes, one would use the following formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*6deAiyeMvaUo4vQx3aM_Mg.png" /></figure><p>A Price Oracle maintains the exchange rate of every asset on the platform. These rates are used to determine borrowing capacity and collateral requirements of users, making sure they don’t borrow more than they are allowed to.</p><p>The Comptroller is the risk management smart contract of Compound. It determines how much collateral a given user is required to maintain, and whether they can be liquidated. For each user action, the Comptroller is asked to approve or deny the transaction.</p><p>Governance decisions on Compound are voted on by $COMP holders through the Governor smart contract. $COMP token-holders can delegate their voting rights to themselves, or an address of their choice. Shameless plug: delegate to Penn Blockchain :)</p><p>Aave was founded as ETHLend in 2017 after raising $16.2 million in an ICO to build a decentralized peer-to-peer lending platform. It was rebranded to Aave in 2020, when they switched to a liquidity pool model. Their design is a little more complex than Compound’s.</p><p>The basics are the same: a user deposits funds, receives aTokens in return, and then can borrow funds by locking up their aTokens as collateral. However, there are a few important differences.</p><p>Primarily, aTokens aren’t the same as cTokens. Unlike cTokens, which represent a user’s share of the pool of deposits, aTokens are 1:1 to the amount deposited. Depositing 10 DAI returns you 10 aDAI. So, how does interest accrue?</p><p>This is the fun part. 1 + 1 no longer equals 2. Aave have altered the ERC-20 contract of aTokens in a way that the balance of aTokens grows without any incoming transactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*H1rNLlDnWtI7yf2WqtHbcw.gif" /></figure><p>Your balance of aTokens is composed of two elements: a super.balance (balance in the parent contract) and a Cumulated Liquidity Index, which works the same way as the Interest Index on Compound. The super.balance is fixed, but the Index grows with every Aave transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*inL7Nzgk8y_riHvrNyHQNQ.png" /></figure><p>Here is the implementation of balanceOf for reference.</p><p>Note: ray is a decimal number with 27 digits of precision. Aave stores its decimals in ray.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tYJqHZBYgBvygUKHa0zqlw.png" /></figure><p>Transfer functions are implemented similarly. If you request a transfer, the amount you request is divided by the current index and transferred in the parent contract accounting system. Then the recipient’s balance is superTransferAmount * Index = transferAmount</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sPMqGygh-AKD0GdtaOiXFA.png" /></figure><p>Utilization and interest rate calculations are done the same way in Aave as in Compound, except all assets have a target utilization rate and a piecewise function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WxMbZeciOCmq1vEABuVa5Q.png" /></figure><p>As you may have noticed from the image, Aave has introduced stable borrow rates. Stable rates are higher than variable rates and use a Lending Rate Oracle. The stable rate uses the Market Lending Rate instead of a fixed intercept value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hiTQ76e8CftocWN9amBELw.png" /></figure><p>Graphically, Aave money market interest rates for borrows on an individual asset look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*43_Pzh6nBMpOxlFpzSVHGQ.png" /></figure><p>By using the variable and stable borrow rates, we can calculate the weighted average borrow rate for the pool and the liquidity provision rate, which is used to update the Index in aTokens by rate * time elapsed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V2Fveqs1uamsbuJkqw7-Eg.png" /></figure><p>Another novel feature Aave introduced was Flash Loans. A flash loan allows technical users to borrow any amount from the reserve as long as they return it plus a fee within the same transaction. If the funds aren’t returned, the whole transaction is reverted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*8WoU61qZ-khbMioQB0dpyg.png" /></figure><p>More cool features… In v1, Aave supported the redirection of interest payments to another address. While this feature has been removed in v2, it can be added back via the governance process.</p><p>Aave is governed by $AAVE holders. Proposals are discussed on the Forum, then elevated to a Snapshot vote, and then voted for <a href="https://app.aave.com/governance/">on-chain</a>.</p><p>The LendingPool contract is the main contract of the protocol, similar to the Comptroller for Compound. It holds the state of every asset deposited and handles basic logic.</p><p>With V3, Aave introduced several cool new features, including Portal, which allows approved bridges to burn aTokens on the source network while instantly minting them on the destination network, improving cross-chain capital efficiency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3iyHjyP2DqzuUMg0eVfhzA.png" /></figure><p>The problem with algorithmic money markets is that they’re not permissionless. One can’t just add arbitrary assets to Compound or Aave as that puts the protocol in danger of insolvency. An attacker could infinitely inflate the price of the asset and borrow ALL liquidity.</p><p>Rari Capital aims to solve that problem. Rari allows for the permissionless creation of Compound-like money markets (Fuse pools) with arbitrary assets. Users accept the risks of the assets in the pool for higher yield rates and projects get to borrow against exotic assets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0bt-rmrDIzb8bDF7w3pJcA.png" /></figure><p>Euler Finance is a non-custodial semi-permissionless lending protocol. It allows the creation of borrow/lend markets for any token but limits the list of assets that can be used as collateral. They use complex oracle risk analysis strategies to whitelist collateral assets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WOLQRMOaAOrmxXloRjkauQ.png" /></figure><p>Money markets are the liquidity foundation of DeFi and each new L1 chain needs their own. Since many new chains are EVM-compatible, most projects, instead of re-inventing the wheel, just fork Compound or Aave code.</p><p>I hope this article gives a good in-depth overview of how DeFi money markets work, which would allow for analysis of the mechanics of newer projects on Ethereum and other chains. If you’ve learned something new, please consider giving me a follow @kinaumov on Twitter :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=436a1887ad94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Back to the Basics: Uniswap, Balancer, Curve]]></title>
            <link>https://medium.com/@kinaumov/back-to-the-basics-uniswap-balancer-curve-e930c3ad9046?source=rss-97a731779123------2</link>
            <guid isPermaLink="false">https://medium.com/p/e930c3ad9046</guid>
            <category><![CDATA[curve-finance]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[balancer]]></category>
            <category><![CDATA[uniswap]]></category>
            <category><![CDATA[defi]]></category>
            <dc:creator><![CDATA[Kirill Naumov]]></dc:creator>
            <pubDate>Mon, 06 Jun 2022 00:51:45 GMT</pubDate>
            <atom:updated>2022-06-06T00:51:45.949Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PaPjh0_CG8HCNfkKTTaSlw.png" /></figure><blockquote>This article was originally posted as a Twitter thread, you can check it out <a href="https://twitter.com/kinaumov/status/1533174556747350019?s=20&amp;t=S7c9NcfZkGHoI7JCUMR1hg">here</a>.</blockquote><p>Understanding DeFi fundamentals is crucial for analyzing newer projects. In this article I’ll summarize over 100 pages of AMM research and explain exactly how these three protocols work. Try to follow the math, it’s interesting.</p><p>I noticed that most of the new talent in the crypto space aren’t familiar with the mechanics of these protocols, which are really central to DeFi infrastructure and its history</p><p>Btw feel free to skip parts of the article straight to the project you want</p><p>Let’s get into it</p><p>Automated Market Makers (AMMs) are decentralized exchanges that create pools of liquidity (tokens) deposited by users and price the assets within the pool using algorithms. The exact mechanics vary from exchange to exchange.</p><p>Uniswap was inspired by an idea of an automated market maker <a href="https://www.reddit.com/r/ethereum/comments/55m04x/lets_run_onchain_decentralized_exchanges_the_way/">posted</a> by Vitalik Buterin in 2016. Developed by Hayden Adams, it launched two years later in November of 2018.</p><p>Uniswap V1 and V2 work via a constant-product formula (remember this term).</p><p><strong>x * y = k</strong></p><p>where</p><p>x: number of token 1 in the pool<br>y: number of token 2 in the pool<br>k: constant that stays constant during trades but is recalculated when liquidity is provided / withdrawn</p><p>Users can provide liquidity (LP) for the AMM by depositing both assets in equal proportion of value. An LP’s portion of the liquidity in the pool is represented by an ERC-20 token, which they receive when adding liquidity and burn when withdrawing.</p><p>When a trade is made, a user adds an amount of token 1 into the pool (x increases). For the constant to remain the same, y must be reduced. The difference between the original y and the new y is how much of token 2 the user receives after the trade.</p><p>For example</p><p>There is a pool with 20,000 USDC and 10 ETH. K would be 200,000. If you wanted to sell 1 ETH, ETH in the pool increases to 11. For the equality to hold, USDC must decrease to 200,000 / 11 = 18,181.82</p><p>You receive 20,000–18,181.82 = 1,818.18 USDC for 1 ETH</p><p>The Spot Price (SP) in a constant-product AMM like Uniswap is calculated by dividing the amount of token 1 in the pool by the amount of token 2.</p><p><strong>SP = x / y</strong></p><p>In our USDC/ETH example, the spot price would be 20,000 / 10 = 2,000</p><p>However, the spot price only holds for infinitesimal trades. The Effective Price (EP) of a trade is the amount of token received over the amount given away.</p><p>In our example, EP = 1,818.18 / 1 = 1,818.18</p><p>New SP = 18,181.82 / 11 = 1,652.89 (it’s lower than EP)</p><p>The x * y = k price equation can be graphed as a curve. This curve never touches either of the axis, meaning that a constant product AMM always has liquidity, no matter what price. Trading moves the point along the curve. Adding / Withdrawing liquidity shifts the curve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NWAchj7EyqfB4X6eIUXy-w.png" /></figure><p>One more important concept before we move on from Uniswap: Impermanent Loss (IL). IL occurs when the price of the tokens changes after you’ve deposited them in a pool. When price moves along the curve, the Liquidity Provider’s (LP’s) position loses value.</p><p>However, spot price can return to its original state, which makes this loss impermanent. IL can also be hedged against via clever options strategies to preserve yield while protecting yourself from risk. More on IL <a href="https://academy.binance.com/en/articles/impermanent-loss-explained">here</a>.</p><p>Uniswap V3, <a href="https://uniswap.org/blog/uniswap-v3">introduced in March 2021</a>, uses concentrated liquidity and fee tiers. This model allows for increased liquidity around a target price and for various risk-reward profiles for LPs. Uniswap V3 is much more capital-efficient than V2.</p><p>Balancer Labs was founded in 2018 as a project incubated by Block Science before being spun out as a separate company. They <a href="https://balancer.fi/whitepaper.pdf">published their whitepaper</a> in September 2019 and launched in March 2020.</p><p>Balancer is an AMM that allows the permissionless creation of liquidity pools with up to 8 tokens in any ratio. In simple terms, while Uniswap pools consist of two assets, Balancer extended the idea and created a formula for pools of n assets with arbitrary weights.</p><p>Let’s start with weights. Let W be the weight of a token in a pool such that all weights add up to 1. We can then modify the spot price formula to account for target weights like so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wLKqdz2Ur6wSn0ehd5p6aw.png" /></figure><p>The formula for a constant-product pool of assets is an extension of Uniswap’s x * y = k.</p><p>For three assets, it would look like so: <strong>x * y * z = k</strong></p><p>Reminder: x, y, and z are balances of each tokens in a pool.</p><p>The spot price between two assets = x / y</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ryvl4Ix0kCEgHGLXjuVKew.png" /></figure><p>Putting it all together and generalizing to n assets, we get to this formula, which is the core equation for Balancer.</p><p>Note: we use balance to the power of weight instead of the intuitive multiplication by weight because this is not summation but multiplication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zs8fwD-jDNYBq9jZvpuxKg.png" /></figure><p>Like in Uniswap, the amount received in a swap is calculated by solving for the amount of token 2 that remains in the pool after token 1 amount increases, keeping the constant and the other assets fixed.</p><p>B is assets originally in the pool and A is the amounts exchanged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*0tuffX8a0PFf6TomzysSZg.png" /></figure><p>I created a simple visualization on how the weightings and the multi-asset pool affect spot prices for assets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*uyVJA8xK25Qzl8rJilML4g.png" /></figure><p>Balancer is composed of two critical components: liquidity pools and the trading platform. The user visits the trading platform to make a trade and the protocol then finds the most optimal quote for the swap through all of the available liquidity pools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a3CSCxjeeNtJi_q48bLlRw.png" /></figure><p>Liquidity pools on Balancer can be Controlled or Finalized. Controlled pools are updatable by the pool creator. The Controlled pool allows for asset weight, asset type, and fee adjustments. Finalized pools have fixed pool asset types, weights, and fees.</p><p>Liquidity Providers at Balancer receive the exchange fees and weekly $BAL emissions. Balancer tokens represent an ownership share in the protocol and grant voting rights in governance decisions.</p><p>$BAL can be staked for $veBAL, which grants more liquidity mining rewards and governance votes. Additionally, $veBAL introduces gauges that determine which pools liquidity mining rewards are allocated to, and bribing, similar to Curve’s ecosystem which we’ll discuss later.</p><p>While Balancer can be thought of as an exchange, it can also be thought of as an index protocol, where the token weightings are set to specific percentages of a pool and arbitrageurs ensure that weighting is maintained.</p><p>Curve Finance started as a <a href="https://curve.fi/files/stableswap-paper.pdf">StableSwap whitepaper</a> by Michael Egorov in November of 2019 and launched in January of 2020. Its design builds on top of the formulas used by Uniswap and Balancer.</p><p>Curve aims to provide sufficient liquidity with little slippage for like assets (for example, UDSC and UDST)</p><p>A constant-sum formula would allow for 1:1 swaps, but it may run out of liquidity and doesn’t have a balanced state. The image illustrates a constant-sum of x + y = 10</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EVEfdn3w3QtGyNPph4nrDQ.png" /></figure><p>Now let’s revise the constant product formula of Uniswap: <strong>y * x = k</strong> , where spot price is determined as <strong>SP = x / y</strong>. Effectively, price is a tangent on the curve. The more is exchanged, the more slippage is incurred from the original state to the final state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*WnRzB3dK2jdq9Dx0mpAhFg.png" /></figure><p>Curve’s key equation is a combination of a constant-product formula and a constant-sum formula, such that the curve is almost flat around the target price. This allows for minimal slippage around the target price and liquidity outside the range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*KgGo5Nd9MpzYZpDmszyYRA.png" /></figure><p>Let’s get into the math. We want to combine the sum invariant with the product invariant. As a first step, let’s just add them up. It will make sense later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*EYdAg3UoAbtSi0dbrqpqew.png" /></figure><p>What is (30M / 2)² and how did we get to it from a constant? It’s the product of the stablecoins in the balanced state. If the sum of coins in a pool is 30M, that’s 15M each. Their product is 15M².</p><p>So, what does the curve we derived look like? By rearranging we can obtain the plot below. Not much has improved in terms of low slippage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*rPFO-B2a3QsGgalNIKPfmw.png" /></figure><p>We can write DAI as x, USDC as y, and 30M becomes D again. Let’s then multiply the “sum” portion by a factor χ (Chi).</p><p>x + y = D becomes χ(x + y) = χD</p><p>Adding to the general equation we get</p><p><strong>χ(x + y) + x * y = χD + (D / 2)²</strong></p><p>Let’s see how the curve changes with varying χ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*V_hTefKgifN2eGmxVC_SkA.gif" /></figure><p>The Chi parameter (χ) can move the curve from zero slippage (flat) to high slippage (constant product) when 0. What we want is a dynamic χ, which varies with x and makes the curve flatter (slippage lower) around the target price</p><p>If the amounts of x and y are out of balance, we want χ to decrease, giving a steeper curve. If they are in balance (around the target price), we want χ to increase (curve becomes closer to x + y = D and gives low price slippage)</p><p>We also don’t want χ to vary with the total size of the pool. To make χ dimensionless, we multiply the sum invariant by D.</p><p>χ(x + y) = χD becomes Dχ(x + y) = χD²</p><p>The new main equation:</p><p><strong>Dχ(x + y) + x * y = χD² + (D / 2)²</strong></p><p>To make χ adapt to the ratio of tokens in a pool, @newmichwill proposed to use this formula, where A is a constant:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*n3ip4aENF4Zxlv8GzGT3Mw.png" /></figure><p>Let’s work through an example where a pool has two assets, each worth $1, and totaling to $40.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*dsdMrpTfZJmpsuzqOu2GCQ.png" /></figure><p>This is exactly what we want — χ to be high when the pool is balanced (making the curve flatter, low slippage) and low when the pool is out of balance (high slippage)</p><p>Now we substitute this χ into the main equation to get</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C6ZSjKF4L3ko7J1r7dzJcw.png" /></figure><p>After simplifying this equation, we arrive at the final formula for Curve:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*ReaiT-iYYpZiZdVBVlTzHg.png" /></figure><p>We can generalize this formula to a pool with many tokens:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*mkZjtllwtiONPrMd2mFuUA.png" /></figure><p>The final curve for Stableswap (Curve) can be graphed for 2 assets like so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*KgGo5Nd9MpzYZpDmszyYRA.png" /></figure><p>Side note: unlike Balancer, Curve does not allow the pool creator to specify weightings of tokens in a pool — they are all meant to be equal. For example, a pool with 2 assets will incentivize liquidity provision towards the maintenance of a 50% — 50% weight.</p><p>Curve’s formula allowed the protocol to achieve significantly lower slippage than Uniswap. Currently, the slippage for swapping a million DAI for USDC is $127.84, or 0.0127%. The trade will be routed through 3pool, a pool consisting of DAI, USDC, and USDT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*VHo6t8yVJ58Tb2se2OxMhQ.png" /></figure><p>Currently, however, Curve’s market dominance in stable tokens is at risk, since Uniswap introduced V3 with concentrated liquidity. A swap of a million DAI to USDC slips only $90. You can read more about Uniswap V3 <a href="https://uniswap.org/blog/uniswap-v3">here</a>.</p><p>$CRV is Curve’s native token, used for voting, staking, and boosting rewards. To participate in these activities, users must lock $CRV for $veCRV (vote-escrowed CRV). Votes and LP rewards depend on both the quantity of tokens locked and the duration.</p><p>This aligns the incentives of holders with long-term protocol success. Currently, 56.2% of all CRV are locked for an average of 3.64 years.</p><p>$veCRV holders receive boosted rewards from liquidity provision. They can also propose and vote for pools that receive liquidity mining incentives. Here are the proposed gauge weights going into effect in 4 days:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*WcZNJU8LmrOcOp2-b60flw.png" /></figure><p>As you can see, controlling voting power over Curve liquidity mining emissions can be very important for players who want to direct them towards their own pools.</p><p>To receive maximum LP rewards, LPs must lock a very significant amount of $CRV. This is where Convex Finance enters the stage — it aggregates its users’ $veCRV and deposits so they could get the maximum yield without needing $veCRV.</p><p>Convex quickly accumulated billions in liquidity and $veCRV and became the central place for voting on Curve’s governance and LP incentives. Projects now bribe $CVX token holders to influence the votes Convex casts with its $veCRV.</p><p>Diving into Curve wars should be its own article so for now you can just learn more about it <a href="https://every.to/almanack/curve-wars">here</a>.</p><p>This concludes my overview of the AMMs that shaped the market to become what it is now. Let me know if I missed anything and please give me a follow @kinaumov on Twitter if you learned something new.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e930c3ad9046" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why We Invested in Solv Protocol]]></title>
            <link>https://medium.com/hash-cib/why-we-invested-in-solv-protocol-f3ec62c88111?source=rss-97a731779123------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3ec62c88111</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[solv-protocol]]></category>
            <category><![CDATA[decentralized-finance]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[erc3525]]></category>
            <dc:creator><![CDATA[Kirill Naumov]]></dc:creator>
            <pubDate>Tue, 15 Mar 2022 16:25:42 GMT</pubDate>
            <atom:updated>2022-03-15T16:32:24.353Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Be9lAbKWZEd_7g3gIeIrfQ.jpeg" /></figure><blockquote>By <strong>Kirill Naumov, </strong>Research Analyst at HASH CIB (k.naumov@hashcib.com)</blockquote><blockquote>Special thanks to <strong>Yuan Han Li </strong>from the <strong>Blockchain Capital</strong> team for the feedback on the ERC-3525 token standard.</blockquote><p>The influx of talent and capital into the cryptocurrency space has led to a boom in blockchain-related innovations. Numerous projects have raised millions to expand operations and promote services. Despite the push towards decentralization of the financial sector, most venture capital deals are made on paper. Usually, developers and investors sign a Simple Agreement for Future Tokens (SAFT), which states the terms of the investors’ allocation in the project’s tokens after the Token Generation Event (TGE). A SAFT typically involves a vesting schedule and other unlock-specifics.</p><p>With the banning of ICOs, the process of raising funding for a lean cryptocurrency startup is overly complex, exclusive, and centralized. Currently, prior to the public sale, projects lack an effective mechanism for raising funds. Apart from legal and regulatory challenges, developers and early-stage investors must keep track of their agreements, the record of which is stored solely on paper. Furthermore, long-term lockups and vesting schedules reduce the liquidity of such investments. Ultimately, this is out-of-pace with advancements in the traditional FinTech sector.</p><p>On the other end of the spectrum, for established projects with projectable cash flows, fundraising options are often limited to significantly diluting the token holders with a centralized sale to institutional investors at a considerable discount and with a long lockup period. Ultimately, the project raises fewer funds, and the investors buy into an illiquid asset that may be worth nothing by the end of the lockup period.</p><p>The rising popularity of Decentralized Autonomous Organizations (DAOs) further complicates fundraising. Once a startup is decentralized, it can no longer sign a SAFT or raise funds in the traditional way. Because of this, DAOs are centralized until all development is complete and the platform is in a steady state. This delays decentralization and defeats the purpose of creating a DAO in the first place. Going forward, it makes perfect sense for DAOs to fundraise through crypto-native financial instruments.</p><h3><strong>Project overview</strong></h3><p>Solv Protocol aims to improve project fundraising via financial NFTs called Vouchers. Vouchers take advantage of the fundamental principles of ERC-721 NFTs to record investment allocations, bond issues, deposit receipts, and cover notes. However, vouchers are built on the ERC-3525 token standard, allowing them to be split and merged freely. Solv Protocol developed and published the ERC-3525 token standard, allowing it to be used for all future financial NFTs, unlocking countless possibilities for innovation in DeFi.</p><p>ERC-3525 is a Semi-Fungible Token Standard which is fully compatible with ERC-721, in that every ERC-3525 token can be represented as a unique ERC-721 entity with its respective properties. By adding the “units” property, the developers managed to create semi-fungibility — individually unique assets which can be split and merged at will. For certain applications, especially gaming or financial, ERC-3525 is the perfect solution, because otherwise achieving their goals would require either creating countless ERC-20 contracts (for each individual property or asset) or coming up with a solution for the illiquidity and indivisibility of ERC-721.</p><p>Solv Vouchers, built on the ERC-3525 token standard, bring liquidity to locked-up assets. For example, by selling a Vesting Voucher that promises an allocation of future tokens, a fund or an investor effectively sells their share in the project before the project is publicly traded.</p><p>Solv Protocol provides simple and customizable tools for startups and DAOs to raise funds. For example, vouchers can be split and merged at will if they have the same underlying qualities, such as lockup period, vesting schedule, APY, etc.</p><p>Solv Protocol Vouchers are currently used by Perpetual Protocol, Unslashed Finance, Paragons, DODO, Highstreet, ColdStack, ClearDAO, and others. With a current total value locked (TVL) of $69 million, Solv Protocol continues to introduce innovative products and rapidly onboard projects.</p><p>Solv Protocol recently introduced Convertible Vouchers, the convertible bond of decentralized finance. This powerful NFT structure enables high-risk DeFi protocols to raise financing without dilution or the risk of liquidation, and it protects investors from the price volatility of the project’s tokens. The design of the Convertible Voucher retains all the convenient elements of a Solv Voucher (splitting / combining, adjusting release modes, and customizable settlement date). Moreover, it adds an acceptable trading range for the underlying token. If the token falls below or rises above the trading range, the holder of the Convertible Voucher receives tokens as payout, equivalent to the par value of the Voucher. This design protects the project from excessive token dumping by early investors when their allocations unlock, and it significantly reduces the volatility for risk-averse investors.</p><h3>A bright future</h3><p>Solv Protocol’s ERC-3525 token standard, a universal standard for financial NFTs, opens the door to numerous potential implementations, such as decentralized bonds, structured products, and accounting systems for pool-based DeFi projects.</p><p><strong>DeFi bonds</strong></p><p>In traditional finance, sustainable businesses raise funds by issuing corporate debt rather than diluting equity. As decentralized finance matures, stable decentralized applications will explore opportunities for fundraising through debt, which is not currently feasible in the DeFi ecosystem. Solv Protocol’s ERC-3525 Semi-Fungible Tokens could be used as a registry of bond ownership and as a guarantee for payments. For example, a project would lock a multiple of the debt’s value in team tokens as collateral for the issuance of their Vouchers and, if a regular interest payment or principal repayment is missed, the lenders automatically receive the locked collateral. Bond terms would entirely depend on the project’s growth stage, sustainability, and security. We estimate the market of DeFi bonds to be worth tens of billions of dollars by 2024, assuming DeFi project valuations remain stable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ay29CNIc_NA0qzlG4GM9Dw.jpeg" /></figure><p>For example, let’s explore the case of Yearn Finance. Virtually all the supply of YFI has already been generated, and the project has no means of attracting investment via token dilution. If Yearn developers wanted to expand, they would explore options of raising capital. As a late-stage established project with sustainable cash flows, Yearn offers a perfect illustration for the potential application of Solv Vouchers for debt fundraising.</p><p>To implement Solv vouchers, the Yearn community would need to:</p><ol><li>Put forward and vote in favor of a governance proposal including the parameters of the capital raise through Solv.</li><li>Establish a Solv pool that earns a percentage of protocol revenues and distributes income among voucher holders. The Solv coupon payment would have priority in the distribution of protocol revenues, and once that is covered, the protocol continues its token buybacks, similar to how bonds and equity work in traditional finance.</li><li>After fundraising and a period of coupon payments, the protocol would repay the principal.</li></ol><p>For the tenor of the bond, collateral in YFI sourced from the Yearn treasury (which currently holds approximately 4000 YFI) would be locked, to be released in case of failure to cover the coupon payment.</p><p>Bonds by Solv Protocol would allow established projects with real and projectable cash flows to attract much cheaper and more stable financing while simultaneously improving the capital structure of the protocol and eventually increasing their own valuations.</p><p><strong>Structured products</strong></p><p>We expect to see the rise of structured products in DeFi in the next few years. Solv Protocol’s divisible NFT standard could be used as the platform for their development. Vouchers could be used to combine assets and allocations into lockup-based structured products that offset volatility risks. The creation of structured products for cryptocurrency investments has vast market potential due to the interest from qualified investors and hedge funds looking to gain exposure to cryptocurrency without its volatility. Some of the instruments feeding into complex structured products are ERC-20 tokens, long/short tokens, fixed income allocation tokens, and weighted index fund tokens. While projects like Ribbon Finance is already trying to disrupt this market, we see untapped potential in employing Solv Protocol Vouchers to create structured products that offset risks.</p><p>For example, the Solv NFT standard would be the perfect platform for investment vehicles that protect DEX liquidity providers from impermanent loss. A combination of out-of-the-money put and call options could be created to offset any loss incurred by a liquidity provider from price fluctuations within a specific range. As the market matures and institutional clients deploy capital into AMM liquidity pools, demand for decentralized hedging instruments will increase. We expect the Solv Protocol divisible NFT standard to prove perfect for the development of hedging via options, among other applications of complex structured products.</p><p><strong>Accounting systems</strong></p><p>Finally, the ERC-3525 standard could be used to develop accounting systems for complex pool-based DeFi projects. The ability to split and merge NFT tokens would allow for the creation of a liquid market for user pool allocations. Many newer DeFi accounting systems cannot employ ERC-20 or the original version of ERC-721 to satisfy the requirements. Instead, projects like Uniswap V3 develop accounting system solutions in-house, spending time and capital, and taking on substantial risk. As more decentralized exchanges adopt concentrated liquidity and more complex DeFi protocols emerge, the ERC-20 standard will be replaced by one that can store more information. Using a universal framework, a common standard throughout DeFi, that Solv would build would be much more efficient (and native for both users and DeFi developers) than developing accounting systems in-house using the old ERC-721 standard.</p><h3>Final thoughts</h3><p>As the pioneer in the market of financial NFTs, Solv Protocol has an extensive number of potential implementations of their technology. We are not alone in this opinion — Solv Protocol’s strong strategic partnerships are a good illustration of the market leaders’ thoughts regarding the project and its future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3ec62c88111" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hash-cib/why-we-invested-in-solv-protocol-f3ec62c88111">Why We Invested in Solv Protocol</a> was originally published in <a href="https://medium.com/hash-cib">HASH CIB</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2022 Crypto Theses]]></title>
            <link>https://medium.com/@kinaumov/2022-crypto-theses-3383f725f9e2?source=rss-97a731779123------2</link>
            <guid isPermaLink="false">https://medium.com/p/3383f725f9e2</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[venture-capital]]></category>
            <category><![CDATA[metaverse]]></category>
            <dc:creator><![CDATA[Kirill Naumov]]></dc:creator>
            <pubDate>Fri, 31 Dec 2021 16:21:46 GMT</pubDate>
            <atom:updated>2021-12-31T16:21:46.298Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A view on the main theses and trends in crypto for 2022</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qpmKLGQ2g5Xa3huL9EjBRQ.png" /></figure><p>It’s that time of the year again. This time, however, I decided to put my views on paper to summarize the mess of information that is flowing through my head. I’ll try to keep it brief for the sake of your time.</p><p>2021 was an extraordinary year for anyone even remotely involved with cryptocurrency. People had the time of their lives watching their wealth skyrocket (unless you got liquidated on May 19th). Bitcoin reached an ATH of $69,000, the Ethereum killers and Layer twos are now mainstream, NFTs were sold at Sotheby’s for millions, and Elon Musk’s meme coins had the entire world watching crypto in awe.</p><p>In 2021, crypto has captured the public’s attention like never before. I can’t promise the same for next year, but here are some theses about the direction of the cryptocurrency ecosystem in 2022.</p><p><strong>Ethereum Scaling:</strong> Ethereum fees are ridiculous and they are here to stay for the foreseeable future. Layer two (L2) rollups help reduce Ethereum’s network congestion by executing transactions off-chain and only writing the most crucial data to the chain, thus leveraging the security of Ethereum. Sidechains remove transactions from Ethereum entirely and use their own set of validators to confirm and write transactions. I am fairly confident that ZK rollups will win the Layer 2 scalability race in the long term once they achieve smart contract functionality. For the time being, however, Optimistic rollups will be gaining users and TVL. Can’t wait for Ethereum 2.0, whenever that will finally come.</p><p><strong>Ethereum Killers:</strong> If anyone was thankful for Ethereum’s congestion, it was the “Ethereum killers”, which had a killer year (pun intended). Other Layer one (L1) blockchains (i.e., Solana, Avalanche, Cardano, Polkadot, and NEAR to name a few) compete with Ethereum by theorizing different implementations of the blockchain for faster transaction speed, lower transaction costs, and higher throughput, but sometimes with the trade off of increased centralization. Going into 2022, I see the trend of Ethereum losing market share in TVL continuing and the ecosystem growing into a multichain future where the user experience is completely abstracted from the network layer. The current narrative of “Ethereum killers” is far from new and largely stems from venture capitalists with huge portfolios in the chains that just so happen to be at the forefront of the narrative. I’m not a big fan of being dumped on by VCs so will abstain from any positive predictions regarding Ethereum killers. If the investment environment cools off in 2022, altcoins will take the biggest hits, unless their progress outpaces the selloff. For most, it won’t.</p><p><strong>Composability:</strong> The key difference between the crypto economy and traditional finance is composability, which allows anyone to take existing projects and build on top of them, unlocking new use cases. The multichain future and its DeFi ecosystem demand composability between blockchains and protocols to improve the user experience and capital efficiency. In 2022, we will see the emergence and adoption of technology that connects the networks and dApps that were most successful in 2021. I am talking about bridging solutions, cross-chain DeFi applications, utilization of LP and derivative position tokens as collateral in protocols, and numerous cross-dApp collaborations that create complex DeFi instruments. During a bull run, everyone wants a quick cash grab. Real progress takes place when retail interest cools off.</p><p><strong>Metaverse:</strong> No, not Meta. I mean the entire concept. The narrative is so overhyped now that everyone and their mother is building something for the metaverse. Poor VCs have to go through hundreds of VR game and NFT project decks to find anything they could get behind. Ultimately, I think that in 2022 we’ll see real implementations of blockchain in virtual reality and screen-based 3D environments, including NFT collectibles, avatars, characters, and property. In my opinion, once big boys like Meta take over the narrative, projects like Decentraland won’t be relevant at all. In terms of valuations, we’ll see a slow and painful fall of projects that rode the crypto metaverse trend in 2021, but also rapid rises in new (and better) projects. Hence, investing in the Metaverse Index ($MVI) won’t cut it anymore — inventors will need to carefully pick newer projects for their portfolios. At the end of the day though, I don’t think that many of my business meetings will shift their medium of communication to a VR meeting room, but am nevertheless very excited for finally being able to show off my NFT bags to non-crypto people.</p><p><strong>NFTs:</strong> Speaking of NFTs, 2021 was an insane year for the NFT market. We saw the meteoric rise of profile picture (PFP) and generative art NFTs. Even major corporations got involved (i.e., Nike, Adidas, Visa, Coca Cola, Sony). Currently, major CeFi players are building NFT marketplaces, which will allow millions of users to access art on the blockchain. My bet is on credible projects in the $500–3000 range getting featured and seeing huge rallies when these platforms debut. That being said, art is not the sole purpose of NFTs, as proven by Uniswap V3’s EC-721 liquidity positions. Going into 2022, I see the rise of financial NFTs, which represent information that cannot be stored in ERC-20 tokens. Specifically, I see more projects adopting ERC-721 as the standard for accounting and other projects starting to accept these as collateral. Ultimately, the push towards composability will not be limited to ERC-20 tokens.</p><p><strong>DAOs:</strong> 2022 will be the year of the DAO. The core idea of cryptocurrency is decentralization and if an established project in crypto is not decentralized by the end of 2022 I’m not touching it with a 6-foot pole. I think that in 2022 we’ll see startups raising funds from DAOs instead of VCs, DAOs streaming token call options instead of bulk-selling tokens (airdrip), DAOs setting up risk-management structures (more on this later), and so much DAO governance bribing that there will be projects with a sole mission of combatting this issue.</p><p><strong>Risk-Management:</strong> In 2021, we saw the largest of protocols start building out systems for risk management and risk allocation (e.g., backstop liquidity, risk management governance settings). In 2022, these improvements will become the norm for new protocols going into mainnet. Protocols will have to design mechanisms for reimbursing users in case of security breaches before going into production rather than after said hack takes place. Risk has really not been addressed enough yet.</p><p><strong>Memes, Ponzis, and FOMO:</strong> Finally something fun to write about. The community, both crypto-native and retail investors, loves skyrocketing coins and ponzis. That won’t change ever, but it’s likely that it will be less prevalent in 2022. The technology of FOMO-ing doesn’t change, only the target changes. Best thing we can do is spend hours on crypto twitter and identify memes early.</p><p>I know that there’s many trends and upcoming technologies which I’ve omitted in this summary, so feel free to add your two cents in the comments. I appreciate you taking the time to read this writeup and hope that you will enjoy the time off with family and friends.</p><p>Happy New Year!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3383f725f9e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bridging the Waters]]></title>
            <link>https://medium.com/hash-cib/bridging-the-waters-bbd68b78c3f6?source=rss-97a731779123------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbd68b78c3f6</guid>
            <category><![CDATA[amm]]></category>
            <category><![CDATA[crosschain]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[chainflip]]></category>
            <category><![CDATA[thorchain]]></category>
            <dc:creator><![CDATA[Kirill Naumov]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 18:33:28 GMT</pubDate>
            <atom:updated>2022-03-15T16:28:28.177Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>An In-Depth Analysis of THORChain and the Case for Cross-Chain Liquidity Infrastructure</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sW1QgGgFG_ELQrWDllvlkQ.jpeg" /></figure><blockquote><em>“It’s hard enough to find an error in your code when you’re looking for it; it’s even harder when you’ve assumed your code is error-free.” — </em>Steve McConnell</blockquote><blockquote>By <strong>Kirill Naumov, </strong>Research Analyst at HASH CIB (k.naumov@hashcib.com), and <strong>Misha Butov, </strong>Research Partner at HASH CIB (mb@hashcib.com).</blockquote><blockquote>Special thanks to <strong>Lorenzo Valente </strong>from the <strong>ChainFlip</strong> team for the feedback on THORChain and ChainFlip design features.</blockquote><h3><strong>Project Overview</strong></h3><p>THORChain is a protocol that allows users to swap native assets without an intermediary of a centralized exchange. Until now, a user had to sign up with an exchange and complete KYC procedures to trade native assets like, for example, Bitcoin and Litecoin. Previous approaches to this challenge, like Wrapping and Atomic Swaps, didn’t achieve the goal of creating a trustless exchange or have been largely illiquid.</p><p>From the user’s point of view, they have to send their funds into THORChain’s native wallet, select what asset they want to swap for, and confirm the swap. Like for any other popular DEX, THORChain’s goal was to create a frictionless user experience. The only difference in the UX between THORChain and other AMM Decentralized Exchanges is the presence of their native wallet, which is required for swapping assets on THORChain. While the user controls their private keys, they either sacrifice the ability to select where they store their funds or must pay extra transaction fees to send funds through THORChain’s wallet before a swap.</p><p>THORChain promises a significant increase in liquidity over other Decentralized Exchanges. This is achieved by placing every native asset into a liquidity pool against RUNE, THORChain’s native token. This approach allows having only a single trading pair for each asset connected to THORChain. If a user wants to swap one native asset for another, the system swaps the first asset for RUNE and then RUNE for the second one. This type of transaction is called the doubleswap. At the same time, it should be noted that this increase in the liquidity of traded assets comes at a price of the reduced overall capital efficiency of the system as every asset needs to be paired with native RUNE token, which is unnecessary in Uniswap-like DEXs, where bridging assets emerge based on market dynamics and intercommunications between the pools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ktj7waU-_fYZGnYO03Xt3A.png" /></figure><p>THORChain utilizes network infrastructure that mimics that of centralized exchanges. There are two types of vaults: one ASGARD vault and 36 YGGDRASIL vaults. The ASGARD vault is collectively controlled by the validating nodes of the network, which utilize Multi-Party Computation technology to sign transactions. YGGDRASIL vaults are controlled by nodes and contain the inbound and outbound assets for user operations, similar to “hot wallets” in centralized exchanges. Because the nodes hold the private keys for their respective vaults, they must bond at least twice as much capital as is stored in their vaults to ensure they do not steal user funds.</p><p>To incentivize nodes to participate in the network and to bond such a substantial amount of capital, they get a share of the network rewards. Transaction fees and liquidity emissions are distributed between Liquidity Providers and Validating Nodes in a proportion determined by the Incentive Pendulum, THORChain’s innovative algorithm that keeps the network in a safe and balanced state.</p><p>To avoid the issue of transaction front-running which persists on other decentralized exchanges, THORChain introduced the Slip-based fee. This fee is proportional to the change in price which a given trade incurs and creates an order of transaction execution priority in the network; the transactions with higher Slip-based fees are executed first. Thus, if a user wants to complete a large trade quickly, they do it in one swap and pay a sizeable Slip-based fee. To reduce the Slip-based fee, a user can complete a trade in several swaps, so each of them will have a more negligible effect on the price but can be subject to a front-run attack.</p><p>THORChain launched its MultiChain ChaosNet (MCCN) network in April. The MCCN is the final public beta test before releasing THORChain’s mainnet, which is planned to take place in several months. The previous stage of testing, Single Chain ChaosNet (SCCN), ran for eight months on the Binance Chain. Currently, more than two months into cross-chain compatibility, THORChain still sees a larger volume on BSC token pools rather than on native token pools like Bitcoin and Ethereum. BUSD is used as the stablecoin of choice in the THORChain ecosystem and thus sees the highest volume.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aNReS3rfST75BJUMMomkjQ.png" /><figcaption>Source: THORChain, THORSwap (23 June 2021)</figcaption></figure><h3>Fees, Fees, and More Fees</h3><p>Fees on THORChain are divided into four categories, from which one or more can be present in each transaction: network fees, native asset transaction fees, slip fees, and affiliate fees. In a swap, these fees are deducted from the inbound or outbound asset automatically and do not require the user to hold any RUNE, simplifying the user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ph96AHZcZory7w6t686Veg.png" /><figcaption>Source: HASH CIB (25 May 2021)</figcaption></figure><p>The Network fee is a flat fee that the user pays for any transaction involving the THORChain network. The Network fee is fixed at 0.02 RUNE and is subtracted automatically from the user’s balance or the payment. In the event of a swap where the user does not own any RUNE, the Network fee is subtracted from the inbound asset in the asset’s currency.</p><p>The Network fee from each transaction automatically gets added to the Liquidity Emission Reserve. The reserve currently contains approximately 190 million RUNE and distributes 1/6 of the balance annually to Validating Nodes and Liquidity Providers in a ratio determined by the Incentive Pendulum. This distribution comes once per block. Nodes and Liquidity Providers receive 100% of the Slip fees paid by users and the Block Reward that comes from the reserve.</p><p>Native asset fees are used to pay inbound and outbound transaction fees on native blockchains such as Bitcoin, Ethereum, and Litecoin. The price for sending tokens into and from THORChain Vaults is calculated from the runtime gas fees of both the inbound and outbound assets.</p><p>Slip-based fees are the penalty for shifting the price in the AMM liquidity pool. Slip-based fees are unique to the THORChain platform and were conceived to allow the network to prioritize large transactions and prevent front-running. These fees are calculated as the percentage of the liquidity pool of the inbound asset which the swap constitutes. For a doubleswap, the Slip-based fee is applied twice.</p><p>Finally, affiliate fees allow ecosystem developers to benefit from the utilization of their front-end applications. Affiliate fees can be of any amount and are added to the memo of the transaction. Like the network fee, if the user does not own any RUNE, the fee is subtracted from the inbound asset.</p><p>Because the swap fees contain both fixed and variable components, there remains an area for execution optimization. A large trade can be broken down into smaller transactions to reduce the Slip-based fee and increase the output value received from the swap. For example, for the transaction shown above, if the trade is split into two swaps of 0.5 BTC, the user will pay twice as much fixed fees, but the total Slip-based fee will be reduced by approximately 50%. For the first swap (BTC to RUNE), the user will pay roughly $105. Similarly, for the second swap, the user will pay $133 (the fee is higher here because the ETH-RUNE pool has less liquidity, and thus the price impact is higher).</p><p>We saw this opportunity for optimization of transaction fees and developed a simple algorithm that allows users to find out in how many swaps they should split their trade on THORChain to minimize the associated costs. You can view and download the Python script from our <a href="https://github.com/hashcib/THORChain-Fee-Calculator">GitHub</a>. You can also consider how the calculation works <a href="https://docs.google.com/spreadsheets/u/2/d/1Z6h3bfVRldBdCXF_MULN1KkOJMX3wA4QiMgS0nz3I0I/edit?usp=sharing">here</a>. What we cannot account for, however, is the possibility of a partial transaction front-run by someone monitoring the transaction pool of the protocol for large split-up trades.</p><h3>The Incentive Pendulum</h3><p>The cross-chain nature of the project requires a substantial amount of capital to be bonded by nodes (deposited into the system) to prevent them from taking the user-deposited liquidity. Per THORChain’s current design, bonded capital must be double the native assets in AMM liquidity and double the RUNE in liquidity (equal to the total liquidity in the protocol). To keep the network in this balanced state, THORChain’s team introduced the Incentive Pendulum, which distributes the fees proportionally to the urgency of capital requirement in either liquidity or bond.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2vguYuUpF7CrTJM4wNvM7Q.png" /></figure><p>When the number of staked RUNE (in liquidity) is equal to the number of bonded RUNE, the network is in a dangerous state. In this case, the total staked assets in liquidity (RUNE and native assets) are double the bonded RUNE, which puts the network at risk where nodes may withdraw capital and make a profit even with the RUNE price collapsing. In this state, all the rewards coming from the liquidity emission reserve go to nodes, incentivizing them to bond more capital. Thus, nodes will increase the capital bonded and secure the network assuming the perfect competition.</p><p>In the case of irrational behavior from network participants, nodes can refrain from increasing bonded capital. When the number of RUNE bonded is equal to the RUNE in liquidity, nodes already are earning 100% from all the network’s liquidity emission incentives, while Liquidity Providers are earning 0%. Thus, if the nodes can collude, there is no reason for them to increase bonded capital as the total reward will only substantially decrease. In case of such collusion, we can expect that Liquidity Providers will pull out their assets from the pools, which will rebalance the Pendulum but will have a detrimental effect on the THORChain’s performance as an exchange.</p><p>It is critical to point out that bonded capital is crucial for network security. It cannot be delegated or lent to nodes, making the amount of capital bonded less flexible than liquidity due to the constrained number of participants. Effectively, many nodes may not be able to provide additional capital in a timely manner, breaking the system’s rationality and perfect competition assumptions.</p><p>If the value of RUNE experiences a flash-crash, the value of the bonded RUNE will fall much more than the value in the protocol’s liquidity. Due to the human factor and network congestion, rebalancing the assets can take several hours. For these several hours, the network could be in a vulnerable state where the bond is worth significantly less than the assets in the protocol, allowing the node owners to profit from withdrawing users’ funds.</p><h3>Competition in Cross-Chain Swapping</h3><p>The challenge of swapping native assets without the medium of a centralized exchange has been approached numerous times in the past several years by different projects. Atomic swaps were the first with a viable solution in 2017. Using Hash Timelock Contracts (HTLC), the system allowed two users to swap funds at an agreed exchange rate. Atomic Swaps required users to acknowledge receipt of their funds within a specified timeframe or the entire transaction would be canceled. This solution did not gain much traction because it lacked liquidity due to the peer-to-peer nature of each transaction.</p><p>With the rapid development of Decentralized Finance on Ethereum, we saw the emergence of wrapped native assets like wBTC, tBTC, wZEC, and wXLM in 2019 and 2020. These could be swapped on DeFi exchanges through AMM pools. However, solving the liquidity problem, wrapped tokens failed to preserve the qualities of the native assets like decentralization and privacy. Many users did not want to swap native assets for their wrapped counterparts on other exchanges due to a lack of trust and critical properties specific to the native chain. For example, privacy coins like Monero and ZCash lose their entire value proposition when wrapped.</p><p>Similarly, Fantom’s approach to the challenge of cross-chain swapping also fails to operate exclusively through native assets and resorts to wrapping. Fantom, an established DeFi platform, recently announced cross-chain compatibility through their partnership with RenVM. Despite this claim, they are fundamentally not a cross-chain exchange but a single-chain DEX with bridges that wrap assets from other blockchains.</p><p>THORChain seemingly solves the challenge of trading native assets without a centralized intermediary but has several shortcomings in its implementation. ChainFlip is a direct competitor to THORChain and claims to address its core issues. One significant difference in user experience, for example, is that to swap native assets, a user will not have to send them to a wallet on the platform first. Instead, they will just have to specify which address the inbound funds will come from, allowing nodes to attribute the received funds to the specific customer. While this is a minor detail, this solves the core problem that separates THORChain from being easily integrable into AMM aggregators on other chains.</p><p>Additionally, ChainFlip boasts faster signing of transactions on native blockchains than THORChain by knowing the nuances of each connected chain and adhering to tailor-made cryptographic primitives of each integrated chain. Instead of using their native token as the medium for liquidity, ChainFlip will use USDC as a base asset for all pairs, reducing the exchange’s reliance on its token and reducing friction for network participants. Compared with THORChain, this will significantly simplify the hedging of positions for professional investors and liquidity providers. ChainFlip developers referred to the dominance of Uniswap over Bancor (who initially introduced the AMM) achieved by their choice to dismantle the project’s token from the trading pairs, when we inquired about this difference.</p><p>ChainFlip will be bui1lt on the Substrate framework but will not be a parachain of Polkadot. All the core logic of the exchange will be implemented in the Substrate’s runtime. It will enable several important features such as Uniswap V3 style concentrated liquidity provision and transaction batching to prevent front-running opportunities. ChainFlip will also be one of the first DEXes to enable RPC calls to the exchange API, making it even more friendly for professional users (<a href="https://blog.chainflip.io/cryptoeconomics-series-p3/">source</a>).</p><p>While an implementation fully based on Polkadot is infeasible due to the requirement of collateral staking from validators, we see a great opportunity in ChainFlip utilizing the Shared Security of Polkadot through the Relay Chain to raise the capital requirement for attacking the platform and to improve user trust. Essentially, in our view, being a parachain of Polkadot would reduce the risks of the platform. However, because the team is unsure whether nodes and quoters will need to stake tokens and how much, this issue is still being debated. By our estimates, ChainFlip is roughly 1.5 years behind THORChain in its development.</p><h3>Community Projects</h3><p>THORChain has a highly active community with many teams of developers building innovative applications on THORChain’s platform. The most notable projects include xDeFi, BrokkrFinance, THORSwap, and Thorstarter. <br>xDeFi is a cross-chain wallet that will allow users to swap native assets cross-chain within its interface and interact with any other decentralized applications irrespective of the blockchain. In essence, xDeFi is creating an application very similar to Metamask but cross-chain, which was made possible by the technologies pioneered by THORChain. xDeFi secured a $1.2 million seed investment in March 2021 and the project is currently in the private beta stage.</p><p>BrokkrFinance is developing a large-scale project made possible by THORChain, which aggregates all the largest Decentralized Finance applications and allows users to access all of them from a single dashboard. Additionally, BrokkrFinance will calculate the most optimal routes for swapping assets through all commonly used AMM protocols. Finally, BrokkrFinance will compile data for all Liquidity Provision, Staking, Farming, and Lending in Decentralized Finance, assess their individual risks, and give its users the ability to invest in the most profitable option based on their risk tolerance.</p><p>THORSwap is an alternative main interface for THORChain. Both are front-end applications designed to swap native assets through THORChain, but ASGARDEX was developed by the core team behind THORChain, while THORSwap was created by a separate developer team from the THORChain’s ecosystem. Neither of the front-end applications charges affiliate fees. THORSwap is much more comprehensive and complex than ASGARDEX in terms of available information and features, which gives it the edge in customer experience.</p><p>Thorstarter is a decentralized protocol that relays liquidity from THORChain for smaller projects and tokens. Because THORChain has a complicated network approval process and a limited number of possible pools, it is infeasible for a new small-cap token to be listed on THORChain. However, it can be listed on Thorstarter, which will act as an incubator for long-tail crypto assets and new projects seeking to trade their token across native assets. Thorstarter will complement and extend the reach and liquidity of THORChain, allowing small-cap tokens to be exchanged for well-known native assets like Bitcoin and Ethereum.</p><p>The ability to manage asset pools on different blockchains opens up a wide variety of novel financial applications that otherwise would not be possible for Script-based blockchains. For example, starting with cross-chain swaps, the THORChain ecosystem can evolve into cross-chain money markets, yield aggregators, and derivative platforms. While currently, such assets need to be wrapped on Ethereum to become a part of the DeFi movement, THORChain and ChainFlip will bring DeFi directly to these chains.</p><p>A low-hanging fruit for the THORChain platform could be a protocol that would allow for single-sided asset provision into a liquidity pool. This could be achieved by matching liquidity providers of a given native asset with aggregated RUNE liquidity providers and, through some clever mechanics, dividing the Impermanent Loss into two pools and weighting it depending on the effect of isolated price action in the two pools. A protocol like this would allow traditional liquidity providers to remove the friction of buying and holding RUNE tokens while at the same time creating a stable value flow for RUNE holders who do not want to take on the risks of exposure to other assets.</p><h3>Navigating the Security Assumptions of THORChain</h3><p>A long-lasting battle for the ultimate “Ethereum killer” is still struggling to produce a worthy alternative. The prohibitive gas costs on Ethereum gave birth to a generation of Ethereum clones. The hardcore Ethereum supporters may prefer to view them more as a short-term bandage for scalability problems or even as decoys for low-quality projects and scams. Nevertheless, a significant portion of users has signaled their preference for scalability and low transaction fees over decentralization and stronger security assumptions. The words “security assumptions” are blatantly thrown in any conversations on scalability and decentralization. But what do they actually mean from the users’ perspective? In the end, it will be their decisions that will direct the entire market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*BT3TXbOaY9TNUKuK9XbuLg.jpeg" /><figcaption><em>Source: the vast and ever-expanding internet</em></figcaption></figure><p>Security assumptions are the cornerstones of the blockchain ideology. At the same time, this field is extremely tricky and, in many ways, misunderstood. Many potential attack vectors often have opposite directions and are valued differently by various user groups. Some may prefer a soothing comfort of centralization, sacrificing a little bit of censorship resistance; others do not feel safe outside their cold wallets. Additionally, for the same user group, various types of transactions may imply different security requirements. The main front line of this opposition currently lies between the promised trustless scaling with sharding and roll-ups, and trusted sidechains with their ready-to-go solutions. Another interesting angle to look at security assumptions is through cross-chain communications/transfers, as in this case, the users would have to exchange the risks between various layer-1 platforms.</p><p>THORChain and ChainFlip can be viewed as yet another exciting experiments on how the users and developers value the basic security assumptions of native blockchains and cross-chain infrastructure. One of the core value propositions of such cross-chain liquidity platforms is that you do not have to wrap assets on Ethereum if you want to access DeFi. While one can argue that WBTC is not BTC, there are no effective price premiums on BTC, so the market clearly views them as the same asset. Of course, when talking about WBTC, there is still a centralized custody provider involved, which is against the fundamental nature of both Bitcoin and Decentralized Finance. But let us look more broadly at the spectrum of security assumptions.</p><p>Let’s try to put different combinations of protocols and intermediaries on the “Risk of Failure” scale. By Risk of Failure we understand all sorts of possible risk vectors, including malicious behavior of actors, government attacks, failure of the protocol, cryptographic failures, mechanism design failures, smart contract vulnerabilities, hacks, etc. The idea is not to strictly quantify these risks but rather to present a perceived scale, which can be different for various user groups. At the moment, it is impossible to compare the actual risks of PoW versus PoS systems, cryptographic systems vs. game-theoretic. A user can have their own heuristic behind this comparison — e.g., PoW is more battle-tested, cryptography does not need to account for strategic behaviors. But these heuristics cannot be treated as universal.</p><p>For the sake of argument, let’s say that Bitcoin holds its position on the lowest parts of the scale, centralized third parties occupy the region with the highest risk of failure, and every other protocol and application is in between. The exact position of each point on the scale is completely arbitrary and does not intend to hurt anyone’s feelings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x3bbCBJVpVRBNVp9vjFnhA.png" /></figure><p>Each time your assets touch any sort of financial party, either centralized or decentralized, you expose yourself to its underlying security risks. Moreover, the risks accrue over a period of time while your assets are sitting on their ledgers or balance sheets. On top of that, if you are interacting with several parties, like in the case with WBTC, you face both risks. Let’s say that the risk of holding BTC over a period of time T is P(B), holding an ERC20 token is P(E), and operating with BitGo is P(BG). Then the risk of holding WBTC over the period of time T would be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3xkXkIi1SFnAD15fNT7r8Q.png" /></figure><p>The aggregate risk would be the union of each component’s individual risks. You can see how this would be even worse than interacting with BitGo alone. The risks would be even higher if you choose to provide WBTC liquidity into any AMM pool, adding smart-contract failure risks to the mix.</p><p>When the user interacts momentarily with any smart contract, he takes on the risk of smart contract malfunction. In the case of Uniswap, this risk would exist only for a single block. Let’s assume that this momentary risk of interacting with a protocol like Uniswap equals p(U).</p><p>So, where does THORChain fit into this system, and what exactly is THORChain? When the user swaps ETH to BTC on THORChain, he exchanges Ethereum’s security risks to Bitcoin’s security risks. Additionally, he momentarily takes on THORChain’s security risks during the process of a swap — p(TC), which would span over several blocks as swaps in THORChain take longer to confirm.</p><p>Let’s also assume that we have a bridge with the same technical security assumptions as THORChain; we will call it THORBridge. It uses the same tech, is supported by the same community, and is actually the extension of THORChain’s functionality. The overall security risks of THORBridge would be slightly lower than THORChain as AMM functionality inherently creates more complex cryptoeconomic logic. If we isolate this discrepancy as P(AMM), then the risk of failure for THORChain would be p(TC) = p(TB + AMM).</p><p>The purpose of THORBridge is to receive BTC on a Bitcoin address controlled by THORChain’s validators and mint thorBTC on Ethereum and other blockchains. In this case, the atomic transaction of swapping ETH to thorBTC on Uniswap and immediately sending thorBTC to the Bitcoin network would be p(TB + U). The risks of holding ETH and then holding BTC remains the same. So in terms of the users’ perspective, if they trust Uniswap more than THORChain, it would be preferable for them to use THORBridge plus Uniswap instead of native swap THORChain. Additionally, we omit the topic of execution efficiency and trading fees. Still, one can argue that due to excess liquidity on Ethereum, the ETH/thorBTC pool on Uniswap can be much more liquid and capital-efficient than ETH/RUNE and BTC/RUNE pools on THORChain. We also prefer not to focus on the UX tradeoffs, as it is primarily a function of developers’ mindshare.</p><p>Let’s move one step further and introduce another entity — trust minimized Ethereum to Bitcoin bridge. By saying the bridge is trust minimized, we understand that it inherits its security assumptions from the bridged chains and does not create new significant risk vectors. A good example of trust minimized bridge is NEAR to Ethereum <a href="https://near.org/bridge/">Rainbow Bridge</a>:</p><p>“To trust the bridge, you need to trust (1) that Ethereum blocks are final after X confirmations … currently decided by the bridge for the app developer, but soon app developers will be able to determine X for themselves, (2) that at no time, 2/3 of the validators’ stake on NEAR blockchain is dishonest…, and (3) that it is not possible to exponentially increase the minimum gas price of Ethereum blocks by more than 2x with every block for more than 4 hours”.</p><p>At this moment, there is no trust minimized Ethereum to Bitcoin bridge, but we can expect such innovation to be available after the Taproot update. Additionally, we already have a resemblance of trust minimized Bitcoin to Ethereum bridge in KEEP. Due to our definition, we cannot call it truly trust minimized as it creates a new category of game-theoretic risk. Nevertheless, if the user perceives these risks as negligible (or at least less prominent than THORChain’s), the decision to use THORChain instead of a combination of Uniswap and the trust minimized bridge becomes even less convincing.</p><p>Given all the above rationale, we can deduce that THORChain is basically a generalized bridge with native AMM support. It can serve as a useful interlayer between two Non-Turing-Complete blockchains, like Monero and BTC, but it can struggle with adoption for smart-contract enabled blockchains. To the point of this interlayer, we can also expect that Ethereum, Polkadot, or another prominent layer-1 smart contract enabled blockchain itself can be a much more appropriate candidate for this task.</p><p>The topic of security assumptions for cross-chain infrastructure becomes even more relevant in the light of recent THORChain hacks. You can read the details on the hacks <a href="https://www.rekt.news/thorchain-rekt/">here</a> (hack 1) and <a href="https://www.rekt.news/thorchain-rekt2/">here</a> (hack 2). Almost all the cross-chain infrastructure creates additional attack vectors stacked on top of the existing security assumptions of native blockchains. The more complex and untested this infrastructure, the higher the risks that users will lose their funds. It is true that “<a href="https://twitter.com/AndreCronjeTech/status/1415909394643132417?s=20">innovation leads to exploitation.</a>” It is also true that the <a href="https://twitter.com/defixbt/status/1418338501255335937">code that controls nine figures should not be rushed</a>. And users operating with such pieces of infrastructure should be mindful of their implicit risks. We believe that such complex endeavors should come with an extra level of scrutiny. The fewer moving parts and real money are affected by an untested implementation, the better. The game of blockchain infrastructure development is in many ways the game of trust, which is quite hard to earn and very easy to lose. We hope that THORChain would be able to get out of this challenging situation even stronger.</p><p>Cross-chain DeFi is just making its first moves. Creating reliable ways for blockchains to transfer value will inevitably come with new risks, vulnerabilities, and exploits. The exact role of THORChain and its alternatives in the cross-chain DeFi space is yet to be determined. But we believe that it is crucial to examine such implementation not only on their face value but also on the plane of underlying core principles.</p><h3>Network Value Flow</h3><p>Instead of searching for the fair fundamental value of RUNE, we will be evaluating its Value Accrual mechanism and highlighting the key assumptions which affect this mechanism and the fair token price. The goal of the exercise is to deduce the required average annual growth rate in the projected period based on selected assumptions and the specified Value Flow model. We are not completely confident that the outlined mechanism will always work as described as THORChain is still in its experimental stage. Many things can still go wrong or significantly change the way token value is accrued in the protocol’s design. Therefore, the results of this exercise should not be considered price targets or investment advice but instead should be used to better understand the platform and its underlying mechanics.</p><p>For our valuation, we will be using the volume and liquidity data seen on THORChain before the vulnerabilities were exploited and the network was halted as we are sure that the platform will quickly return to its original performance figures upon emergence from maintenance. We base this assumption on the high network volume on July 15, 2021, after emergence from the first vulnerability maintenance.</p><p>Evaluating THORChain and finding the fair value of RUNE is relatively straightforward. While there are way too many unknowns, we can combine comparable project analysis and our own assumptions to build out a value accrual model based on HASH CIB’s <a href="https://medium.com/hash-cib/the-next-step-in-cryptoasset-valuation-34bade0386de">Discounted Value Flow</a> methodology. Ready for the inevitable critique of our assumptions, we propose a derivation of the annual network growth needed to justify the current RUNE price of $7 derived by solving the Discounted Value Flow model in reverse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*iqnvsGNN62Eloi7zPsklMw.png" /><figcaption><em>Source: HASH CIB valuation model</em></figcaption></figure><p>We based our assumptions on the information supplied by the team, data found on THORChain block explorers, and generally assumed values in the industry (discount rate). Annual network growth (after mainnet launch) is a number we arrived at by reverse solving the model using a price estimate of RUNE at $7. Effectively, our model shows that a very realistic 31% annual network growth is necessary to arrive at the current value of RUNE. As a sidenote, Uniswap’s volume grew 15,000% in 2020.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T5Er5OwP_CzabrNHv17ttw.png" /><figcaption><em>Source: HASH CIB valuation model</em></figcaption></figure><p>First, we project the project’s transaction volume and Total Value Locked (TVL) for ten years into the future. Because of the underlying assumption that the amount of rune locked in liquidity and bonding (TVL) must be 3x the amount of native assets in the liquidity pools, we can calculate the total minimum demand for RUNE in dollars for Liquidity and Bonded capital. Here we assume that the ratio of volume to TVL remains constant over ten years. Our analysis of comparable projects demonstrates that THORChain’s Volume / TVL ratio is slightly higher than that of other Decentralized Exchanges. We decided to not adjust for this as THORChain has a unique cryptoeconomic design where all traded pairs are pooled against RUNE. For our analysis of comparable projects, we removed Uniswap V3 as an outlier (its Volume / TVL was 170.3) because of the capital-effective design of liquidity in the DEX and its early adoption stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*phpnomRqQNWTwY0nGIvxtQ.png" /><figcaption><em>Source: DeBank, THORChain, THORChain Medium, CoinGecko (28 June 2021)</em></figcaption></figure><p>For supply (tokens in circulation), we compiled data from CoinGecko, THORChain’s monthly treasury reports on Medium, its Binance listing proposal from June 2019, and its blockchain explorers. The most noteworthy points are the unlock of 80 million tokens for seed investors and the team at the release of their mainnet and the calculation of the liquidity emission over ten years. In inquiring about the progress and the time to mainnet, the team’s answer was “months,” without any clarification. Subsequently, we used an assumption of six months for our model. We assumed no refilling of the reserve from network fees for liquidity emission due to their insignificance on the grand scale and for simplicity of the model. By adding rewards in circulation, seed and team tokens in circulation, and base circulation (tokens already in circulation), we arrive at the total RUNE in circulation for each year after the launch of the mainnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1lVsfegLkejnwLVnKKfaJQ.png" /><figcaption><em>Source: HASH CIB valuation model</em></figcaption></figure><p>After arriving at the token demand and supply, we can calculate the implied token price by dividing one by the other. This allows us to calculate the minimum price of the RUNE token for that year to satisfy liquidity in the protocol. After accounting for RUNE bonded in standby nodes (50% of RUNE bonded in active nodes) and assuming a 20% free float (RUNE not locked in bond or liquidity), we arrive at the final total demand for RUNE for any projected period. To arrive at the Additional Current Utility Value (ACUV), we find the difference between consecutive years. Like in the Discounted Cash Flow (DCF) model for valuation of equity, we calculate a Terminal Value and then discount the ACUV with a factor of 40%, which corresponds to the high risk of the investments suitable for crypto projects. By adding up the discounted ACUV, we arrive at the current value of the token of $7.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XpnhOG0Yybrr1qLQ0YkG2A.png" /><figcaption><em>Source: HASH CIB valuation model</em></figcaption></figure><p>While this is an unconventional approach, it has remained as the cutting edge in cryptocurrency valuation for the last two years. While THORChain is too early in its adoption cycle to value it properly, our model demonstrates that the growth assumption necessary to justify the current token price is attainable for the project. This valuation relies on the fact that the protocol’s cryptoeconomic assumptions of token demand and supply remain the same throughout the projected period. You can read more about our valuation approach on our <a href="https://medium.com/hash-cib/the-next-step-in-cryptoasset-valuation-34bade0386de">Medium</a> and see our complete valuation model for THORChain <a href="https://docs.google.com/spreadsheets/d/1wCDCQqREbafBsLVe1TuliMPJN-25Qj1fvjXNbE6rPfU/edit?usp=sharing">here</a>.</p><h3>Disclosures</h3><p><em>This article relates to instruments the access to which may be restricted in certain jurisdictions. If this article is viewed by a person who is not considered to be an eligible investor under applicable local laws in the respective jurisdiction or is obtained in a jurisdiction where dissemination of this article would be unlawful, this person should not review it and should disregard it. This report may be used as general information only and is based on current information that HASH CIB considers reliable, but HASH CIB does not represent it as accurate or complete, and it should not be relied on as such. Neither the information nor any opinion expressed constitutes a recommendation, an offer, or an invitation to make an offer, to buy or sell any securities or other instruments. This article does not constitute investment advice. HASH CIB accepts no liability whatsoever for any direct or indirect losses, damage, or other consequences of any kind that may arise out of the partial or full usage of this article, and investors are invited to obtain their own financial advice. HASH CIB is not licensed to carry out any banking or broker services or similar activities anywhere in the world, is not a regulated entity in any jurisdiction, and does not hold any licenses or other permits from any regulatory bodies of any jurisdiction. This article shall not be considered as advertising the instruments mentioned herein. HASH CIB, its shareholders, affiliates, and associates may hold positions in the instruments covered by this article or perform services to the issuers thereof.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbd68b78c3f6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hash-cib/bridging-the-waters-bbd68b78c3f6">Bridging the Waters</a> was originally published in <a href="https://medium.com/hash-cib">HASH CIB</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>