{"componentChunkName":"component---src-templates-post-template-js","path":"/posts/crypto/mirror","result":{"data":{"markdownRemark":{"id":"5b1971ab-6faf-5ce1-bdf4-8320e540b641","html":"<h2 id=\"mirror\" style=\"position:relative;\"><a href=\"#mirror\" aria-label=\"mirror 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>Mirror</h2>\n<p>Overcollateralized synthetic asset\nDeposit bluna, luna, ust\nMint some index(ie price of oil, mTesla)</p>\n<h2 id=\"mirror-risks\" style=\"position:relative;\"><a href=\"#mirror-risks\" aria-label=\"mirror risks 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>Mirror Risks</h2>\n<ul>\n<li>\n<p>Governance Risk</p>\n<ul>\n<li>Create formal governance proposal, hide sus code in it, hope it passes before people realize(Same think that rekt beanstalk finance)</li>\n<li>Mirror v2 has a system of incentives to achieve quorum</li>\n</ul>\n</li>\n<li>\n<p>Oracle Risks</p>\n<ul>\n<li>S&#x26;P 500 oracle gave incorrect price and a large position was liquidated(250-500k)</li>\n</ul>\n</li>\n<li>Structural/Economic Risk</li>\n</ul>\n<h2 id=\"geometric-brownian-motion\" style=\"position:relative;\"><a href=\"#geometric-brownian-motion\" aria-label=\"geometric brownian motion 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>Geometric Brownian Motion</h2>\n<ul>\n<li>Problem: continuous in time but users don’t act continuous in time but rather per block. The agent can continue to add more collateral as the price moves down to prevent liquidations.</li>\n</ul>\n<h2 id=\"jump-process\" style=\"position:relative;\"><a href=\"#jump-process\" aria-label=\"jump process 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>Jump Process</h2>\n<ul>\n<li>\n<p>Poisson point process: gives the arrival of the jumps</p>\n<ul>\n<li>The model of the arrival in each independent event. The probability that a certain event arrives within a given interval is poisson distributed. Modeled by probability mass distribution, lambda tells you how often the jump happens on average.</li>\n</ul>\n</li>\n<li>Jumps: the prices at each jump</li>\n</ul>\n<h2 id=\"model\" style=\"position:relative;\"><a href=\"#model\" aria-label=\"model 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>Model</h2>\n<ol>\n<li>Trader mints mS&#x26;P by supplying bLUNA as collateral, they are required to supply at least\n<code class=\"language-text\">collateral amount >= collateral factor* mint AMount * collateral price / synthetic price</code></li>\n<li>If no jumps occur in interval, no risk of liquidation because no price changes</li>\n<li>If one jump occurs, check if the jump was less than threshold.</li>\n<li>If two jumps occur, check if the first jump was less than threshold.</li>\n<li>If n jumps occur, need to check if any jump was less than threshold</li>\n</ol>\n<h2 id=\"questions\" style=\"position:relative;\"><a href=\"#questions\" aria-label=\"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>Questions</h2>\n<p>1.How does risk harbor provide protection against Mirror Liquidations?</p>","fields":{"slug":"/posts/crypto/mirror","tagSlugs":["/tag/primer/","/tag/crypto/","/tag/mirror/"]},"frontmatter":{"date":"2021-12-30T23:46:37.121Z","description":"A quick primer on Mirror Protocol from Terra Classic","tags":["Primer","Crypto","Mirror"],"title":"Mirror Protocol"}}},"pageContext":{"slug":"/posts/crypto/mirror"}},"staticQueryHashes":["251939775","401334301","825871152"]}