# POCM Tutorial

The SCO platform allows projects to use smart-contract based POCM (Proof of Credit Mining) to create a SCO (Staked Coin Output) node. NULS holders can stake into the projects' SCO nodes and receive the newly-generated project tokens, instead of their usual NULS staking rewards. The SCO project node continuously earns the NULS staking rewards that would otherwise be rewarded to the NULS stakers, and projects can use the rewards to bootstrap and help fund development. The SCO platform and POCM allow this same functionality to be used with any public chain or assets in any blockchain ecosystem

# Test environment

POCM is a decentralized product based on smart contracts. Users (especially project issuers) can familiarize it with the operational process in the test environment, avoiding misuse and causing asset losses.

# NULS holders

You can stake your NULS to the project you like, and then you can get Token from the project, and the NULS used for staking will not be lost. The steps of NULS holder participation on the POCM platform are as follows:

# Participate POCM

On the pocm platform, click the [Select Item] menu, enter the page and select the approved item, click to enter the item details page.

image-20190917134751446

On the project details page, enter the number of NULS you want to stake (the amount of staking cannot be lower than the minimum value set by the project team, the value can be viewed in the project details), click [Participate POCM]

image-20190917135217330

# Receiving rewards

The contract will be awarded once every 5 blocks.After the reward is issued, the user needs to click the [Receive reward] on the right side of the [User Center] page. After the successful receiving, the contract will transfer the rewards to the participating address in real time. After the lockout time is over, the Token can be used (the specific unlock time can be viewed in Project details)

Receiving a reward is an operation that calls a contract, so you need to consume a small amount of NULS

image-20190917143321848

# Add rewards

The user can continue to participate in the pocm of a certain item in the project details, or add it via the [ Add ] button on the right side of the participating item list on the [User Center] page.

# Project team

You can use POCM (SCO distribution platform) to attract NULS community members as the first group of supporters, continue to obtain NULS consensus reward as the project development fund, and get full empowerment of NULS community and ecology.The steps to participate are as follows:

# Submit basic information

Click the [Select Project] menu on the pocm platform, enter the page, click the [Issue Project] button and fill in the basic information and submit

image-20190917111842631

# Issued Token

Click the [Issue Token] menu on the POCM platform and click on the NRC-20 token issued by yourself in the form to fill in the entry information (please pay attention to re-fill the token name and symbol completely and accurately, and need to be the same as the previous step) Token information be consistent)

image-20190917112104017

# Issue pocm contract

After the basic information is submitted, the project team needs to send an email to the email address: pen@nuls.io. The content of the email is as follows:

  • project name
  • Provide an account address (please keep the private key of the address by yourself) for subsequent release of POCM contracts

After receiving confirmation from NULS that their project has been approved, users can import their POCM account to the POCM platform and enter the [user center] page to issue POCM contracts.

image-20190917112918386

Fill the form and publish the contract according to the project team's own POCM distribution rules.

image-20190917114302953

# Transfer the token to the contract

Import the address holding the token into the wallet, go to the [ Contract ] page, find the token and click [ call ]

image-20190917114719872

Go to the calling page and select the transfer method of the token contract.

image-20190917114912986

Fill in the POCM contract address that has been successfully issued, and then fill in the number of Tokens transferred (because of the calculation unit, you need to add n zero after the actual number,n = the decimal of the token you issued ) and finally click [ call ]

image-20190917115135644

At this point, the user can already see the project information on the pocm platform and stake NULS for new tokens

# Add node

On the NULS network, the reward generated by staking NULS to the consensus node will be split into two parts:

  • Consensus node commission (consensus rewards generated by the commission * consensus node commission ratio), this part is directly assigned to the reward address of the consensus node
  • Staking rewards (consensus rewards generated by staking - Consensus awards generated by staing * Consensus node commission ratio), which is directly assigned to the staking address

On the POCM platform, the POCM contract will stake the NULS that the user delegate to the contract to the consensus node that you added. The contract address will receive the staking rewards generated by staking. The creation address of the contract has the authority to transfer the staking reward.You can invokes the transferConsensusRewardByOwner method in [contracts] page for Reward transfering.

image-20190917120103974

There are two ways to get a node:

  • Create Nodeby yourself. With this method, you can receive both the consensus node commission and the staking reward.
  • Use the consensus node already on the NULS network. With this method, you can only receive the staking reward.

How to add nodes:

On the POCM platform, click [User Center], enter the page and click [Add Node] to enter the ID of the node.

image-20190917120103974

After the node is successfully added, the POCM contract will stake the NULS of the user delegated to the added nodes in turn. If there are multiple nodes, the order of staking is the order of adding the nodes.

# Remove a node

If you need to delete an added node, you need to enter the [Contract] page of the wallet (the operation address should be which creates the POCM contract), find the POCM contract, click [call] image-20190917120103974

Select the contract's removeAgent method, enter the node's hash value, click [call].The node will be deleted successfully after the contract is successfully called

image-20190917120103974

On the next version of the POCM product, you will be able to delete nodes directly on the [User Center] page. Please wait patiently.

# Consensus node

As a consensus node On the NULS network, you can work with the project team. The way is: Project team can can add your node as the running node of the project on POCM platform, so that the NULS delegate by the users into the project contract will be automatically stake to your node. Node can obtain the following two parts of rewards

  • the node's staking will increase, so the node will receive more NULS commissions
  • node [create address] will receive tokens from the project, the number of tokens is directly proportional to the deposit of the node, the detailed formula is: the number of tokens obtained by the node = your node deposit/(the total number of NULS delegate to the project by the user * 0.9 + the total amount of deposits of all nodes running on the project) * the total number of tokens distributed by the project

receive tokens distributed by the project: import the create address of the node on POCM platform, then enter [user center] and click [receive rewards] on the right side of the list,then you can see tokens on your wallet asset page

Last Updated: 7/6/2022, 2:49:25 PM