{"action":"created","comment":{"url":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls/comments/232007646","pull_request_review_id":172999820,"id":232007646,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjAwNzY0Ng==","diff_hunk":"@@ -188,7 +190,8 @@ contract ReputationMiningCycle is ReputationMiningCycleStorage, PatriciaTreeProo\n     IColonyNetwork(colonyNetworkAddress).setReputationRootHash(\n       submission.proposedNewRootHash,\n       submission.nNodes,\n-      submittedHashes[submission.proposedNewRootHash][submission.nNodes]\n+      submittedHashes[submission.proposedNewRootHash][submission.nNodes],\n+      1200 * WAD // TODO: Make this a function of reputation state","path":"contracts/ReputationMiningCycle.sol","position":27,"original_position":27,"commit_id":"adac96b8a824648d50b459850c09d0f1454928a4","original_commit_id":"adac96b8a824648d50b459850c09d0f1454928a4","user":{"login":"elenadimitrova","id":703848,"node_id":"MDQ6VXNlcjcwMzg0OA==","avatar_url":"https://avatars1.githubusercontent.com/u/703848?v=4","gravatar_id":"","url":"https://api.github.com/users/elenadimitrova","html_url":"https://github.com/elenadimitrova","followers_url":"https://api.github.com/users/elenadimitrova/followers","following_url":"https://api.github.com/users/elenadimitrova/following{/other_user}","gists_url":"https://api.github.com/users/elenadimitrova/gists{/gist_id}","starred_url":"https://api.github.com/users/elenadimitrova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elenadimitrova/subscriptions","organizations_url":"https://api.github.com/users/elenadimitrova/orgs","repos_url":"https://api.github.com/users/elenadimitrova/repos","events_url":"https://api.github.com/users/elenadimitrova/events{/privacy}","received_events_url":"https://api.github.com/users/elenadimitrova/received_events","type":"User","site_admin":false},"body":"Rewarding miners with tokens can stay in `ColonyNetworkMining` but reputation rewards can likely be done here.","created_at":"2018-11-08T18:20:27Z","updated_at":"2018-11-08T18:22:00Z","html_url":"https://github.com/JoinColony/colonyNetwork/pull/399#discussion_r232007646","pull_request_url":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls/399","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls/comments/232007646"},"html":{"href":"https://github.com/JoinColony/colonyNetwork/pull/399#discussion_r232007646"},"pull_request":{"href":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls/399"}},"in_reply_to_id":232006814},"pull_request":{"url":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls/399","id":226275555,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2Mjc1NTU1","html_url":"https://github.com/JoinColony/colonyNetwork/pull/399","diff_url":"https://github.com/JoinColony/colonyNetwork/pull/399.diff","patch_url":"https://github.com/JoinColony/colonyNetwork/pull/399.patch","issue_url":"https://api.github.com/repos/JoinColony/colonyNetwork/issues/399","number":399,"state":"open","locked":false,"title":"Miner variable rewards I","user":{"login":"kronosapiens","id":1874062,"node_id":"MDQ6VXNlcjE4NzQwNjI=","avatar_url":"https://avatars1.githubusercontent.com/u/1874062?v=4","gravatar_id":"","url":"https://api.github.com/users/kronosapiens","html_url":"https://github.com/kronosapiens","followers_url":"https://api.github.com/users/kronosapiens/followers","following_url":"https://api.github.com/users/kronosapiens/following{/other_user}","gists_url":"https://api.github.com/users/kronosapiens/gists{/gist_id}","starred_url":"https://api.github.com/users/kronosapiens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kronosapiens/subscriptions","organizations_url":"https://api.github.com/users/kronosapiens/orgs","repos_url":"https://api.github.com/users/kronosapiens/repos","events_url":"https://api.github.com/users/kronosapiens/events{/privacy}","received_events_url":"https://api.github.com/users/kronosapiens/received_events","type":"User","site_admin":false},"body":"<!--- Related item(s) from the GitHub Issue tracker, closing the completed items via this PR -->\r\nPartially addresses #164 \r\n\r\n<!--- Summary of changes including design decisions -->\r\n\r\n- Variable miner rewards as per WP sec 7.8 equations 3 & 4\r\n- Token staking timestamp updates as average of existing and new stake.\r\n- Currently total reward is **fixed** at 1200 CLNY.\r\n","created_at":"2018-10-27T07:15:08Z","updated_at":"2018-11-08T18:22:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7cc2b1c20f06db8117d271f6903ee4b42313340","assignee":{"login":"kronosapiens","id":1874062,"node_id":"MDQ6VXNlcjE4NzQwNjI=","avatar_url":"https://avatars1.githubusercontent.com/u/1874062?v=4","gravatar_id":"","url":"https://api.github.com/users/kronosapiens","html_url":"https://github.com/kronosapiens","followers_url":"https://api.github.com/users/kronosapiens/followers","following_url":"https://api.github.com/users/kronosapiens/following{/other_user}","gists_url":"https://api.github.com/users/kronosapiens/gists{/gist_id}","starred_url":"https://api.github.com/users/kronosapiens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kronosapiens/subscriptions","organizations_url":"https://api.github.com/users/kronosapiens/orgs","repos_url":"https://api.github.com/users/kronosapiens/repos","events_url":"https://api.github.com/users/kronosapiens/events{/privacy}","received_events_url":"https://api.github.com/users/kronosapiens/received_events","type":"User","site_admin":false},"assignees":[{"login":"kronosapiens","id":1874062,"node_id":"MDQ6VXNlcjE4NzQwNjI=","avatar_url":"https://avatars1.githubusercontent.com/u/1874062?v=4","gravatar_id":"","url":"https://api.github.com/users/kronosapiens","html_url":"https://github.com/kronosapiens","followers_url":"https://api.github.com/users/kronosapiens/followers","following_url":"https://api.github.com/users/kronosapiens/following{/other_user}","gists_url":"https://api.github.com/users/kronosapiens/gists{/gist_id}","starred_url":"https://api.github.com/users/kronosapiens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kronosapiens/subscriptions","organizations_url":"https://api.github.com/users/kronosapiens/orgs","repos_url":"https://api.github.com/users/kronosapiens/repos","events_url":"https://api.github.com/users/kronosapiens/events{/privacy}","received_events_url":"https://api.github.com/users/kronosapiens/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"area","id":311812,"node_id":"MDQ6VXNlcjMxMTgxMg==","avatar_url":"https://avatars3.githubusercontent.com/u/311812?v=4","gravatar_id":"","url":"https://api.github.com/users/area","html_url":"https://github.com/area","followers_url":"https://api.github.com/users/area/followers","following_url":"https://api.github.com/users/area/following{/other_user}","gists_url":"https://api.github.com/users/area/gists{/gist_id}","starred_url":"https://api.github.com/users/area/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/area/subscriptions","organizations_url":"https://api.github.com/users/area/orgs","repos_url":"https://api.github.com/users/area/repos","events_url":"https://api.github.com/users/area/events{/privacy}","received_events_url":"https://api.github.com/users/area/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":961063666,"node_id":"MDU6TGFiZWw5NjEwNjM2NjY=","url":"https://api.github.com/repos/JoinColony/colonyNetwork/labels/under-review","name":"under-review","color":"b60205","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls/399/commits","review_comments_url":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls/399/comments","review_comment_url":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JoinColony/colonyNetwork/issues/399/comments","statuses_url":"https://api.github.com/repos/JoinColony/colonyNetwork/statuses/adac96b8a824648d50b459850c09d0f1454928a4","head":{"label":"JoinColony:feature/miner-rewards","ref":"feature/miner-rewards","sha":"adac96b8a824648d50b459850c09d0f1454928a4","user":{"login":"JoinColony","id":7784398,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3ODQzOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/7784398?v=4","gravatar_id":"","url":"https://api.github.com/users/JoinColony","html_url":"https://github.com/JoinColony","followers_url":"https://api.github.com/users/JoinColony/followers","following_url":"https://api.github.com/users/JoinColony/following{/other_user}","gists_url":"https://api.github.com/users/JoinColony/gists{/gist_id}","starred_url":"https://api.github.com/users/JoinColony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoinColony/subscriptions","organizations_url":"https://api.github.com/users/JoinColony/orgs","repos_url":"https://api.github.com/users/JoinColony/repos","events_url":"https://api.github.com/users/JoinColony/events{/privacy}","received_events_url":"https://api.github.com/users/JoinColony/received_events","type":"Organization","site_admin":false},"repo":{"id":89702863,"node_id":"MDEwOlJlcG9zaXRvcnk4OTcwMjg2Mw==","name":"colonyNetwork","full_name":"JoinColony/colonyNetwork","private":false,"owner":{"login":"JoinColony","id":7784398,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3ODQzOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/7784398?v=4","gravatar_id":"","url":"https://api.github.com/users/JoinColony","html_url":"https://github.com/JoinColony","followers_url":"https://api.github.com/users/JoinColony/followers","following_url":"https://api.github.com/users/JoinColony/following{/other_user}","gists_url":"https://api.github.com/users/JoinColony/gists{/gist_id}","starred_url":"https://api.github.com/users/JoinColony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoinColony/subscriptions","organizations_url":"https://api.github.com/users/JoinColony/orgs","repos_url":"https://api.github.com/users/JoinColony/repos","events_url":"https://api.github.com/users/JoinColony/events{/privacy}","received_events_url":"https://api.github.com/users/JoinColony/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/JoinColony/colonyNetwork","description":"Colony Network smart contracts","fork":false,"url":"https://api.github.com/repos/JoinColony/colonyNetwork","forks_url":"https://api.github.com/repos/JoinColony/colonyNetwork/forks","keys_url":"https://api.github.com/repos/JoinColony/colonyNetwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JoinColony/colonyNetwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JoinColony/colonyNetwork/teams","hooks_url":"https://api.github.com/repos/JoinColony/colonyNetwork/hooks","issue_events_url":"https://api.github.com/repos/JoinColony/colonyNetwork/issues/events{/number}","events_url":"https://api.github.com/repos/JoinColony/colonyNetwork/events","assignees_url":"https://api.github.com/repos/JoinColony/colonyNetwork/assignees{/user}","branches_url":"https://api.github.com/repos/JoinColony/colonyNetwork/branches{/branch}","tags_url":"https://api.github.com/repos/JoinColony/colonyNetwork/tags","blobs_url":"https://api.github.com/repos/JoinColony/colonyNetwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JoinColony/colonyNetwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JoinColony/colonyNetwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/JoinColony/colonyNetwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JoinColony/colonyNetwork/statuses/{sha}","languages_url":"https://api.github.com/repos/JoinColony/colonyNetwork/languages","stargazers_url":"https://api.github.com/repos/JoinColony/colonyNetwork/stargazers","contributors_url":"https://api.github.com/repos/JoinColony/colonyNetwork/contributors","subscribers_url":"https://api.github.com/repos/JoinColony/colonyNetwork/subscribers","subscription_url":"https://api.github.com/repos/JoinColony/colonyNetwork/subscription","commits_url":"https://api.github.com/repos/JoinColony/colonyNetwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/JoinColony/colonyNetwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/JoinColony/colonyNetwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/JoinColony/colonyNetwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/JoinColony/colonyNetwork/contents/{+path}","compare_url":"https://api.github.com/repos/JoinColony/colonyNetwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JoinColony/colonyNetwork/merges","archive_url":"https://api.github.com/repos/JoinColony/colonyNetwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JoinColony/colonyNetwork/downloads","issues_url":"https://api.github.com/repos/JoinColony/colonyNetwork/issues{/number}","pulls_url":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls{/number}","milestones_url":"https://api.github.com/repos/JoinColony/colonyNetwork/milestones{/number}","notifications_url":"https://api.github.com/repos/JoinColony/colonyNetwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JoinColony/colonyNetwork/labels{/name}","releases_url":"https://api.github.com/repos/JoinColony/colonyNetwork/releases{/id}","deployments_url":"https://api.github.com/repos/JoinColony/colonyNetwork/deployments","created_at":"2017-04-28T12:11:32Z","updated_at":"2018-11-05T23:24:55Z","pushed_at":"2018-11-08T18:03:11Z","git_url":"git://github.com/JoinColony/colonyNetwork.git","ssh_url":"git@github.com:JoinColony/colonyNetwork.git","clone_url":"https://github.com/JoinColony/colonyNetwork.git","svn_url":"https://github.com/JoinColony/colonyNetwork","homepage":"https://colony.io/","size":4227,"stargazers_count":267,"watchers_count":267,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"archived":false,"open_issues_count":82,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":44,"open_issues":82,"watchers":267,"default_branch":"develop"}},"base":{"label":"JoinColony:develop","ref":"develop","sha":"70de186c5bc5ee1adac1469a35311c7abce98201","user":{"login":"JoinColony","id":7784398,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3ODQzOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/7784398?v=4","gravatar_id":"","url":"https://api.github.com/users/JoinColony","html_url":"https://github.com/JoinColony","followers_url":"https://api.github.com/users/JoinColony/followers","following_url":"https://api.github.com/users/JoinColony/following{/other_user}","gists_url":"https://api.github.com/users/JoinColony/gists{/gist_id}","starred_url":"https://api.github.com/users/JoinColony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoinColony/subscriptions","organizations_url":"https://api.github.com/users/JoinColony/orgs","repos_url":"https://api.github.com/users/JoinColony/repos","events_url":"https://api.github.com/users/JoinColony/events{/privacy}","received_events_url":"https://api.github.com/users/JoinColony/received_events","type":"Organization","site_admin":false},"repo":{"id":89702863,"node_id":"MDEwOlJlcG9zaXRvcnk4OTcwMjg2Mw==","name":"colonyNetwork","full_name":"JoinColony/colonyNetwork","private":false,"owner":{"login":"JoinColony","id":7784398,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3ODQzOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/7784398?v=4","gravatar_id":"","url":"https://api.github.com/users/JoinColony","html_url":"https://github.com/JoinColony","followers_url":"https://api.github.com/users/JoinColony/followers","following_url":"https://api.github.com/users/JoinColony/following{/other_user}","gists_url":"https://api.github.com/users/JoinColony/gists{/gist_id}","starred_url":"https://api.github.com/users/JoinColony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoinColony/subscriptions","organizations_url":"https://api.github.com/users/JoinColony/orgs","repos_url":"https://api.github.com/users/JoinColony/repos","events_url":"https://api.github.com/users/JoinColony/events{/privacy}","received_events_url":"https://api.github.com/users/JoinColony/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/JoinColony/colonyNetwork","description":"Colony Network smart contracts","fork":false,"url":"https://api.github.com/repos/JoinColony/colonyNetwork","forks_url":"https://api.github.com/repos/JoinColony/colonyNetwork/forks","keys_url":"https://api.github.com/repos/JoinColony/colonyNetwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JoinColony/colonyNetwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JoinColony/colonyNetwork/teams","hooks_url":"https://api.github.com/repos/JoinColony/colonyNetwork/hooks","issue_events_url":"https://api.github.com/repos/JoinColony/colonyNetwork/issues/events{/number}","events_url":"https://api.github.com/repos/JoinColony/colonyNetwork/events","assignees_url":"https://api.github.com/repos/JoinColony/colonyNetwork/assignees{/user}","branches_url":"https://api.github.com/repos/JoinColony/colonyNetwork/branches{/branch}","tags_url":"https://api.github.com/repos/JoinColony/colonyNetwork/tags","blobs_url":"https://api.github.com/repos/JoinColony/colonyNetwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JoinColony/colonyNetwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JoinColony/colonyNetwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/JoinColony/colonyNetwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JoinColony/colonyNetwork/statuses/{sha}","languages_url":"https://api.github.com/repos/JoinColony/colonyNetwork/languages","stargazers_url":"https://api.github.com/repos/JoinColony/colonyNetwork/stargazers","contributors_url":"https://api.github.com/repos/JoinColony/colonyNetwork/contributors","subscribers_url":"https://api.github.com/repos/JoinColony/colonyNetwork/subscribers","subscription_url":"https://api.github.com/repos/JoinColony/colonyNetwork/subscription","commits_url":"https://api.github.com/repos/JoinColony/colonyNetwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/JoinColony/colonyNetwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/JoinColony/colonyNetwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/JoinColony/colonyNetwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/JoinColony/colonyNetwork/contents/{+path}","compare_url":"https://api.github.com/repos/JoinColony/colonyNetwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JoinColony/colonyNetwork/merges","archive_url":"https://api.github.com/repos/JoinColony/colonyNetwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JoinColony/colonyNetwork/downloads","issues_url":"https://api.github.com/repos/JoinColony/colonyNetwork/issues{/number}","pulls_url":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls{/number}","milestones_url":"https://api.github.com/repos/JoinColony/colonyNetwork/milestones{/number}","notifications_url":"https://api.github.com/repos/JoinColony/colonyNetwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JoinColony/colonyNetwork/labels{/name}","releases_url":"https://api.github.com/repos/JoinColony/colonyNetwork/releases{/id}","deployments_url":"https://api.github.com/repos/JoinColony/colonyNetwork/deployments","created_at":"2017-04-28T12:11:32Z","updated_at":"2018-11-05T23:24:55Z","pushed_at":"2018-11-08T18:03:11Z","git_url":"git://github.com/JoinColony/colonyNetwork.git","ssh_url":"git@github.com:JoinColony/colonyNetwork.git","clone_url":"https://github.com/JoinColony/colonyNetwork.git","svn_url":"https://github.com/JoinColony/colonyNetwork","homepage":"https://colony.io/","size":4227,"stargazers_count":267,"watchers_count":267,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"archived":false,"open_issues_count":82,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":44,"open_issues":82,"watchers":267,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls/399"},"html":{"href":"https://github.com/JoinColony/colonyNetwork/pull/399"},"issue":{"href":"https://api.github.com/repos/JoinColony/colonyNetwork/issues/399"},"comments":{"href":"https://api.github.com/repos/JoinColony/colonyNetwork/issues/399/comments"},"review_comments":{"href":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls/399/comments"},"review_comment":{"href":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JoinColony/colonyNetwork/pulls/399/commits"},"statuses":{"href":"https://api.github.com/repos/JoinColony/colonyNetwork/statuses/adac96b8a824648d50b459850c09d0f1454928a4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"elenadimitrova"}}