<?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 Vitor Marthendal on Medium]]></title>
        <description><![CDATA[Stories by Vitor Marthendal on Medium]]></description>
        <link>https://medium.com/@vitormarthendal?source=rss-e2b512f4a976------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fdlceGwvQKYoSfcBW81JOQ.jpeg</url>
            <title>Stories by Vitor Marthendal on Medium</title>
            <link>https://medium.com/@vitormarthendal?source=rss-e2b512f4a976------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 15:32:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vitormarthendal/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[The Magic Behind the Commons Simulator — Part 3: The Closest Look]]></title>
            <link>https://medium.com/commonsstack/the-magic-behind-the-commons-simulator-part-3-the-closest-look-a19d05b561a1?source=rss-e2b512f4a976------2</link>
            <guid isPermaLink="false">https://medium.com/p/a19d05b561a1</guid>
            <category><![CDATA[radicalxchange]]></category>
            <category><![CDATA[commons-stack]]></category>
            <category><![CDATA[games]]></category>
            <category><![CDATA[cadcad]]></category>
            <category><![CDATA[simulation]]></category>
            <dc:creator><![CDATA[Vitor Marthendal]]></dc:creator>
            <pubDate>Thu, 10 Jun 2021 15:02:47 GMT</pubDate>
            <atom:updated>2021-06-10T15:02:47.143Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Magic Behind the Commons Simulator — Part 3: The Closest Look</h3><p><em>This is Part 3 of 3 our “Deep Dive” into the inner workings of the </em><a href="https://sim.commonsstack.org/"><em>Commons Simulator</em></a><em> where we get into the details of simulation mechanisms. Much credit to </em><a href="https://medium.com/@karmaticacid"><em>Lauren Luz</em></a><em> for co-authoring this piece with much fun, very deep thought and so amazing writing skills.</em></p><p>At last, the moment we’ve all been waiting for! This is the third and final part of our series of blog posts unraveling the mystery of the cadCAD backend that goes into powering the Commons Simulator’s artistic, gamified, sci-fi and fun frontend. The Commons Simulator is set in a dystopian future where life as we know it on Earth has been destroyed. You, as the game hero, have the opportunity to travel back-in-time with cadCAD to help the <a href="https://www.radicalxchange.org/">RadicalxChange</a> community design a regenerative Commons that has the potential to change the course of society and save the world from certain doom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/0*g96G7yQCo0WNzW0e" /><figcaption>Saving the Future with the Commons Simulator</figcaption></figure><p>In the previous posts, we discussed the game flow, the setup, the states of variables as they change throughout the simulation, and simulation initialization. This is the necessary foundation required by the system before the real magic begins. If you haven’t yet already, we recommend reading <a href="https://medium.com/commonsstack/the-magic-behind-the-commons-simulator-part-1-game-flow-8fa2bed8437b">Part 1</a> and <a href="https://medium.com/commonsstack/the-magic-behind-the-commons-simulator-part-2-initialization-93da1b8b3abe">Part 2</a> of the series in order to truly enjoy the feeling of your mind being blown as the pieces come together with the description of simulation mechanisms below 👇</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*u_Z5IIPxPdqG-mMx" /></figure><p>The mechanisms we get into in this piece are really where things get interesting. These are the operations that are performed iteratively and in sequence, changing and updating the states of each of the key variables. In our model, a sequence of 14 mechanisms is executed sequentially during every timestep (“day”) for a total simulated time period of 3 years (or 1095 “days”). When we finally reach the end of the simulation period, 15,330 (14 x 1095) iterations on the states and mechanisms of the model have been performed! This is an amazing demonstration of how cadCAD is used as means for complex system modeling 🤯</p><p>So let’s get to it! Finally, for “the Closest Look” at the Magic Behind the Commons Simulator, we proudly present: <strong>The Mechanisms</strong>.</p><h3><strong>Simulation Mechanisms</strong></h3><p>During each timestep, the following mechanisms are performed in sequence. The output data from each timestep is then passed to the following timestep (as the new input data) and the mechanisms are performed again. The same mechanisms are performed each day, but the data changes throughout the simulation as it gets passed from one timestep to the next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/0*CeGYyWwlcxRCrrOM" /></figure><h4>1. Generate new participants</h4><p>This mechanism mimics the effect of new participants entering the Commons, whether it be in support of the vision and mission, or merely in pursuit of profit from speculated token price increase. New participants can join the Commons at the start of each new day. <strong>The likelihood of people coming in depends on the general sentiment</strong> (excitement or contentment of the community) and the <strong>expectation/speculation of the token price increase</strong>.</p><p>In the early stages of the Commons, a portion of the Hatchers’ tokens are locked (i.e. cannot be sold) for a period of time called the “lockup period”. As you will soon learn, the lockup period makes the Commons initially more attractive to speculators and therefore increases the likelihood of more participants entering into the Commons in those particular days.</p><p>The figure below is a visual representation of the ratio of tokens locked as a function of time in days. During the first 55 days of the lockup period, all of the Hatchers’ tokens are locked. Between 55 and 120 days, the Hatchers’ tokens are unlocked relatively quickly. At 120 days, 80% of the initial locked tokens are unlocked, and after this point the rate of unlocking tapers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AP8NmlWvoWoQRass" /><figcaption>Percentage of unlocked tokens over time</figcaption></figure><p>During the early stages, more people are likely to join the Commons because they know the price will not drop below a threshold due to the lockup period. The figure below visually represents the token price floor, i.e. the lowest price possible if all the unlocked tokens are burned. Before day 55, the price floor remains at a value of $0.16 since the Hatchers have their tokens fully locked. From day 55 to 120, the token price floor drops from $0.16 to $0.07 when 80% of the Hatchers’ tokens are unlocked. When all the Hatchers’ tokens are unlocked, the token price floor goes to zero because it is theoretically possible for all of the tokens to be burned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2x5MqNOlEGrZnuGU" /><figcaption>Minimum possible price over time (as tokens get unlocked)</figcaption></figure><p>As more of the Hatchers’ tokens become unlocked, speculators are more likely to exit the Commons to take advantage of high token price and high profit potential and to avoid losses incurred as a result of Hatchers being able to sell their tokens and affect token price. However, the likelihood of larger numbers of people leaving the Commons is in fact more dependent on the sentiment: A high sentiment after the lockup period indicates that people believe in the Commons and want to stay despite profit potential. A low sentiment makes it more likely that people will sell their tokens and exit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/0*apdR3MvHF8dikaFy" /></figure><p>After determining how many new participants enter the Commons, the simulation defines how much each participant will invest to mint new tokens. According to the bonding curve, when new tokens are minted the price of the token increases, so <strong>the influx of new participants raises the token price</strong>. The amount of increase depends on how many tokens are minted, the previous price, and the bonding curve parameters.</p><h4>2. Generate new proposals</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*JjTkGwuk0Q_jCSJi" /></figure><p>This mechanism represents the action of new proposals being submitted by participants. Every participant, regardless of when they enter the Commons, has the opportunity to generate new proposals. In this mechanism, new proposals are created by randomly assigned participants. The decision of a participant to create or not create a proposal depends on the following:</p><ul><li>How much funding is already requested by other proposals: If there are fewer proposals requesting funds, there will be a higher probability that more people will create new proposals.</li><li>The median affinity of the Commons: Each participant has an assigned numerical affinity for each proposal. The affinity represents how much an individual participant likes a particular proposal. The median affinity is the median for all proposals for all participants in the Commons. A high medium affinity increases the likelihood that an individual participant will create a proposal.</li><li>The Max Spending (Funding Pool)<strong>: </strong>This is the maximum percentage of remaining funds in the Funding Pool that can be used for a single proposal. This is a system parameter and one of the inputs that the player must choose during the game.</li></ul><p>After a proposal is created, it is added to the Commons and participants are assigned an affinity for the new proposal. The distribution is made so that many participants will have a low affinity for a specific proposal and only a few will have a high affinity for it. <strong>This basically mimics the real-life scenario in which a few people feel very excited about a new project while most people are somewhat indifferent.</strong></p><h4>3. Generate new funding via speculation</h4><p>In this mechanism, additional funds are generated for the Common’s Funding Pool as a result of speculation and the system parameter, <strong>Exit Tribute</strong>. The Commons uses an <a href="https://medium.com/commonsstack/deep-dive-augmented-bonding-curves-b5ca4fad4436">augmented bonding curve</a>, meaning that the token price moves up and down with a deterministic relationship to the token supply. Speculators can enter and exit the Commons purely to buy and sell tokens for profit, without any intention to create or support proposals.</p><p>When participants decide to sell by burning tokens, a percentage (the Exit Tribute) of the funds released go to the Funding Pool. This is actually the only way that the Commons can generate funds for the Funding Pool after the Hatch, therefore some amount of speculation is actually advantageous. <strong>A smaller Exit Tribute makes the Commons more attractive to speculators and increases the volume of trade.</strong></p><h4>4. Update proposals’ age and conviction thresholds</h4><p>This mechanism updates the age (in days) of each proposal on each timestep. According to conviction voting, the collective preference for a proposal needs to reach a set threshold in order for the proposal to become active. The conviction threshold depends on two values: the current size of the Funding Pool at the given moment, and the amount requested by the proposal. The conviction voting threshold is higher if a proposal is requesting a large <em>percentage</em> of the amount of funds in the Funding Pool at that time.</p><p>In the Commons Simulator, the player must set the “Max Spending %” parameter as one of the inputs collected. This is the maximum percentage of funds in the Funding Pool that can be spent on a single proposal at one time. If the percent of the total in the Funding Pool required by the proposal is the Max Spending amount, <strong>then all of the voting tokens would have to be staked behind that proposal for an infinite amount of time for the proposal to reach the conviction needed to be funded. </strong>Obviously this is only theoretically possible and proposals requesting above the Max Spending will not pass until the quantity of funds in Funding Pool increases to the point where Max Spending is greater than the proportion required by the proposal.</p><h4>5. Compare proposals’ conviction and thresholds</h4><p>After defining a specific conviction threshold for each proposal, this mechanism calculates each proposal’s conviction according to the <a href="https://forum.tecommons.org/t/conviction-voting-tl-dr/308">conviction voting design</a>. Next, it compares each proposal’s conviction value to the conviction threshold for that proposal. If the conviction on some proposals is smaller than its threshold, it is simply held as a candidate waiting to be approved in the future. If the proposal’s conviction is higher than its threshold, it changes from candidate to active.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/0*u4cbnbcTrbi1HE7r" /></figure><p>When a proposal passes from candidate to active, it receives the requested funds and those funds are deducted from the Funding Pool.</p><h4>6. <strong>Update participants’ sentiment when a proposal becomes active</strong></h4><p>After a proposal becomes active and receives funds, all the participants that have an affinity for the proposal gain a sentiment boost because the proposal they like will be able to be executed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/0*g-HVhLQQScjVbsiq" /></figure><h4>7. Proposals fail or are completed</h4><p>At this point, all the proposals that are active have received the requested funds to achieve their proposed goals. This mechanism calculates which proposal completes its goal and which fails. It is out of the scope of this simulation to predict the inner complexities that define whether a specific proposal succeeds or not. Instead, <strong>the simulation uses a probabilistic distribution for failure and success using the heuristic that bigger projects (those with more funds requested) are more complex and thus have a smaller rate of success than smaller proposals.</strong></p><h4>8. <strong>Update participants’ sentiment when a proposal fails or is completed</strong></h4><p>This mechanism is similar to mechanism #6<strong> where we update the participants’ sentiments based on their affinities for proposals that become active. </strong>The main difference here is that the sentiment of each participant is modified based on whether or not an active proposal succeeds in accomplishing its mission. Participants that have an affinity for failed proposals experience a decrease in sentiment. The participants with an affinity for successful proposals experience an increase in sentiment.</p><h4>9. <strong>Participants vote on proposals according to affinity</strong></h4><p>This mechanism simulates the voting process in which participants vote on proposals by staking their tokens according to their affinity for each proposal. First, each participant chooses which proposals to vote on based on their affinity for each proposal. After this process, each participant has an associated list of proposals they wish to support, regardless of the number of tokens they will stake. Second, the amount of tokens that will be staked on each proposal is calculated based on the participant’s affinity for that proposal and the amount of tokens held by the participant. Both locked and not-locked tokens can be staked on proposals.</p><h4>10. Calculate proposals’ conviction</h4><p>This mechanism performs the magic of conviction voting, calculating each proposal’s conviction every timestep based on the tokens staked by the participants in the previous mechanism.</p><h4>11. Participant decides to buy tokens</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*_fjg95e1Seh3H3IM" /></figure><p>This mechanism simulates the act of buying tokens, whether as a result of speculation or trust in the Commons. Every participant can “buy” tokens in the Commons at any timestep. The simulator uses an augmented bonding curve, so every time a participant buys a token it is minted and the token price increases according to the bonding curve. Participants do not pay fees for minting tokens, but do have to deal with <a href="https://medium.com/coinmonks/token-bonding-curves-the-movie-4f97c8c2b7b6">slippage</a>.</p><p>On every timestep, the participants must decide whether or not to mint more tokens. The amount of tokens minted depends on the participant’s individual sentiment towards the Commons and some constant value engagement multipliers. This means that if the general sentiment of the Commons is low (for example, if there are few proposals getting funding and proposals are also failing to meet their goals) people will not trust the Commons and will be less willing to put in more funds. In the same way, if the sentiment is decaying, few people are buying into the Commons, and few tokens are being minted, speculators will expect the token price to be bearish and will not have much interest in minting new tokens for profit gain.</p><h4>12. Participant decides to sell tokens</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*85xwlK0yBpHl6H0I" /></figure><p>This mechanism is similar to #11 but in this case, the participants have the chance to “sell” their tokens. Again, due to the bonding curve, the tokens are not actually sold to anyone, but rather are burned and some part of the funds withdrawn from the RxC Reserve are given back to the participant. In this mechanism, the Exit Tribute plays a major role as it is the percentage of the funds withdrawn from the Reserve Pool, “taxed” from the participant, and added to the Funding Pool to fund future proposals.</p><p>In this mechanism, each participant must decide whether or not to sell their tokens. This decision is impacted mostly by the general sentiment towards the Commons. If the sentiment is low, it indicates that participants do not believe in the Commons and their projects to support the RadicalxChange movement. The speculators observing a Commons with a low sentiment will expect the token price to be bearish and will begin selling their tokens before the token price drops even more. If the sentiment is high, the participants have pressure to hold their tokens and contribute to the Commons by staking them on the proposals they believe in. Speculators would expect the token price to be bullish as more people enter the Commons and more tokens are minted, and would therefore expect to see profits as the token price increases.</p><h4>13. Participant decides if he or she wants to exit</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*H-F7DTPlHvbyX3vH" /></figure><p>In addition to burning part of their tokens through sale, each participant can choose to burn all of his or her tokens and exit the Commons. In this mechanism, we simulate the extreme case in which a participant does not want to participate anymore.</p><p>In every timestep, each participant has a “chance” to exit the Commons. For that to occur, the individual sentiment of a participant must be lower than a predefined threshold, e.g., 50%. If the participant’s sentiment is lower than the sentiment threshold, he or she has a chance to leave the Commons. This chance is defined probabilistically based on the sentiment and other predefined engagement rates. Two participants with sentiments lower than the threshold, e.g. 15% and 40%, have different chances of leaving the Commons and the participant with the lower sentiment is more likely to leave.</p><p>When a participant leaves the Commons all of his or her tokens are burned and the appropriate funds are returned to the participant (after the Exit Tribute is discounted and sent to the Funding Pool).</p><h4>14. <strong>Participants’ sentiment decays</strong></h4><p>This mechanism simply decreases every participant’s sentiment by a small value every timestep, representing the natural decaying of sentiment as time passes and the hype of the launch of the Common decays. This creates a need for new exciting things to happen in the Commons to keep the participants engaged.</p><p>An example of a situation with a large declining sentiment is a Commons with very few participants and very many proposals. In this scenario, no proposals can pass the conviction threshold and become active. Therefore, no projects can succeed, no progress can be made to advance RadicalxChange initiatives, and the overall sentiment of the Commons just decays.</p><h4><strong>Wow, you made it!</strong></h4><p>Thank you so much for reading to the end. We hope that this piece brought you a bit more insight into the inner workings of the Commons Simulator and (hopefully!) that this inspires you to go a little further down the rabbit hole of exploring <a href="https://www.cadcad.education/">cadCAD</a> as a tool for modeling complex systems.</p><p>The Commons Simulator aims to demonstrate the potential of simulation as a design tool for empowering communities to design their own economies. We wanted it to be beautiful, to be interactive, to be educational and to stimulate conversation around the topic of using technology to bring people together around initiatives that lead to a regenerative future.</p><p>So what are you waiting for? Show us what you learned by <a href="https://sim.commonsstack.org/">playing the game</a> and sharing your score! Or help us build the next level by supporting us with a 👉👉 <a href="https://giveth.io/project/the-commons-simulator/">donation on Giveth.io</a> 👈👈You could also <a href="https://t.me/CSDdev">join our team</a> or <a href="https://github.com/commons-stack/commons-simulator">check out our repo on GitHub</a> to get involved.</p><p>Don’t forget to join the <a href="https://commonsstack.org/apply">Trusted Seed</a> so you are eligible to participate in the real upcoming <a href="https://token-engineering-commons.gitbook.io/tec-handbook/hatch-101/welcome-hatchers">Hatch of the TE Commons</a>!</p><p><em>Thanks to Lauren Luz, Griff Green, Danielle Gennety, Santiago Gonzalez Toral, Merlin Egalite, and Marko Prljic for content, edits, and suggestions on this piece.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a19d05b561a1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/commonsstack/the-magic-behind-the-commons-simulator-part-3-the-closest-look-a19d05b561a1">The Magic Behind the Commons Simulator — Part 3: The Closest Look</a> was originally published in <a href="https://medium.com/commonsstack">Commons Stack</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Magic Behind the Commons Simulator — Part 2: Initialization]]></title>
            <link>https://medium.com/commonsstack/the-magic-behind-the-commons-simulator-part-2-initialization-93da1b8b3abe?source=rss-e2b512f4a976------2</link>
            <guid isPermaLink="false">https://medium.com/p/93da1b8b3abe</guid>
            <category><![CDATA[cadcad]]></category>
            <category><![CDATA[commons-stack]]></category>
            <category><![CDATA[radicalxchange]]></category>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[games]]></category>
            <dc:creator><![CDATA[Vitor Marthendal]]></dc:creator>
            <pubDate>Tue, 04 May 2021 19:12:37 GMT</pubDate>
            <atom:updated>2021-07-05T19:12:40.421Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>The Magic Behind the Commons Simulator — Part 2: Initialization</strong></h3><p><em>This is Part 2 of 3 of our “Deep Dive” into the inner workings of the </em><a href="https://sim.commonsstack.org/"><em>Commons Simulator</em></a><em> where we explain timesteps, states of key variables throughout the simulation, and simulation initialization. Much credit to </em><a href="https://medium.com/@karmaticacid"><em>Lauren Luz</em></a><em> for co-authoring this piece with much fun, very deep thought, and so amazing writing skills.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hUz508duP2QqLXZiqBf55Q.png" /><figcaption>Using cadCAD as a design tool for Regenerative Commons Economies</figcaption></figure><p>The Commons Simulator is a gamified computation tool powered by a cadCAD backend that blends art and simulation into a choose-your-own-adventure sci-fi storyline with possible dystopian or utopian endings. In the game, you travel back in time and use cadCAD as a tool to help a community design a regenerative Commons to advance the <a href="https://www.radicalxchange.org/">RadicalxChange</a> movement, thereby saving the world from total planetary and economic destruction. In this series, we explore the intricacies of the cadCAD backend that powers this fun, engaging and user-friendly frontend. If you haven’t yet already, we recommend reading <a href="https://medium.com/commonsstack/the-magic-behind-the-commons-simulator-part-1-game-flow-8fa2bed8437b">Part 1 of this series</a> to get the necessary primer for understanding the magic-in-words we get into below 👇</p><p>Ready?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*tQuaWQbrafsebxjJ" /></figure><h3><strong>Timesteps</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/0*scbyHF8Kq20ZkQft" /></figure><p>The Commons Simulator has a specific framework where the model behaviour is divided into a series of discrete slices of time called timesteps. Within a timestep, any set of mechanisms can be defined and performed. Each timestep uses the same sequence of mechanisms, and the output data from each timestep is used as the input data for the following timestep. A timestep can be set to represent any specific length of time; for us, it constitutes one day. The whole simulation lasts 1095 timesteps for a total of 3 years. A sequence of 13 mechanisms is executed for every timestep, i.e., day, meaning that <strong>the simulation result will be the outcome of 13*1095 = 14235 iterations on the state variables and mechanisms of the model!</strong></p><h3><strong>States</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*u67GenPoBLpQNddQ" /></figure><p>The cadCAD modeling framework is based on the states of key variables, which are affected by endogenous (internal) and exogenous (environmental) processes through the system mechanisms (to be discussed in Part 3). To give you a better idea, when we discuss “states” we are referring to the conditions of key variables at different snapshots in time. During the simulation, the series of mechanisms is run many times iteratively. In one instant in time you can consider the key variables — Proposals, Participants, Funding Pool, RxC Reserve, and Sentiment — and get an idea of the condition of the Commons at that moment. This represents the general state of the Commons, which is essentially a combination of the “states” of each of those key variables.</p><p>In the following sections, we define the system states in the Commons Simulator using stock-and-flow diagrams that explain which mechanisms affect the model states.</p><h4><strong>1. Network</strong></h4><p>The network is a <a href="https://en.wikipedia.org/wiki/Directed_graph">directed graph</a> data structure where each node is either a participant holding RxC tokens or a proposal requesting funding. Each participant node has an affinity for each proposal node, and this is represented by the edges between the nodes. This affinity defines how inclined a participant is to vote on a given proposal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/0*vISRHuQP2tALzPZx" /><figcaption>Participant-Proposal Social Network Source: <a href="http://tokengineer.com/design-rationale-behind-the-commons-stack-cadcad-refactor/">TokenEngineer</a></figcaption></figure><h4><strong>2. Proposals</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/0*IRYRRmf38n2VSb3x" /></figure><p>Each proposal has 4 possible states: candidate, active, completed and failed. When a proposal is created, it starts as a <em>“candidate”</em>, with the future-saving RadicalxChange project plan and the amount of funds requested defined. If the proposal gets enough voting support and is funded, it becomes <em>“active”</em>, receiving the requested funds and starting to work to advance RxC goals. If a proposal accomplishes its stated objective, its state changes to <em>“completed”</em><strong>. </strong>If the proposal does not achieve its goal, its state changes to <em>“failed”</em>. When a project either completes or fails, the participants with high affinity for that project will have a change in their overall Sentiment reflecting their reaction to the proposal’s final status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zA_heMokPQoRZql_" /><figcaption>Stock and Flow Diagram representing the four proposal states</figcaption></figure><h4><strong>3. Sentiment</strong></h4><p>Each participant has its own sentiment towards the Commons. The Average Commons Sentiment is measured by the mean sentiment of every participant. The initial Average Commons Sentiment is defined by the Hatch initialization, where each Hatcher is assigned a sentiment. After the Hatch phase, every new participant that enters the Commons is assigned a random sentiment, which affects the Average Commons Sentiment. The sentiment is positively affected when a proposal receives funds and becomes active, and when a proposal succeeds in completing its mission. Conversely, when a proposal fails (does not meet its goals) the Average Commons Sentiment goes down. Also, as we will explore later, there is a mechanism that introduces a small decline in sentiment (sentiment decay) over time due to a loss of interest in the Commons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n2A0JOyXNzqbnadp" /><figcaption>Stock and Flow Diagram representing the changes in sentiment due to corresponding mechanisms</figcaption></figure><h4><strong>4. Participants</strong></h4><p>There are two types of participants in the Commons. The <em>Hatchers</em> enter the Commons during the Hatch phase, bootstrapping the RadicalxChange Commons with funds. The amount of tokens a Hatchers receives are locked for a predefined period of time (lockup period). Thus, Hatchers can only exit the RadicalxChange Commons, (i.e., burn all of their tokens) after the lockup period when their tokens are unlocked<strong>. </strong>On the other hand, those participants that enter the Commons after the Hatch and add funds via the Augmented Bonding Curve (ABC) are called <em>Regular Participants</em>. Unlike the Hatchers, the Regular Participants’ tokens are not locked so they can burn and/or exit at the Commons at any time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1Wzofw36EvG3qC9k" /><figcaption>Stock and Flow Diagram representing the the journey of the Hatchers and the Regular Participants</figcaption></figure><h4><strong>5. Funding Pool</strong></h4><p>The Funding Pool funds the RadicalxChange Commons’ proposals. Funds flow into the pool during the Hatch phase when the Commons Tribute is applied, and when participants burn their tokens and pay an Exit Tribute. Funds flow out of the pool when a proposal passes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*veB4up1N0Bcfdijy" /><figcaption>Stock and Flow Diagram representing the flow of funds in the Funding Pool</figcaption></figure><h4><strong>6. Commons Reserve</strong></h4><p>The Commons Reserve uses xDAI to back the minted RxC token on the Augmented Bonding Curve. During the Hatch, the total amount invested by the Hatchers minus the Commons Tribute goes to the RxC Reserve to mint RxC tokens and define the initial token supply. After the Hatch period, every participant has the opportunity to mint new RxC tokens by adding xDAI to the Commons Reserve. If a participant wants to burn their tokens, the corresponding amount of xDAI will leave the RxC Reserve, an Exit Tribute will be deducted and sent to the Funding Pool, and the rest will go to the participant’s wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DmRoep4ye6agz3_9" /><figcaption>Stock and Flow Diagram representing the flow of funds in the RxC Reserve</figcaption></figure><p>As you can see, the mechanisms performed by cadCAD change the states of key variables throughout the simulation. When considered together, metrics taken from these states provide information about the overall success of the Commons and ultimately affect the final prediction of the future.</p><p>Each of these states have initial values at the beginning of the simulation. These initial states are defined by the player’s inputs (i.e. number of Hatchers, number of initial proposals, etc., as described in <a href="https://medium.com/commonsstack/the-magic-behind-the-commons-simulator-part-1-game-flow-8fa2bed8437b">Part 1</a>) and some constant values. In the next section we go through the setup that occurs at the start of simulation, defined as “Simulation Initialization”.</p><p><strong>You made it this far, keep on reading to learn more 😉</strong></p><h3><strong>Simulation Initialization</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/0*TS4jeE0HVsPc_AKH" /></figure><p>To set everything up at the beginning of the simulation, a series of initial functions — performed only once — are executed and the initial states are set. This is referred to as the “Simulation Initialization”. These functions are outlined below.</p><h4><strong>1. Hatch Initialization</strong></h4><p>In this stage, every Hatcher, defined by the player’s input “<em>Number of Hatchers”, </em>contributes a percentage of their funds to the Hatch, given by the player’s input <em>“Commons Tribute”</em>. This initial contribution has a random distribution.</p><h4><strong>2. Augmented Bonding Curve (ABC) Initialization</strong></h4><p>To set up the Augmented Bonding Curve, the simulator deducts the player input “<em>Commons Tribute” </em>from the preset Hatchers’ initial contribution and adds it to the Funding Pool. The remaining funds are added to the RxC Reserve to back the RxC token.</p><p>Next, a desired token price is defined and a specific token supply, determined by the amount of funds in the RxC reserve, is created to keep this price according to the ABC.</p><p>Finally, the input “<em>Exit tribute” (%) </em>is configured on the ABC so new investors that exit after the Hatch period are required to “donate” that percentage of their retrieved investment to the Funding Pool.</p><h4><strong>3. Network Initialization</strong></h4><p>To complete the network initialization, some Hatchers are randomly chosen to create proposals. Each proposal requests some amount of funds for its completion, and each Hatcher is attributed a random affinity for each proposal. The number of initial proposals is defined by the player’s input in level 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/0*mb_9y-4D8-Mc66mD" /><figcaption>Setting Up Initial Conditions of the Commons</figcaption></figure><p>The above initialization functions define Hatch phase: an event where Hatchers invest in the Commons, pay the Commons Tribute to fund future proposals, and have their tokens locked for a certain period. After the Hatch phase closes, iterative simulation with cadCAD begins (as we’ll get into in Part 3). During the following phase, the RadicalxChange Commons opens to new investors and the model will simulate new behaviors such as the effect of new members entering the Commons without having their tokens locked, the fluctuations causes by speculation, and more!</p><p>Nice job! You’re well on your way now to understanding the nitty-gritty inner workings of cadCAD magic as it is used to power the artistic and engaging <a href="https://sim.commonsstack.org/">Commons Simulator</a> gamified educational webcomic.</p><p>In this post you learned about the following:</p><ul><li>Timesteps</li><li>States of key variables</li><li>Simulation Initialization</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/0*0Ax05o39xImpVCo3" /></figure><p>In the <a href="https://medium.com/commonsstack/the-magic-behind-the-commons-simulator-part-3-the-closest-look-a19d05b561a1">third and final part of this series</a> we will zoom in on the mechanisms performed sequentially and repeatedly throughout the simulation, and how they affect the states of key variables and produce at last the final prediction of Commons success. Stay tuned!</p><p>Thanks for sticking with us! We hope you’ll join us next time for <a href="https://medium.com/commonsstack/the-magic-behind-the-commons-simulator-part-3-the-closest-look-a19d05b561a1">Part 3</a>. If you liked Part 2, give us a hand (or 50) 👏 and follow <a href="https://medium.com/commonsstack">Commons Stack</a> for the next episode. Learn more by <a href="https://sim.commonsstack.org/">trying out the simulator yourself,</a> <a href="https://t.me/CSDdev">joining our team</a> or <a href="https://github.com/commons-stack/commons-simulator">checking out our repo on GitHub</a>.</p><p>Help support us directly by liking or 👉👉 <a href="https://giveth.io/project/the-commons-simulator:-level-up!">donating to our project</a> 👈👈 on <a href="https://giveth.io/">Giveth.io</a>!</p><p>Don’t forget to join the <a href="https://commonsstack.org/apply">Trusted Seed</a> so you are eligible to participate in the upcoming <a href="https://token-engineering-commons.gitbook.io/tec-handbook/hatch-101/welcome-hatchers">Hatch of the TE Commons</a>!</p><p><em>Thanks to Lauren Luz, Griff Green, Danielle Gennety, Santiago Gonzalez Toral, Merlin Egalite, Marko Prljic, Jeff Emmett, and Chuy Garcia for content, edits, and suggestions on this piece.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93da1b8b3abe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/commonsstack/the-magic-behind-the-commons-simulator-part-2-initialization-93da1b8b3abe">The Magic Behind the Commons Simulator — Part 2: Initialization</a> was originally published in <a href="https://medium.com/commonsstack">Commons Stack</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>