Skip to content

The public contract claims own rewards and distribute it among the specified accounts.

License

Notifications You must be signed in to change notification settings

Remmeauth/rem-bonus-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rem-bonus-contract

The rem.bonus public contract, which claims own reward and distributes it among the specified accounts.

Build Status

Actions

distrewards

Distribute rewards in proportion between the accounts indicated in the table. Can be called once a day.

$ remcli push action rembonus distrewards '[]' -p accountnum1

addaccounts

Add the accounts to which rewards will be distributed. It can only be called by the owner of the contract.

$ remcli push action rembonus addaccounts '[["accountnum1", "accountnum2"], ["0.5", "0.5"]]' -p rembonus 

removeacc

Remove account from the rewards distribution list. It can only be called by the owner of the contract.

$ remcli push action rembonus removeacc '["accountnum1"]' -p rembonus

Building

Requirements

$ git clone https://github.com/Remmeauth/rem-bonus-contract.git && cd rem-bonus-contract
$ bash build.sh

Or, if you already worked with the project:

$ cd build/rem.bonus && make

Deployment

$ remcli set contract rembonus 'absolute_path'/remme-guardian-reward-contract/build/rem.bonus --abi rem.bonus.abi -p rembonus

About

The public contract claims own rewards and distribute it among the specified accounts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published