Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.63 KB

README.md

File metadata and controls

65 lines (45 loc) · 1.63 KB

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