{"action":"closed","number":65,"pull_request":{"url":"https://api.github.com/repos/livepeer/protocol/pulls/65","id":139338128,"html_url":"https://github.com/livepeer/protocol/pull/65","diff_url":"https://github.com/livepeer/protocol/pull/65.diff","patch_url":"https://github.com/livepeer/protocol/pull/65.patch","issue_url":"https://api.github.com/repos/livepeer/protocol/issues/65","number":65,"state":"closed","locked":false,"title":"Transcoder earns share of reward as a delegator. Fixes #64","user":{"login":"yondonfu","id":5933273,"avatar_url":"https://avatars0.githubusercontent.com/u/5933273?v=4","gravatar_id":"","url":"https://api.github.com/users/yondonfu","html_url":"https://github.com/yondonfu","followers_url":"https://api.github.com/users/yondonfu/followers","following_url":"https://api.github.com/users/yondonfu/following{/other_user}","gists_url":"https://api.github.com/users/yondonfu/gists{/gist_id}","starred_url":"https://api.github.com/users/yondonfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yondonfu/subscriptions","organizations_url":"https://api.github.com/users/yondonfu/orgs","repos_url":"https://api.github.com/users/yondonfu/repos","events_url":"https://api.github.com/users/yondonfu/events{/privacy}","received_events_url":"https://api.github.com/users/yondonfu/received_events","type":"User","site_admin":false},"body":"When a transcoder calls reward, it should receive not only the block reward cut, but also its sahre of the delegator rewards if it is bonded to itself. Calculate transcoder reward share as `(mintedTokens * blockRewardCut / 100)` + `delegatorRewardShare * transcoderBond / transcoderTotalStake` where `delegatorRewardShare = mintedTokens * (100 - blockRewardCut) / 100`.","created_at":"2017-09-05T14:28:06Z","updated_at":"2017-09-05T14:28:12Z","closed_at":"2017-09-05T14:28:12Z","merged_at":null,"merge_commit_sha":"9fddcffb49736630ae87bdafede8632f0141331e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"dob","id":10389,"avatar_url":"https://avatars0.githubusercontent.com/u/10389?v=4","gravatar_id":"","url":"https://api.github.com/users/dob","html_url":"https://github.com/dob","followers_url":"https://api.github.com/users/dob/followers","following_url":"https://api.github.com/users/dob/following{/other_user}","gists_url":"https://api.github.com/users/dob/gists{/gist_id}","starred_url":"https://api.github.com/users/dob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dob/subscriptions","organizations_url":"https://api.github.com/users/dob/orgs","repos_url":"https://api.github.com/users/dob/repos","events_url":"https://api.github.com/users/dob/events{/privacy}","received_events_url":"https://api.github.com/users/dob/received_events","type":"User","site_admin":false},{"login":"ericxtang","id":345743,"avatar_url":"https://avatars0.githubusercontent.com/u/345743?v=4","gravatar_id":"","url":"https://api.github.com/users/ericxtang","html_url":"https://github.com/ericxtang","followers_url":"https://api.github.com/users/ericxtang/followers","following_url":"https://api.github.com/users/ericxtang/following{/other_user}","gists_url":"https://api.github.com/users/ericxtang/gists{/gist_id}","starred_url":"https://api.github.com/users/ericxtang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericxtang/subscriptions","organizations_url":"https://api.github.com/users/ericxtang/orgs","repos_url":"https://api.github.com/users/ericxtang/repos","events_url":"https://api.github.com/users/ericxtang/events{/privacy}","received_events_url":"https://api.github.com/users/ericxtang/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/livepeer/protocol/pulls/65/commits","review_comments_url":"https://api.github.com/repos/livepeer/protocol/pulls/65/comments","review_comment_url":"https://api.github.com/repos/livepeer/protocol/pulls/comments{/number}","comments_url":"https://api.github.com/repos/livepeer/protocol/issues/65/comments","statuses_url":"https://api.github.com/repos/livepeer/protocol/statuses/a2f10a5efafca3646b18985e9b9bdebbf12bea55","head":{"label":"livepeer:yf/transcoder-reward-as-delegator","ref":"yf/transcoder-reward-as-delegator","sha":"a2f10a5efafca3646b18985e9b9bdebbf12bea55","user":{"login":"livepeer","id":25355022,"avatar_url":"https://avatars2.githubusercontent.com/u/25355022?v=4","gravatar_id":"","url":"https://api.github.com/users/livepeer","html_url":"https://github.com/livepeer","followers_url":"https://api.github.com/users/livepeer/followers","following_url":"https://api.github.com/users/livepeer/following{/other_user}","gists_url":"https://api.github.com/users/livepeer/gists{/gist_id}","starred_url":"https://api.github.com/users/livepeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livepeer/subscriptions","organizations_url":"https://api.github.com/users/livepeer/orgs","repos_url":"https://api.github.com/users/livepeer/repos","events_url":"https://api.github.com/users/livepeer/events{/privacy}","received_events_url":"https://api.github.com/users/livepeer/received_events","type":"Organization","site_admin":false},"repo":{"id":89298984,"name":"protocol","full_name":"livepeer/protocol","owner":{"login":"livepeer","id":25355022,"avatar_url":"https://avatars2.githubusercontent.com/u/25355022?v=4","gravatar_id":"","url":"https://api.github.com/users/livepeer","html_url":"https://github.com/livepeer","followers_url":"https://api.github.com/users/livepeer/followers","following_url":"https://api.github.com/users/livepeer/following{/other_user}","gists_url":"https://api.github.com/users/livepeer/gists{/gist_id}","starred_url":"https://api.github.com/users/livepeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livepeer/subscriptions","organizations_url":"https://api.github.com/users/livepeer/orgs","repos_url":"https://api.github.com/users/livepeer/repos","events_url":"https://api.github.com/users/livepeer/events{/privacy}","received_events_url":"https://api.github.com/users/livepeer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/livepeer/protocol","description":"Livepeer protocol","fork":false,"url":"https://api.github.com/repos/livepeer/protocol","forks_url":"https://api.github.com/repos/livepeer/protocol/forks","keys_url":"https://api.github.com/repos/livepeer/protocol/keys{/key_id}","collaborators_url":"https://api.github.com/repos/livepeer/protocol/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/livepeer/protocol/teams","hooks_url":"https://api.github.com/repos/livepeer/protocol/hooks","issue_events_url":"https://api.github.com/repos/livepeer/protocol/issues/events{/number}","events_url":"https://api.github.com/repos/livepeer/protocol/events","assignees_url":"https://api.github.com/repos/livepeer/protocol/assignees{/user}","branches_url":"https://api.github.com/repos/livepeer/protocol/branches{/branch}","tags_url":"https://api.github.com/repos/livepeer/protocol/tags","blobs_url":"https://api.github.com/repos/livepeer/protocol/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/livepeer/protocol/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/livepeer/protocol/git/refs{/sha}","trees_url":"https://api.github.com/repos/livepeer/protocol/git/trees{/sha}","statuses_url":"https://api.github.com/repos/livepeer/protocol/statuses/{sha}","languages_url":"https://api.github.com/repos/livepeer/protocol/languages","stargazers_url":"https://api.github.com/repos/livepeer/protocol/stargazers","contributors_url":"https://api.github.com/repos/livepeer/protocol/contributors","subscribers_url":"https://api.github.com/repos/livepeer/protocol/subscribers","subscription_url":"https://api.github.com/repos/livepeer/protocol/subscription","commits_url":"https://api.github.com/repos/livepeer/protocol/commits{/sha}","git_commits_url":"https://api.github.com/repos/livepeer/protocol/git/commits{/sha}","comments_url":"https://api.github.com/repos/livepeer/protocol/comments{/number}","issue_comment_url":"https://api.github.com/repos/livepeer/protocol/issues/comments{/number}","contents_url":"https://api.github.com/repos/livepeer/protocol/contents/{+path}","compare_url":"https://api.github.com/repos/livepeer/protocol/compare/{base}...{head}","merges_url":"https://api.github.com/repos/livepeer/protocol/merges","archive_url":"https://api.github.com/repos/livepeer/protocol/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/livepeer/protocol/downloads","issues_url":"https://api.github.com/repos/livepeer/protocol/issues{/number}","pulls_url":"https://api.github.com/repos/livepeer/protocol/pulls{/number}","milestones_url":"https://api.github.com/repos/livepeer/protocol/milestones{/number}","notifications_url":"https://api.github.com/repos/livepeer/protocol/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/livepeer/protocol/labels{/name}","releases_url":"https://api.github.com/repos/livepeer/protocol/releases{/id}","deployments_url":"https://api.github.com/repos/livepeer/protocol/deployments","created_at":"2017-04-25T00:22:38Z","updated_at":"2017-08-27T14:36:54Z","pushed_at":"2017-09-05T14:28:07Z","git_url":"git://github.com/livepeer/protocol.git","ssh_url":"git@github.com:livepeer/protocol.git","clone_url":"https://github.com/livepeer/protocol.git","svn_url":"https://github.com/livepeer/protocol","homepage":null,"size":261,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":19,"forks":5,"open_issues":19,"watchers":21,"default_branch":"master"}},"base":{"label":"livepeer:master","ref":"master","sha":"4070196f31916924ffe99941ee2240c43a5904b8","user":{"login":"livepeer","id":25355022,"avatar_url":"https://avatars2.githubusercontent.com/u/25355022?v=4","gravatar_id":"","url":"https://api.github.com/users/livepeer","html_url":"https://github.com/livepeer","followers_url":"https://api.github.com/users/livepeer/followers","following_url":"https://api.github.com/users/livepeer/following{/other_user}","gists_url":"https://api.github.com/users/livepeer/gists{/gist_id}","starred_url":"https://api.github.com/users/livepeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livepeer/subscriptions","organizations_url":"https://api.github.com/users/livepeer/orgs","repos_url":"https://api.github.com/users/livepeer/repos","events_url":"https://api.github.com/users/livepeer/events{/privacy}","received_events_url":"https://api.github.com/users/livepeer/received_events","type":"Organization","site_admin":false},"repo":{"id":89298984,"name":"protocol","full_name":"livepeer/protocol","owner":{"login":"livepeer","id":25355022,"avatar_url":"https://avatars2.githubusercontent.com/u/25355022?v=4","gravatar_id":"","url":"https://api.github.com/users/livepeer","html_url":"https://github.com/livepeer","followers_url":"https://api.github.com/users/livepeer/followers","following_url":"https://api.github.com/users/livepeer/following{/other_user}","gists_url":"https://api.github.com/users/livepeer/gists{/gist_id}","starred_url":"https://api.github.com/users/livepeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livepeer/subscriptions","organizations_url":"https://api.github.com/users/livepeer/orgs","repos_url":"https://api.github.com/users/livepeer/repos","events_url":"https://api.github.com/users/livepeer/events{/privacy}","received_events_url":"https://api.github.com/users/livepeer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/livepeer/protocol","description":"Livepeer protocol","fork":false,"url":"https://api.github.com/repos/livepeer/protocol","forks_url":"https://api.github.com/repos/livepeer/protocol/forks","keys_url":"https://api.github.com/repos/livepeer/protocol/keys{/key_id}","collaborators_url":"https://api.github.com/repos/livepeer/protocol/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/livepeer/protocol/teams","hooks_url":"https://api.github.com/repos/livepeer/protocol/hooks","issue_events_url":"https://api.github.com/repos/livepeer/protocol/issues/events{/number}","events_url":"https://api.github.com/repos/livepeer/protocol/events","assignees_url":"https://api.github.com/repos/livepeer/protocol/assignees{/user}","branches_url":"https://api.github.com/repos/livepeer/protocol/branches{/branch}","tags_url":"https://api.github.com/repos/livepeer/protocol/tags","blobs_url":"https://api.github.com/repos/livepeer/protocol/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/livepeer/protocol/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/livepeer/protocol/git/refs{/sha}","trees_url":"https://api.github.com/repos/livepeer/protocol/git/trees{/sha}","statuses_url":"https://api.github.com/repos/livepeer/protocol/statuses/{sha}","languages_url":"https://api.github.com/repos/livepeer/protocol/languages","stargazers_url":"https://api.github.com/repos/livepeer/protocol/stargazers","contributors_url":"https://api.github.com/repos/livepeer/protocol/contributors","subscribers_url":"https://api.github.com/repos/livepeer/protocol/subscribers","subscription_url":"https://api.github.com/repos/livepeer/protocol/subscription","commits_url":"https://api.github.com/repos/livepeer/protocol/commits{/sha}","git_commits_url":"https://api.github.com/repos/livepeer/protocol/git/commits{/sha}","comments_url":"https://api.github.com/repos/livepeer/protocol/comments{/number}","issue_comment_url":"https://api.github.com/repos/livepeer/protocol/issues/comments{/number}","contents_url":"https://api.github.com/repos/livepeer/protocol/contents/{+path}","compare_url":"https://api.github.com/repos/livepeer/protocol/compare/{base}...{head}","merges_url":"https://api.github.com/repos/livepeer/protocol/merges","archive_url":"https://api.github.com/repos/livepeer/protocol/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/livepeer/protocol/downloads","issues_url":"https://api.github.com/repos/livepeer/protocol/issues{/number}","pulls_url":"https://api.github.com/repos/livepeer/protocol/pulls{/number}","milestones_url":"https://api.github.com/repos/livepeer/protocol/milestones{/number}","notifications_url":"https://api.github.com/repos/livepeer/protocol/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/livepeer/protocol/labels{/name}","releases_url":"https://api.github.com/repos/livepeer/protocol/releases{/id}","deployments_url":"https://api.github.com/repos/livepeer/protocol/deployments","created_at":"2017-04-25T00:22:38Z","updated_at":"2017-08-27T14:36:54Z","pushed_at":"2017-09-05T14:28:07Z","git_url":"git://github.com/livepeer/protocol.git","ssh_url":"git@github.com:livepeer/protocol.git","clone_url":"https://github.com/livepeer/protocol.git","svn_url":"https://github.com/livepeer/protocol","homepage":null,"size":261,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":19,"forks":5,"open_issues":19,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/livepeer/protocol/pulls/65"},"html":{"href":"https://github.com/livepeer/protocol/pull/65"},"issue":{"href":"https://api.github.com/repos/livepeer/protocol/issues/65"},"comments":{"href":"https://api.github.com/repos/livepeer/protocol/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/livepeer/protocol/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/livepeer/protocol/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/livepeer/protocol/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/livepeer/protocol/statuses/a2f10a5efafca3646b18985e9b9bdebbf12bea55"}},"author_association":"COLLABORATOR","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":49,"deletions":3,"changed_files":3}}
{"actor":{"display_login":"yondonfu"}}