https://github.com/sim31/eos-pos-token
Proof of Stake token smart contract on EOSIO
https://github.com/sim31/eos-pos-token
cryptocurrency eos eos-contracts eosio smart-contracts token
Last synced: 8 months ago
JSON representation
Proof of Stake token smart contract on EOSIO
- Host: GitHub
- URL: https://github.com/sim31/eos-pos-token
- Owner: sim31
- License: mit
- Created: 2019-07-12T10:45:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-12T10:50:44.000Z (almost 7 years ago)
- Last Synced: 2025-04-11T08:26:53.540Z (about 1 year ago)
- Topics: cryptocurrency, eos, eos-contracts, eosio, smart-contracts, token
- Language: C++
- Size: 25.4 KB
- Stars: 1
- Watchers: 0
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eos-pos-token
EOS token, which allows every holder to earn interest just by holding it.
It's based on standard eosio.token, so it has all the standard actions. In addition, it has `setstakespec` action which should be used after creating a token to specify configuration for the staking mechanism:
* `stake_start_time` - the time when staking starts;
* `minimum_coin_age` - minimum amount of days that has to pass before you can start earning;
* `maximum_coin_age` - amount of days after which no more interest is earned;
* `anual_interests` - interest rates for each year;
Once coin age reaches configured minimum coin age, earned tokens can be claimed using `mint` action.
## How to Build -
* cd to 'build' directory
* run the command 'cmake ..'
* run the command 'make'
* After build -
* The built smart contract is under the 'postoken' directory in the 'build' directory
* You can then do a 'set contract' action with 'cleos' and point in to the './build/postoken' directory
---
Tested with eosio.cdt v1.6.1.