• NEC Website
  • GitHub
  • Discord Community

Quick Start

  • Get Started

Staking

  • Quick Start
  • Overview
  • Stake on NCOG
  • Run NCOGEarthChain
  • Run Validator Node
  • Running Testnet
  • Operating a private network (fakenet)
  • Running the demo
  • Run a Read-only node
  • Testnet Faucet
  • Run a Full node
  • Run a Testnet read node

API

  • Public API End Points
  • Getting Started
  • Installation
  • GraphQL Schema Basics
  • Schema Structure
  • Implementation Details and Notes

Tutorials

  • Create a ERC721 Contract
  • Deploy a Smart Contract
  • Verify a Deployed Smart Contract
  • Setup MetaMask Wallet
  • Import NFT
  • Create a Local Test Network

Technology

  • Overview
  • Forest Protocal
  • Tolerance to Byzantine Fault (BFT)
  • Proof of Stake
  • Transaction Fees
  • FAQ

Best Practices

  • MANAGE NEC ASSETS WITH LEDGER NANO S
  • How to Navigate NCOG NEC
  • How to Check Your Account Balance
  • How to Receive NCOG Assets
  • How to Send NCOG Assets
  • Leager FAQ
  • Home
  • Docs
  • API
  • Implementation Details and Notes

Implementation Details and Notes

Table of Contents
  • Rewards Estimation
  • Delegation Limits

Rewards Estimation #

Estimated rewards calculation uses the current status of the blockchain to approximate amount of NEC tokes rewarded for participating in staking. The network uses proof of stake consensus variant to ensure security of the data inside the blockchain structure.

To calculate the rewards we use baseRewardPerSecond value of the latest sealed epoch, but the total staked amount of tokens is calculated elsewhere. The epoch does provide a value of total self-staked tokens in that epoch and also the amount of total delegated tokens, but the first value does not contain temporarily offline nodes and, on the other hand, it includes delegated stake in un-delegation. That means the value is not correct for our calculations.

To get the current total staked value, we iterate all the staking records and collect total staked amount from individual staking.

Delegation Limits #

Delegation limit is calculated from the current self staked amount of a staker by multiplying it by fixed rate, specified in SFC contract. The current value of maximum allowed delegations is 15 times the amount of self staked NECs.

When we calculate remaining allowed limit, the current delegated amount is subtracted from the total limit. The value is provided by API so you don’t have to deal with the calculation yourself.

Please note that tokens in un-delegation does not count towards delegatedMe value and so they don’t count towards spent limit of delegations.

What are your Feelings
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on December 4, 2023
Schema Structure

Powered by BetterDocs

Table of Contents
  • Rewards Estimation
  • Delegation Limits
© 2023. NCOG Earth Chain. All Rights Reserved.