SRC20 Registry Contract
Smart Contract: globally across all SRC20
Created: pre-exists / created only once
Purpose: Registry of all SRC20 tokens created and the associated SWM stakes
Example: On Ropsten
Feature Description
Glossary
Item | Description |
(SWM) Stake | On Swarm token issuers are required to stake an amount of SWM token to trigger the minting and distribution of SRC20 tokens; the required stake amounts follow a staking rate card which has been adopted as a network policy by the Swarm Network |
Read Functions
Function | Description |
| Returns the SWM stake amount needed to mint an additional amount of specific SRC20 tokens; this function translates the Net Asset Value into USD denominated staking amounts based on the network policy and then uses the referenced SWMPriceOracle to translate them into SWM values based on current prices |
| Returns true when a SRC20 token address is successfully registered with this |
| Returns the amount of SWM staked for a specific SRC20 |
| Returns the address of the contract owner |
| Returns true if the caller is the contract owner |
| External function allowing users to check the corresponding amount of SRC20 tokens that can be minted for a SWM stake value; responds in SRC20 in Wei (e.g. 1 = 1 additional SRC20); This differs from the |
| Returns address of the |
| Returns the address of the owner (and staker) of a specific SRC20 |
Write Functions
Function | Description |
| Removes specific SRC20 from the |
| Adds new factory to the |
| This proxy function removes a contract from the list of authorized minters; use the address of the |
| This proxy function removes a |
| Allows the manager to renounce management for a specific SRC20 token address; returns true on success |
| External function for calculating how much SWM tokens are needed to be staked in order to get 1 SRC20 token |
| This function the token issuer can call in order to increase his SRC20 supply and stake his tokens; enter parameters with |
| Contract owner can renounce ownership of the contract |
| Allows the manager to transfer management for a specific SRC20 token address to a new address; returns true on success |
| This proxy function adds a contract to the list of authorized minters |
| Mints additional supply of a specific SRC20 token based on SWM token stake; can be used for initial supply and subsequent minting of new SRC20 tokens; When used, Manager will update SWM/SRC20 values in this call and use it for token owner's |
| Adds a SRC20 token to the |
| This function the token issuer can call in order to decrease his SRC20 supply and receive his SWM stake; enter parameters with |
| Transfers ownership of this contract to another address. Can only be called by the contract owner |
Last updated