{"componentChunkName":"component---src-templates-post-template-js","path":"/posts/crypto/stablecoins","result":{"data":{"markdownRemark":{"id":"c064c01b-a180-547d-9bae-215cbb5ddad9","html":"<h2 id=\"variables-to-account-for-in-defistablecoins\" style=\"position:relative;\"><a href=\"#variables-to-account-for-in-defistablecoins\" aria-label=\"variables to account for in defistablecoins permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Variables to account for in DeFi/Stablecoins</h2>\n<ol>\n<li>Interest Rates in CeFi and DeFi</li>\n<li>Cryptocurrency prices</li>\n<li>Collateral Ratio</li>\n<li>DeFi Protocol Fees</li>\n<li>Blockchain Transaction fees</li>\n<li>Number of users</li>\n<li>Blockchain transaction throughput</li>\n</ol>\n<p><strong>Exogenous:</strong> A variable determined outside the model that is imposed on the model. In MakerDao’s DAI, the asset price of the collateral(ETH/USDC) is independent of the MakerDAO system.</p>\n<p><strong>Endogenous Variable:</strong> A variable determined by the model. In Synthetix, arbitrary derivatives are backed by SNX(a project internal token)</p>\n<p><strong>Fractional Reserve:</strong> When a bank only has a fraction of its deposits backed by cash and available for withdrawal. A bank’s reserve ratio = Money held by the bank / Money deposited by bank customers</p>\n<h2 id=\"what-is-stability\" style=\"position:relative;\"><a href=\"#what-is-stability\" aria-label=\"what is stability permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What is Stability?</h2>\n<ul>\n<li>Stability is a relative metric. USD is stable compared to bitcoin but the price still fluctuates with respect to other assets.</li>\n<li>We can measure volatility, the standard deviation of returns, and the worst drop over a timeframe. Some fiat, for example euros or pounds, have a volatility of 6-12%. However, volatility alone does not capture the range of prices.</li>\n</ul>\n<h2 id=\"stable-vs-pegged-coins\" style=\"position:relative;\"><a href=\"#stable-vs-pegged-coins\" aria-label=\"stable vs pegged coins permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Stable vs Pegged Coins</h2>\n<ul>\n<li>Stablecoins include USDC, USDT, DAI, UST, etc. These coins are simply USD derivatives and are usually reserve based, collateral based, or algorithmic.</li>\n<li>Pegged coins include wBTC, renBTC, sETH, stETH. They are pegged to the price of an asset, usually via the same reserved based, collateral based, or algorithmic strategies used by stablecoins.</li>\n</ul>\n<h2 id=\"how-do-stablecoins-work\" style=\"position:relative;\"><a href=\"#how-do-stablecoins-work\" aria-label=\"how do stablecoins work permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>How do Stablecoins work?</h2>\n<h3 id=\"makerdaos-dai\" style=\"position:relative;\"><a href=\"#makerdaos-dai\" aria-label=\"makerdaos dai permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>MakerDAO’s DAI</h3>\n<ol>\n<li>The minter deposits ETH to open a collateralized debt position (CDP) where 150% collateral mints 100% debt. The collateral in this case could be ETH, and the debt create is represented as the DAI Stablecoin.</li>\n<li>The minter can withdraw DAI to use for anything they want.</li>\n<li>To get their deposited ETH back, the minter needs to pay back the same amount of DAI they withdrew to unlock their ETH.</li>\n</ol>\n<h3 id=\"synthetix-susd\" style=\"position:relative;\"><a href=\"#synthetix-susd\" aria-label=\"synthetix susd permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Synthetix sUSD</h3>\n<ol>\n<li>The minter deposits SNX to mint a derivative. 600% collateral mints 100% derivative. The collateral in this case is always SNX, and the derivative could be something like sUSD or even something like sTSLA shares.</li>\n<li>The minter can withdraw their derivative. In the case of sTSLA, price oracles report the external prices to the blockchain, which entitles the derivative to a portion of the collateral based on the current price of TSLA shares.</li>\n<li>The minter can pay back their sTSLA to unlock SNX</li>\n</ol>\n<h2 id=\"ampleforth-ampl\" style=\"position:relative;\"><a href=\"#ampleforth-ampl\" aria-label=\"ampleforth ampl permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Ampleforth (AMPL)</h2>\n<p>Ampleforth has no collateral, it is an algorithmic stablecoin\nThe price oracle constantly updates the AMPL/USD price. There are three cases the oracle reports:</p>\n<ol>\n<li>If each AMPL is worth more than 1 USD, wallet balances that hold ample increase. For example, if you had one AMPL in your wallet and each AMPL is now worth 2 USD, you now have two AMPL in your wallet. This is known as expansion.</li>\n<li>If each AMPL is worth less than 1 USD, wallet balances that hold AMPL decrease. For example, if you had one AMPL in your wallet and each AMPL is now worth .5 USD, you now have .5 AMPL in your wallet. This is known as contraction.</li>\n<li>If each AMPL is worth exactly 1 USD, no action is taken. This is known as equilibrium.</li>\n</ol>\n<h1 id=\"remaining-questions\" style=\"position:relative;\"><a href=\"#remaining-questions\" aria-label=\"remaining questions permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Remaining Questions</h1>\n<ol>\n<li>Even though AMPL is 1:1 USD, why is it worth anything? It isn’t backed by collateral like DAI/USDC so what can you do with AMPL? How is AMPL minted?</li>\n</ol>","fields":{"slug":"/posts/crypto/stablecoins","tagSlugs":["/tag/notes/","/tag/de-fi/"]},"frontmatter":{"date":"2021-12-30T23:46:37.121Z","description":"Notes on the implementations and real world examples of stablecoins","tags":["Notes","DeFi"],"title":"Stablecoins"}}},"pageContext":{"slug":"/posts/crypto/stablecoins"}},"staticQueryHashes":["251939775","401334301","825871152"]}