How to add an Inspector to the Smart Contract

All the function calls are made to a proxy contract which delegates call to the implementation. The context i.e. address where all data regarding the state of the contract is stored will be on the Proxy contract and not on the implementation contract.

This empowers us to change the contract functionality at a later stage after deployment. Storage collisions have been considered and the contract follows EIP-1967: Standard Proxy Storage Slotsarrow-up-right for the same, so explorers can identify that the contract is a proxy.

Testing

  • Test Token Via Proxy npm run test-proxy

  • Test Token Directly npm run test-token

  • Test Both npm run test-all

Audit

An internal audit has been done of the smart contract and its report can be found herearrow-up-right

StorX - Staking

StorX provides its Farm Node owners a staking functionality where farm node owners with their StorX staking/escrow wallet can choose to stake a certain amount of SRX and enjoy rewards in SRX available to consume in regular intervals.

Only those addresses which host a StorX Farm Nodearrow-up-right and maintain a reputation above a pre-decided threshold can stake & claim rewards.

Staking

StorX farm node operators can stake an amount of SRX tokens and get rewards. The node operators are eligible for two types of rewards:

  1. Storage or Hosting Compensation - A StorX Node Operators will be compensated for their hosting costs by SRX tokens. Its amount is regulated by the StorX Governance.

  2. Staking / Escrow Reward - B Staking rewards is a simple Reward on the amount of initial stake by the StorX Staking Wallet. Staking Reward present will be regulated by the StorX governance committee.

    E.g: if staked/ Escrow token is 100000 SRX and the Reward is 6 % per annum then the yearly rewards for staking will be 6000 SRX

A total of A + B SRX will be added in intervals to the StorX Staking Wallet automatically and can be consumed right away by StorX Node Operators/ Farmer.

Prerequisites To Stake

  • Farm node has been setup & the user has access to the XDC wallet used in the StorX node setup

  • The farmer node is an active participant in the StorX network.

  • Farmer XDC wallet needs to approve & stake a valid amount i.e. between the aforementioned minimum & maximum SRX tokens on the site.

Last updated