Skip to content

Instantly share code, notes, and snippets.

View nsjames's full-sized avatar

Nathan James nsjames

View GitHub Profile
- [ ] I understand the purpose of this PR
- [ ] I have visually inspected every line of added and removed code
- [ ] I have analyzed the side effects of the additions and removals
- [ ] I have checked the code for quality:
- [ ] Names are coherent, descriptive, and consistent
- [ ] There are no superfluous comments, only ones that give context
- [ ] All code is self-explanatory
- [ ] The code does not repeat itself
- [ ] The code follows the project standards (indentation, spacing, etc)
- [ ] I have tested the code

EOS Staking Integration Guide

The EOS Network emits a fixed percentage of the out of circulation supply of EOS to various entities (miners, foundations, staking rewards, etc.) on the network constantly. The network has a built-in mechanism to distribute these rewards to the stakers of EOS. The staking rewards are distributed to the stakers of EOS in the form of REX tokens.

REX tokens are a representation of the amount of EOS that a user has staked on the network. REX tokens cannot be transferred to other users, but they can be sold back to the network for EOS.

As the network rewards are distributed to the REX staking pool, the price of REX tokens increases. This means that the

#include <eosio/eosio.hpp>
#include <eosio/asset.hpp>
using namespace eosio;
CONTRACT receiver : public contract {
public:
using contract::contract;
ACTION noop(){}