{"id":38015032,"date":"2021-06-27T06:30:25","date_gmt":"2021-06-27T06:30:25","guid":{"rendered":"https:\/\/stockviz.biz\/index.php\/2021\/06\/27\/governance-decentralized\/"},"modified":"2021-09-13T19:27:16","modified_gmt":"2021-09-13T13:57:16","slug":"governance-decentralized","status":"publish","type":"post","link":"https:\/\/stockviz.biz\/index.php\/2021\/06\/27\/governance-decentralized\/","title":{"rendered":"Governance, Decentralized"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Code is law.<\/h2>\n\n\n\n<p>Define <em>Governance<\/em>: the act or process of&nbsp;governing&nbsp;or overseeing the control and direction of something (such as a country or an organization).<\/p>\n\n\n\n<p>In this article, I will focus on whether any organization can have decentralized governance, and what does that even mean? And how is this related to cryptocurrencies. Let\u2019s start with a very basic organization, and see whether it can be governed in a decentralized way. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is an organization anyway?<\/h3>\n\n\n\n<p>Say some people want to pool their money and use it for charity. We have ourselves a rudimentary organization. During the organization\u2019s inception, the founders make some bylaws &#8211; for example: for any charitable donation to happen, say 2\/3rd of the remaining capital in the pool has to approve it. These bylaws are written down formally in a \u201chuman language\u201d (the language being a &#8220;human language&#8221; is important). The organization will register itself with the government of that geographical area (let\u2019s say, a country). In case disputes arise in the future, the courts of that country will interpret the bylaws of the organization, apply the relevant common laws of that country, and with the threat of force, ask the members of the organization to abide by the court\u2019s judgment. We kind of get how this works. <\/p>\n\n\n\n<p>I will call this \u201ccentralized governance\u201d, because the dispute resolution is adjudicated by a centralized authority. In an ideal world, this centralized authority is fairly appointed by representatives of the people who were fairly elected by the people to carry out such appointments. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Enter Smart Contracts<\/h3>\n\n\n\n<p>If the bylaws were precisely written down in an unambiguous computer language, and deployed on a distributed computer that could not be stopped, or taken over by any single authority &#8211; we have a decentralized organization. It\u2019s governance is encoded in the program that was deployed on the distributed computer. Ideally, once deployed, the program cannot be changed, and can be arbitrarily run by anyone forever. Who are the members of this organization? Let\u2019s say the program has a function that accepts money as input, and gives out an equivalent valued token &#8211; anyone who makes such a function call is a member of this organization, as they have a stake in the program. Do disputes arise in such an organization? No. To see why the answer is \u201cno\u201d, we have to understand that this system adheres to the maxim: \u201cCode is Law\u201d. The program does exactly what it was programmed to do &#8211; there is no randomness or discretion or uncertainty in the execution. This faithful execution of the program obsoletes the idea of dispute resolution.<\/p>\n\n\n\n<p>Ethereum smart contracts are such programs. They are deployed and run on Ethereum, which is a distributed network of computers that ideally cannot be censored or stopped. Ethereum has a richer programming language, along with the notion of a smart contract having monetary deposits, and other arbitrary data. Using this setup, one can write a smart contract that represents the charitable organization that we saw earlier. In fact, back in 2016, when Ethereum was still in its infancy, exactly such an organization was deployed as a smart contract on it. It was called The DAO, or the decentralized autonomous organization. It could accept funds from anyone, and with token holders voting for projects, would fund these projects from the collective pool of funds. Venture capitalists thought that the DAO would disrupt the VC industry itself, and added their own funds into the pool. At its peak, the DAO had 14% of all of ETH pooled inside it (ETH is the native currency of the Ethereum system). I didn\u2019t read the code of the DAO, and am not sure how a project got actual funding &#8211; was some ETH moved to the recipient\u2019s address? How would the DAO verify that the recipient actually produced something of value, if that artifact was not native to the blockchain itself? In the cryptocurrency space, it\u2019s important to ask these questions &#8211; as the answers are not obvious, and often times hide red flags that indicate possible scams.<\/p>\n\n\n\n<p>But as it turned out, this DAO program itself had a software bug, and that allowed a clever hacker to drain the uninvested funds into their own control. To \u201cfix\u201d this \u201chack\u201d, people who had enough social clout in the Ethereum ecosystem managed to undo history, and start an alternate timeline where this hack never happened. <\/p>\n\n\n\n<p>What?!?!<\/p>\n\n\n\n<p>How does one undo history and make alternate timelines?<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">It\u2019s the settlement assurances, stupid<a class=\"footnote-anchor\" id=\"footnote-anchor-1\" href=\"#footnote-1\">1<\/a><\/h3>\n\n\n\n<p>Let\u2019s start with an example. Let\u2019s say your credit card is stolen, and is used to buy strange things in strange lands. You call your credit card issuer and ask them to undo history, and start an alternate timeline where the theft never happened, and you have a clean slate of your own previous transactions and new transactions. Where did the thief\u2019s transactions go? Turns out that they were never \u201csettled\u201d. In the traditional finance world, very very few transactions are actually \u201cfully settled\u201d. Transactions between countries, or between large banks, or those that are brokered by central banks are considered settled for good, and are truly irreversible. The rest of the world\u2019s transactions can be reversed, if the right people are convinced. <\/p>\n\n\n\n<p>In Ethereum, where code is supposed to be law &#8211; alternate timelines should not have been possible. The hacker took out the pooled funds from the DAO because the smart contract allowed that to happen. That\u2019s the bylaws of the contract, and the hacker is playing by the rules. There shouldn\u2019t be a discretionary voice that says \u201cBut that\u2019s not the spirit of the law\u201d. Smart contracts are only supposed to respect the word of the law, and not the spirit of the law. Ethereum, in its early days at least, believed that the spirit of the law mattered more than the word of the law, and allowed the DAO hack to be \u201cbailed out\u201d.<\/p>\n\n\n\n<p>Ethereum is just one such \u201cnetwork computer\u201d (blockchain, to keep up with the times) that runs such code-is-law smart contracts. There are other blockchains that claim to do the same, and have varying degrees of centralization that allows the powers-that-be to \u201cbail out\u201d certain contracts if shit his the fan. On the other hand, Bitcoin doesn\u2019t even allow such powerful smart contracts, and the rudimentary smart contracts that it does allow, have never been reversed because some people lost their money. I think it\u2019s an important distinction that makes Bitcoin the most (if not the only) credible blockchain in existence, but that\u2019s just me.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Governance, through code<\/h3>\n\n\n\n<p>Coming back to Ethereum smart contracts which act as decentralized autonomous organizations, how can governance rules be changed if all token holders agree to it? We now get into some of the more sophisticated governance models for smart contracts, which can all be coded into the initial smart contract itself. Here\u2019s one popular model: <\/p>\n\n\n\n<p>In our original charity smart contract, we had the initial bylaw that 2\/3rds of the total pool had to apply every new donation. Let\u2019s say we want to change this rule to have 3\/4 instead of 2\/3. While writing the initial smart contract, this particular constant (2\/3) is delegated to a different smart contract that is deployed first, and the main smart contract calls this other smart contract to perform it\u2019s actions. In software programming, this is either called \u201cdelegation\u201d or \u201cforwarding\u201d or \u201ca pimpl &#8211; pointer to an implementation\u201d. The difference between a classic software program that does this, vs a smart contract that does the same thing &#8211; is that in a smart contract with decentralized governance, the change in implementation of a functionality has to be voted by token holders. This is how it looks: <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><p>The initial smart contract is written in such a way that the following steps are supported.<\/p><\/li><li><p>Someone (doesn\u2019t matter who) codes a new piece of  functionality and deploys it on the blockchain. For now, this is dead code, as no one is executing it. But everyone can see what it does.<\/p><\/li><li><p>Someone (again, doesn\u2019t matter who) makes a proposal in the original contract that they would want to call a vote for this new functionality from step (2) to replace the equivalent step in the original code.<\/p><\/li><li><p>There is a timeline for token holders of the smart contract to vote for this proposal. Votes are tallied. The result is known.<\/p><\/li><li><p>If the governance change is approved, there is an additional time window before it comes into effect. Token holders who are unhappy that this change was made can withdraw their capital from the pool by returning or burning the tokens.<\/p><\/li><li><p>The governance change is affected by changing the smart contract implementation of this functionality from the original to the new. <\/p><\/li><\/ol>\n\n\n\n<p>Many smart contracts on Ethereum have the so called \u201cgovernance token\u201d that allows token holders to change the rules of the smart contract if enough such token holders vote for it. <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><p>Uniswap, the popular decentralized exchange on Ethereum, has its own governance token UNI, which allows UNI holders to vote for governance changes like increasing or decreasing the fee taken by the protocol per exchange trade. <\/p><\/li><li><p>Compound, a smart contract for credit issuance on Ethereum, has its own governance token COMP, which allows COMP holders to affect governance changes &#8211; like how they recently voted to change their price oracle. <\/p><\/li><li><p>MakerDAO, the smart contract behind the stable coin DAI, has its own governance token MKR, which allows MKR holders to change the parameters of the DAI stablecoin, and how it maintains its 1:1 peg against the USD.<\/p><\/li><\/ol>\n\n\n\n<p>In my na\u00efve unqualified opinion, these governance tokens can sometimes pass the Howey test, and could qualify as securities under some regulatory regime.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What\u2019s in it for me?<\/h3>\n\n\n\n<p>Many tokens\/coins are available to buy on many cryptocurrency exchanges. <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><p>Some are native coins of their own blockchains &#8211; like BTC\/ETH. Many of these native coins are centralized, issued to investors first, and dumped on the general public later.<\/p><\/li><li><p>Some are ERC-20 tokens on the Ethereum blockchain. They represent governance rights on protocols, and thereby generate cash flow. <\/p><\/li><li><p>Some are tokens on other blockchains. Most blockchains\u2019 native currencies themselves are worth nothing. Tokens that are launched on these blockchains are even trickier.<\/p><\/li><li><p>Some are even more complex tokens issued by smart contracts that govern other smart contracts. <\/p><\/li><li><p>Some tokens are blatantly pointless, and are valuable just as collectibles: remember NFTs?<\/p><\/li><\/ol>\n\n\n\n<p>Some tokens have a point, but are still worth nothing.<\/p>\n\n\n\n<p>Some tokens have a point, and might be worth something.<\/p>\n\n\n\n<p>To keep life simple, one can just buy Bitcoin. If that\u2019s too conservative (it\u2019s not), maybe add ETH to the mix (don\u2019t).<\/p>\n\n\n\n<p><strong>Enjoy the conversation<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Freefloat talk on DAO&#039;s: Shyam, Kishan, and Tejaswi\" width=\"1020\" height=\"574\" src=\"https:\/\/www.youtube.com\/embed\/tFLtRfO1BxY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>Previously, on our crypto channel:<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/stockviz.biz\/index.php\/2021\/01\/24\/define-bitcoin\/\">define: bitcoin<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/stockviz.biz\/index.php\/2021\/01\/31\/define-ethereum\/\">define: ethereum<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/stockviz.biz\/index.php\/2021\/02\/28\/bitcoin-is-forever\/\">Bitcoin is Forever<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/stockviz.biz\/index.php\/2021\/03\/28\/on-nfts\/\">On NFT&#8217;s<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/stockviz.biz\/index.php\/2021\/05\/09\/so-doge\/\">So Doge<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/firstratedata.com\/b\/29\/futures-most-active\">DeFi for the rest of us<\/a><\/p>\n\n\n<div class=\"footnote\" id=\"footnote-1\"><a href=\"#footnote-anchor-1\" class=\"footnote-number\" contenteditable=\"false\">1<\/a><p><\/p>\n<div class=\"footnote-content\">\n<p>Read more here: https:\/\/medium.com\/@nic__carter\/its-the-settlement-assurances-stupid-5dcd1c3f4e41<\/p>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Code is law. Define Governance: the act or process of&nbsp;governing&nbsp;or overseeing the control and direction of something (such as a country or an organization). In this article, I will focus on whether any organization can have decentralized governance, and what does that even mean? And how is this related to cryptocurrencies. Let\u2019s start with a &hellip; <\/p>\n","protected":false},"author":43,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4053,9],"tags":[4073],"class_list":["post-38015032","post","type-post","status-publish","format-standard","hentry","category-crypto","category-your-money","tag-dao","entry"],"_links":{"self":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/38015032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/comments?post=38015032"}],"version-history":[{"count":0,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/38015032\/revisions"}],"wp:attachment":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/media?parent=38015032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/categories?post=38015032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/tags?post=38015032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}