docs.ergoplatform.com
Open in
urlscan Pro
2606:4700:3034::6815:37ce
Public Scan
URL:
https://docs.ergoplatform.com/uses/sigmausd/examples/
Submission: On January 20 via api from FI — Scanned from FI
Submission: On January 20 via api from FI — Scanned from FI
Form analysis
2 forms found in the DOM<form class="md-header__option" data-md-component="palette">
<input class="md-option" data-md-color-media="" data-md-color-scheme="default" data-md-color-primary="red" data-md-color-accent="indigo" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_1">
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_2">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"></path>
</svg>
</label>
<input class="md-option" data-md-color-media="" data-md-color-scheme="slate" data-md-color-primary="red" data-md-color-accent="indigo" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_2">
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_1" hidden="">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M17 7H7a5 5 0 0 0-5 5 5 5 0 0 0 5 5h10a5 5 0 0 0 5-5 5 5 0 0 0-5-5m0 8a3 3 0 0 1-3-3 3 3 0 0 1 3-3 3 3 0 0 1 3 3 3 3 0 0 1-3 3Z"></path>
</svg>
</label>
</form>
Name: search —
<form class="md-search__form" name="search">
<input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required="">
<label class="md-search__icon md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"></path>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"></path>
</svg>
</label>
<nav class="md-search__options" aria-label="Search">
<button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"></path>
</svg>
</button>
</nav>
</form>
Text Content
Skip to content ErgoDocs Examples Type to start searching GitHub * 20 * 68 * Introduction * Ecosystem * Developers * Miners * Get Involved! ErgoDocs GitHub * 20 * 68 * Introduction Introduction * Why Ergo Why Ergo * FAQ * Common Misconceptions * A CBDC For All * Key Features Key Features * Protocol * eUTxO eUTxO * UTxO vs Account * Atomic Swaps * NIPoPoWs NIPoPoWs * Light Clients * Light Miners * Sidechains * Privacy * Storage Rent * Autolykos * Scaling Scaling * Layer 0 Layer 0 * Weak Blocks * Layer 1 * Layer 2 * Discussions Discussions * Roadmaps * Transactions Per Second * Atomic Composability * Documents Documents * Research & Whitepapers * Social Contract * Audit * Transparency Report * The Howey Test * Privacy Guide * Glossary * Ergo Foundation Ergo Foundation * Scope * Treasury * Timeline * Future * Events Events * ERGOHACK * ErgoSummit * Ecosystem Ecosystem * Standards Standards * Chat Bridge * ErgoTipperBot * Analytics * KYA * Community Guidelines * Infrastructure Infrastructure * Rosen Bridge Rosen Bridge * Watchers Watchers * Prerequisites * Guards * Tokenomics * Team * Uses * Oracles Oracles * Oracle Pools V2 * Mixicles * Tooling Tooling * Crux Finance * Thz.FM * Azorus * TabbyPOS * ZenGate Global ZenGate Global * Solaris Portal * Cyberiad * Sidechains Sidechains * ErgoData * SentientChain * PoUW * Financial Financial * Stablecoins Stablecoins * SigmaUSD SigmaUSD * Examples Examples Table of contents * SigmaRSV (Reservecoin) Simplified * Overview * SigmaUSD (Stablecoin) Simplified * Longterm framework of SigmaUSD. * Mining Incentives * Other Stablecoins * Why? * DexyGold * SigmaGold * ChainCash * DegFi DegFi * Hodlcoin * Auction Coin * Grand Gambit * NightOwl Casino * Obolflip * Lotteries * Lending Lending * duckpools * EXLE * Micro Credit * Mutual Credit * Bonds Bonds * SigmaFi * Bonding Curve * Derivatives Derivatives * Tensile * Options Options * SigmaO * CrowdFunding CrowdFunding * ErgoRaffle * Sigma Subscriptions * ErgoWell * ErgoFund * Grid Trading * Further Ideas Further Ideas * Prediction Markets * Insurance * Tokens Tokens * ICOs * Index Coins * PoW Tokens * Perpetual Tokens * Buy Back Guarantees * Exchanges Exchanges * Spectrum Finance * Palmyra * Machina Finance * P2P P2P * Token Jay * Analog Ergo * Single Tx Swap * Others Others * Local Exchange Trading Systems (LETS) Local Exchange Trading Systems (LETS) * Basic Implementation * Trustless LETS * NFTs NFTs * Ergo Auctions * SkyHarbor * Lilium * SigmaStamp * DAOs DAOs * ErgoPad * Paideia * Privacy Privacy * Mixing Mixing * ErgoMixer ErgoMixer * Identifiability * Best Practices * FAQ * Token * Install on Android * SigmaJoin * Stealth Addresses * ZK Treasury * Decentralised Anon ID Decentralised Anon ID * Ergo Nation * Gaming Gaming * BlitzTCG * Metaverse Metaverse * Cyberverse * Sigmavalley * BlobsTopia * ErgoGames.io ErgoGames.io * Digigoats * Monster Pub Brawl * Project Tesseract * Further Ideas Further Ideas * ProfitSharing * Email Client for Blocked Internet * Flash Loans * Miner Tooling * Developers Developers * 📌 Getting Started * Anatomy of Ergo Anatomy of Ergo * Box Box * Registers * Assets Assets * Tokens Tokens * Creating a perpetual token * Burning a token * Non-Fungible Tokens Non-Fungible Tokens * Minting a NFT Minting a NFT * Design V1 v V2 * Simple Example * On-chain NFTs * Royalties * Singletons * Standards Standards * Asset Standard * Geniune Token Verification * Auction Contract * Artwork Contract * Modelling * Addresses Addresses * Types * Validation * Address Encoding * Transactions Transactions * Composing Transactions Composing Transactions * Sending A Chained Transaction * Interacting with an Ergo Wallet Interacting with an Ergo Wallet * Manually Manually * Format * Merkle Tree * Signing * Signing Backend * Validation * Data Inputs * Fees * Unified Transactions * Resources Resources * Standards Standards * Babel Fees * Proxy Contracts * ErgoPay Protocol * Payment Request URI * Just-In-Time Costing * ErgoTool * Model Transaction * Block * Wallets Wallets * Access Issues * Satergo * MultiSig MultiSig * Minotaur * Ledger * Integration * Standards Standards * UTXO-Set Scanning Wallet API * Deterministic Wallet Standard * Cold Wallet * Development Stack Development Stack * Starter Tutorial * Server * Browser * Desktop * Mobile Mobile * iOS * Android * Interacting with Ergo Interacting with Ergo * Node Node * Setup Setup * Troubleshooting * FAQ * Pi * Android * Docker * Testnet Testnet * Full Sync * CPU Mining * Fork your own chain * Resources * Protocol Protocol * P2P P2P * Handshaking * Network Messages * Peer Management * Modifiers Modifiers * Modifiers Processing * Modifiers Validation * Synchronisation * Configuration Configuration * Node Wallet Node Wallet * Hierarchical keys * Wallet Setup * Swagger API Swagger API * OpenAPI Spec * Try it out! * Indexed Node API * Configuration Files Configuration Files * application.conf application.conf * ergo ergo * node * cache * chain * wallet * voting * bounded-mailbox * akka * scorex * critical-dispatcher * api-dispatcher * testnet.conf testnet.conf * devnet.conf * Tor * Modes of Operation Modes of Operation * Archival Full Node Archival Full Node * Technical Details * Pruned Full Node Pruned Full Node * Technical Details * Light Full Node Light Full Node * Digest State * blocksToKeep * Technical Details * Light SPV Light SPV * Simplified Payment Verification * Technical Details * Explorer Explorer * Local Setup * Pi Blockchain Explorer * GraphQL * APIs * Off-Chain Off-Chain * Oracle-Core Oracle-Core * Bootstrap an Oracle Pool * Off-Chain Bots * Rust Utilities * Plasma * Developer Tooling Developer Tooling * Programming Languages Programming Languages * JVM JVM * Scala * Java * Kotlin * JavaScript * Rust * Others Others * Python * C# * Go * Frameworks Frameworks * AppKit AppKit * Tutorial * Interacting with a local Node * Gradle * Using Appkit from Python * SigmaRust * Fleet (JS) * FleetSharp * Others Others * Ergpy * RustKit * Mosaik Mosaik * Tutorial Tutorial * A simple UI * Processing data * ErgoPay * Web UI * Deployment * Example apps * JSON dApp Environment * Headless dApp Framework Headless dApp Framework * Modules * Payments Payments * ErgoPay ErgoPay * ErgoPay * Tutorial * ErgoAuth * dApp Connector * Proxy Contracts Proxy Contracts * Assembler * Libaries Libaries * Plasma * Scrypto * EIP12-Types * SigmaJS * Interpreters Interpreters * sigmastate-interpreter * sigma-rust * ErgoScript ErgoScript * Quick Primer Quick Primer * Paradigm * Key Concepts * Context Claims * Examples Examples * Anyone Can Spend * No-one-Can Spend * Context Variables * Code-blocks * Public-keys * Functional Programming * Box Structure * Storing Data * Creating a simple P2S app * Sigma Language Sigma Language * Language Description * Simple Syntax * Sigma Propositions * SigmaBoolean * The Blockchain context * Accessing boxes and registers * Global Functions * Language Operations * Cryptographic Cryptographic * Sigma Protocols Sigma Protocols * Schnorr Schnorr * Verifying Schnorr Signatures * Diffie Diffie * ZeroJoin * Ring Signatures Ring Signatures * 3-out-of-5 Threshold Signature * Distributed Signatures * Tooling Tooling * Contracts * Playgrounds Playgrounds * Scastie * P2S Playground * Kiosk * ErgoPuppet * Compilers Compilers * ErgoScala * CLI Compiler * Debugging * FlowCards * ErgoTree ErgoTree * Introduction * As a Language * Typing * Evaluation * Serialization * Predefined Types * Predefined Functions * Encoding * Script Validation * Script Optimisation * Templates * AVL Trees AVL Trees * Plasma * Multi-Stage Protocols Multi-Stage Protocols * Transaction Chains * Transaction Trees * Transaction Graphs * Context Enrichment * Examples Examples * Reversible Address * Rock/Paper/Scissors * ICO * Resources Resources * EIPs * Miners Miners * Autolykos Autolykos * Algorithm Algorithm * Emission Emission * EFYT * Difficulty Adjustment * Solution Verification * Technical Breakdown * Storage Rent Storage Rent * Fees * Tokens * Spending * State Growth * ASIC Resistance * Resources Resources * CPU vs GPU * EIPs EIPs * Emission Retargeting Soft-Fork * Tweaking Difficulty Adjustment Algorithm * Start Mining Start Mining * Software * Operating Systems * Overclocking * Pools * Solo Mining Solo Mining * Node Configuration * Withdraw * FAQ * Host a Pool Host a Pool * Stratum * MiningCore * Governance * Revenue * Tooling Tooling * GuapSwap * Lithos Lithos * SNISPs * CYTI * Log-Space Mining * Smartpools Smartpools * Subpooling * Get Involved! Get Involved! * Developers Developers * Bounties * Grants * Roles * Marketing * Sigmanauts * Contribute to the docs! Table of contents * SigmaRSV (Reservecoin) Simplified * Overview * SigmaUSD (Stablecoin) Simplified * Longterm framework of SigmaUSD. EXAMPLES SIGMARSV (RESERVECOIN) SIMPLIFIED# * SigmaRSV is a call option on a % of the ERG held in the reserve portion of the SigmaUSD contract * Fees are continually added to the ERG held in reserve as users interact with the contract. This mechanism ensures liquidity and offers a mechanism of return beyond trading. SigmaRSV represents a price/book (P/B Ratio) on the ERG held in reserve. > It is important to understand three mechanisms that influence the outcome of > each user of SigmaRSV 1. Fees accumulate as users interact with the contract. Nothing is Free. 2. The amount of ERG held in reserve floats (up/down) as users interact with the contract. 3. The price ERG/USD floats (up/down) as users trade ERG. OVERVIEW# * Imagine the Reserve amount is 100 ERG. * Alice holds SigmaRSV, which represents 10% of the (P/B Ratio) contained in the reserves. * Alice's SigmaRSV position is a call option on 10 ERG (minus the exchange fee) * Let's imagine the price of ERG is 2$. * Alice's SigmaRSV represents 20$ in ERG (minus the exchange fee) THE BALANCE IN RESERVE CAN GO UP * Imagine, based on use, the reserve now holds 114 ERG. * Alice has SigmaRSV, which represents 10% of the (P/B Ratio) contained in the reserves. * Alice's SigmaRSV represents a call option on 11.4 ERGs. * Let's imagine the price of ERG is still 2$. * Alice has 22.80$ in ERG (minus the exchange fee) THE BALANCE IN RESERVE CAN GO DOWN * Imagine, based on use, the reserve now holds 90 ERG. * Alice has SigmaRSV, which represents 10% of the (P/B Ratio) contained in the reserves. * Alice's SigmaRSV represents a call option on 9 ERGs. * Let's imagine the price of ERG is still 2$. * Alice has 18.00$ in ERG (minus the exchange fee) THE VALUE, ERG/USD, CAN GO UP * Imagine, based on use, the reserve now holds 114 ERG. * Alice has SigmaRSV, which represents 10% of the (P/B Ratio) contained in the reserves. * Alice's SigmaRSV represents a call option on 11.4 ERGs. * Let's imagine the price of ERG is still NOW 3$. * Alice has a call option 34.20$ in ERG (minus the exchange fee) THE VALUE, ERG/USD, CAN GO DOWN * Imagine, based on use, the reserve now holds 114 ERG. * Alice has SigmaRSV, which represents 10% of the (P/B Ratio) contained in the reserves. * Alice's SigmaRSV represents a call option on 11.4 ERGs. * Let's imagine the price of ERG is still NOW 1$. * Alice has a call option 11.40$ in ERG (minus the exchange fee) SIGMAUSD (STABLECOIN) SIMPLIFIED# > SigmaUSD represents a call option on the dollar value of ERG held in reserve. SigmaUSD uses Ergo's oracle pools infrastructure to calculate and adjust the current ERG/USD exchange rate. Reserve always backs sigma USD. The price ERG/USD floats (up/down) as users trade ERG. BASIC OVERVIEW * Bobs has 20 SigmaUSD, representing a 20 USD value in ERG. * These ERGs are held in Reserve. * This 20$ value is backed by reserves of at least * (4x1)(80$ of ERG)(40 ERG @ $2) * Bob at 2$ Bob can Redeem his 20 SigmaUSD for 10 ERG (minus the exchange fee) ERG/USD VALUE DROPS * Let us imagine the price of ERG drops from $2 to $1. * Bobs 20$ of value is backed by at least * (4x1)(80$ of ERG)(80 ERG @ $1) * Bob can call 20 ERG (minus the exchange fee) ERG/USD VALUE INCREASES * Let us imagine the price of ERG increases from $2 to $4. * Bob's $20 value is backed by at least * (4x1)(80$ of ERG)(20 ERG @ $4) * Bob can call 5 ERG (minus the exchange fee) LONGTERM FRAMEWORK OF SIGMAUSD.# * SigmaUSD is an essential building block for a functioning DeFi System. * The focus for ERG now shifts to building on the foundation it has set. * Gateways, Dex's, Liquidity Pools, LETS systems. It is time to build use and utility. * The importance and significance of stable value cannot be overstated. * This is critical to the long-term prosperity of the Ergo Network and is important to understand. Made with Material for MkDocs