Bitcoin Forum
May 26, 2024, 05:01:37 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Ethereum token code - neo-gas like interest paying token code for the community  (Read 169 times)
Litlp007 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
October 24, 2017, 07:44:13 AM
 #1

Hi,

We are relatively new to solidity and to get familiar with it and with interactions between contracts I have tried to put together a code that accumulates "interest" (PoS) for the holders of token A (Basetoken in the code) which can be claimed later in the form of token B (RewardToken in the code, quite similarly to neo and gas).
The code relies on the zeppelin framework and we would be glad to see it (or something like this) later becoming a standard class in the framework after some (probably a lot of) review.
Contract A accumulates 'historical' rewards for the accounts which can be claimed for the same account in contract B.
The source is available on github: https://github.com/cryptogoodie/reward-token.git.

What do you think about it? Any feedback is appreciated. Feel free to fork/push back commits to the repository. This is really a learning project for us.

Thanks!
Litlp007 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
October 30, 2017, 03:46:25 PM
 #2

Some fixes and tests were pushed, check out Smiley
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!