{"action":"created","comment":{"url":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls/comments/172431864","pull_request_review_id":101443604,"id":172431864,"diff_hunk":"@@ -2,98 +2,31 @@ pragma solidity ^0.4.20;\n \n contract ponziGame {\n \n-    address private boss;\n-\n-    mapping(address => uint) public investors;\n-\n-    function ponziGame () public {\n-        boss = msg.sender;\n-    }\n \n-    function investByTransfer() public payable {\n-        require(msg.value >= 100 wei);\n-        investors[msg.sender] += msg.value;\n-    }    \n-\n-    function getPaidByFactor(uint256 amount) public {\n-           \n-    }\n-\n-    function getPaidByOrder() public {\n-        \n+    struct Investments {\n+        address investor;\n+        uint amount;\n     }\n-\n-    function rankedOnTotalInvestment() public {        \n-        \n-    }\n-\n-    function vipInvestor() public {\n-        \n-    }\n-\n-    function investmentFee() public {        \n-        \n-    }\n-\n-    function feeOfEveryInvestment() public {\n-\n-    }\n-\n-    function feePaidRandomly() public {\n-        \n-    }\n-\n     \n-    function checkingTransferError() public {\n-\n-    }\n-\n-    function modifyContractParameter() public {\n-\n-    }\n-\n-    function checkingTotalInvestment() public {\n-\n-    }\n+    address private boss;\n+    uint256 top = 0;\n     \n-    function readCurrentBalance() public returns (uint256) {\n-        return this.balance;\n-    }\n-\n-    function readTotalInvestment() public {\n-\n-    }\n-\n-    function readPayouts() public {\n+    Investments[] investment;","path":"contracts/PonziGame.sol","position":72,"original_position":72,"commit_id":"297af7b8da3c7e51866deb86b32c34e8eeff4588","original_commit_id":"297af7b8da3c7e51866deb86b32c34e8eeff4588","user":{"login":"levon-hayrapetyan","id":33868377,"avatar_url":"https://avatars3.githubusercontent.com/u/33868377?v=4","gravatar_id":"","url":"https://api.github.com/users/levon-hayrapetyan","html_url":"https://github.com/levon-hayrapetyan","followers_url":"https://api.github.com/users/levon-hayrapetyan/followers","following_url":"https://api.github.com/users/levon-hayrapetyan/following{/other_user}","gists_url":"https://api.github.com/users/levon-hayrapetyan/gists{/gist_id}","starred_url":"https://api.github.com/users/levon-hayrapetyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levon-hayrapetyan/subscriptions","organizations_url":"https://api.github.com/users/levon-hayrapetyan/orgs","repos_url":"https://api.github.com/users/levon-hayrapetyan/repos","events_url":"https://api.github.com/users/levon-hayrapetyan/events{/privacy}","received_events_url":"https://api.github.com/users/levon-hayrapetyan/received_events","type":"User","site_admin":false},"body":"the array represents multiple investments. Please consider naming it investment**s**.","created_at":"2018-03-06T07:43:49Z","updated_at":"2018-03-06T07:47:56Z","html_url":"https://github.com/arturtigranyan/PonziGame/pull/2#discussion_r172431864","pull_request_url":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls/comments/172431864"},"html":{"href":"https://github.com/arturtigranyan/PonziGame/pull/2#discussion_r172431864"},"pull_request":{"href":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls/2","id":172836932,"html_url":"https://github.com/arturtigranyan/PonziGame/pull/2","diff_url":"https://github.com/arturtigranyan/PonziGame/pull/2.diff","patch_url":"https://github.com/arturtigranyan/PonziGame/pull/2.patch","issue_url":"https://api.github.com/repos/arturtigranyan/PonziGame/issues/2","number":2,"state":"open","locked":false,"title":"master-ponzi-getPeyout","user":{"login":"arturtigranyan","id":7465812,"avatar_url":"https://avatars2.githubusercontent.com/u/7465812?v=4","gravatar_id":"","url":"https://api.github.com/users/arturtigranyan","html_url":"https://github.com/arturtigranyan","followers_url":"https://api.github.com/users/arturtigranyan/followers","following_url":"https://api.github.com/users/arturtigranyan/following{/other_user}","gists_url":"https://api.github.com/users/arturtigranyan/gists{/gist_id}","starred_url":"https://api.github.com/users/arturtigranyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arturtigranyan/subscriptions","organizations_url":"https://api.github.com/users/arturtigranyan/orgs","repos_url":"https://api.github.com/users/arturtigranyan/repos","events_url":"https://api.github.com/users/arturtigranyan/events{/privacy}","received_events_url":"https://api.github.com/users/arturtigranyan/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-05T11:08:41Z","updated_at":"2018-03-06T07:47:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a205fec053f3a0a7209cb7ba35cc026830776200","assignee":null,"assignees":[],"requested_reviewers":[{"login":"martikyan","id":22702504,"avatar_url":"https://avatars1.githubusercontent.com/u/22702504?v=4","gravatar_id":"","url":"https://api.github.com/users/martikyan","html_url":"https://github.com/martikyan","followers_url":"https://api.github.com/users/martikyan/followers","following_url":"https://api.github.com/users/martikyan/following{/other_user}","gists_url":"https://api.github.com/users/martikyan/gists{/gist_id}","starred_url":"https://api.github.com/users/martikyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martikyan/subscriptions","organizations_url":"https://api.github.com/users/martikyan/orgs","repos_url":"https://api.github.com/users/martikyan/repos","events_url":"https://api.github.com/users/martikyan/events{/privacy}","received_events_url":"https://api.github.com/users/martikyan/received_events","type":"User","site_admin":false},{"login":"vlulukyan","id":24414000,"avatar_url":"https://avatars2.githubusercontent.com/u/24414000?v=4","gravatar_id":"","url":"https://api.github.com/users/vlulukyan","html_url":"https://github.com/vlulukyan","followers_url":"https://api.github.com/users/vlulukyan/followers","following_url":"https://api.github.com/users/vlulukyan/following{/other_user}","gists_url":"https://api.github.com/users/vlulukyan/gists{/gist_id}","starred_url":"https://api.github.com/users/vlulukyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlulukyan/subscriptions","organizations_url":"https://api.github.com/users/vlulukyan/orgs","repos_url":"https://api.github.com/users/vlulukyan/repos","events_url":"https://api.github.com/users/vlulukyan/events{/privacy}","received_events_url":"https://api.github.com/users/vlulukyan/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls/2/commits","review_comments_url":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls/2/comments","review_comment_url":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arturtigranyan/PonziGame/issues/2/comments","statuses_url":"https://api.github.com/repos/arturtigranyan/PonziGame/statuses/297af7b8da3c7e51866deb86b32c34e8eeff4588","head":{"label":"arturtigranyan:master-ponzi-getPeyout","ref":"master-ponzi-getPeyout","sha":"297af7b8da3c7e51866deb86b32c34e8eeff4588","user":{"login":"arturtigranyan","id":7465812,"avatar_url":"https://avatars2.githubusercontent.com/u/7465812?v=4","gravatar_id":"","url":"https://api.github.com/users/arturtigranyan","html_url":"https://github.com/arturtigranyan","followers_url":"https://api.github.com/users/arturtigranyan/followers","following_url":"https://api.github.com/users/arturtigranyan/following{/other_user}","gists_url":"https://api.github.com/users/arturtigranyan/gists{/gist_id}","starred_url":"https://api.github.com/users/arturtigranyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arturtigranyan/subscriptions","organizations_url":"https://api.github.com/users/arturtigranyan/orgs","repos_url":"https://api.github.com/users/arturtigranyan/repos","events_url":"https://api.github.com/users/arturtigranyan/events{/privacy}","received_events_url":"https://api.github.com/users/arturtigranyan/received_events","type":"User","site_admin":false},"repo":{"id":123263142,"name":"PonziGame","full_name":"arturtigranyan/PonziGame","owner":{"login":"arturtigranyan","id":7465812,"avatar_url":"https://avatars2.githubusercontent.com/u/7465812?v=4","gravatar_id":"","url":"https://api.github.com/users/arturtigranyan","html_url":"https://github.com/arturtigranyan","followers_url":"https://api.github.com/users/arturtigranyan/followers","following_url":"https://api.github.com/users/arturtigranyan/following{/other_user}","gists_url":"https://api.github.com/users/arturtigranyan/gists{/gist_id}","starred_url":"https://api.github.com/users/arturtigranyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arturtigranyan/subscriptions","organizations_url":"https://api.github.com/users/arturtigranyan/orgs","repos_url":"https://api.github.com/users/arturtigranyan/repos","events_url":"https://api.github.com/users/arturtigranyan/events{/privacy}","received_events_url":"https://api.github.com/users/arturtigranyan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arturtigranyan/PonziGame","description":null,"fork":false,"url":"https://api.github.com/repos/arturtigranyan/PonziGame","forks_url":"https://api.github.com/repos/arturtigranyan/PonziGame/forks","keys_url":"https://api.github.com/repos/arturtigranyan/PonziGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arturtigranyan/PonziGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arturtigranyan/PonziGame/teams","hooks_url":"https://api.github.com/repos/arturtigranyan/PonziGame/hooks","issue_events_url":"https://api.github.com/repos/arturtigranyan/PonziGame/issues/events{/number}","events_url":"https://api.github.com/repos/arturtigranyan/PonziGame/events","assignees_url":"https://api.github.com/repos/arturtigranyan/PonziGame/assignees{/user}","branches_url":"https://api.github.com/repos/arturtigranyan/PonziGame/branches{/branch}","tags_url":"https://api.github.com/repos/arturtigranyan/PonziGame/tags","blobs_url":"https://api.github.com/repos/arturtigranyan/PonziGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arturtigranyan/PonziGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arturtigranyan/PonziGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/arturtigranyan/PonziGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arturtigranyan/PonziGame/statuses/{sha}","languages_url":"https://api.github.com/repos/arturtigranyan/PonziGame/languages","stargazers_url":"https://api.github.com/repos/arturtigranyan/PonziGame/stargazers","contributors_url":"https://api.github.com/repos/arturtigranyan/PonziGame/contributors","subscribers_url":"https://api.github.com/repos/arturtigranyan/PonziGame/subscribers","subscription_url":"https://api.github.com/repos/arturtigranyan/PonziGame/subscription","commits_url":"https://api.github.com/repos/arturtigranyan/PonziGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/arturtigranyan/PonziGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/arturtigranyan/PonziGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/arturtigranyan/PonziGame/issues/comments{/number}","contents_url":"https://api.github.com/repos/arturtigranyan/PonziGame/contents/{+path}","compare_url":"https://api.github.com/repos/arturtigranyan/PonziGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arturtigranyan/PonziGame/merges","archive_url":"https://api.github.com/repos/arturtigranyan/PonziGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arturtigranyan/PonziGame/downloads","issues_url":"https://api.github.com/repos/arturtigranyan/PonziGame/issues{/number}","pulls_url":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls{/number}","milestones_url":"https://api.github.com/repos/arturtigranyan/PonziGame/milestones{/number}","notifications_url":"https://api.github.com/repos/arturtigranyan/PonziGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arturtigranyan/PonziGame/labels{/name}","releases_url":"https://api.github.com/repos/arturtigranyan/PonziGame/releases{/id}","deployments_url":"https://api.github.com/repos/arturtigranyan/PonziGame/deployments","created_at":"2018-02-28T09:38:23Z","updated_at":"2018-02-28T14:17:30Z","pushed_at":"2018-03-05T12:40:02Z","git_url":"git://github.com/arturtigranyan/PonziGame.git","ssh_url":"git@github.com:arturtigranyan/PonziGame.git","clone_url":"https://github.com/arturtigranyan/PonziGame.git","svn_url":"https://github.com/arturtigranyan/PonziGame","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"arturtigranyan:master","ref":"master","sha":"8cc0557613183f18bba70c89c8947232ebc11dfd","user":{"login":"arturtigranyan","id":7465812,"avatar_url":"https://avatars2.githubusercontent.com/u/7465812?v=4","gravatar_id":"","url":"https://api.github.com/users/arturtigranyan","html_url":"https://github.com/arturtigranyan","followers_url":"https://api.github.com/users/arturtigranyan/followers","following_url":"https://api.github.com/users/arturtigranyan/following{/other_user}","gists_url":"https://api.github.com/users/arturtigranyan/gists{/gist_id}","starred_url":"https://api.github.com/users/arturtigranyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arturtigranyan/subscriptions","organizations_url":"https://api.github.com/users/arturtigranyan/orgs","repos_url":"https://api.github.com/users/arturtigranyan/repos","events_url":"https://api.github.com/users/arturtigranyan/events{/privacy}","received_events_url":"https://api.github.com/users/arturtigranyan/received_events","type":"User","site_admin":false},"repo":{"id":123263142,"name":"PonziGame","full_name":"arturtigranyan/PonziGame","owner":{"login":"arturtigranyan","id":7465812,"avatar_url":"https://avatars2.githubusercontent.com/u/7465812?v=4","gravatar_id":"","url":"https://api.github.com/users/arturtigranyan","html_url":"https://github.com/arturtigranyan","followers_url":"https://api.github.com/users/arturtigranyan/followers","following_url":"https://api.github.com/users/arturtigranyan/following{/other_user}","gists_url":"https://api.github.com/users/arturtigranyan/gists{/gist_id}","starred_url":"https://api.github.com/users/arturtigranyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arturtigranyan/subscriptions","organizations_url":"https://api.github.com/users/arturtigranyan/orgs","repos_url":"https://api.github.com/users/arturtigranyan/repos","events_url":"https://api.github.com/users/arturtigranyan/events{/privacy}","received_events_url":"https://api.github.com/users/arturtigranyan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arturtigranyan/PonziGame","description":null,"fork":false,"url":"https://api.github.com/repos/arturtigranyan/PonziGame","forks_url":"https://api.github.com/repos/arturtigranyan/PonziGame/forks","keys_url":"https://api.github.com/repos/arturtigranyan/PonziGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arturtigranyan/PonziGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arturtigranyan/PonziGame/teams","hooks_url":"https://api.github.com/repos/arturtigranyan/PonziGame/hooks","issue_events_url":"https://api.github.com/repos/arturtigranyan/PonziGame/issues/events{/number}","events_url":"https://api.github.com/repos/arturtigranyan/PonziGame/events","assignees_url":"https://api.github.com/repos/arturtigranyan/PonziGame/assignees{/user}","branches_url":"https://api.github.com/repos/arturtigranyan/PonziGame/branches{/branch}","tags_url":"https://api.github.com/repos/arturtigranyan/PonziGame/tags","blobs_url":"https://api.github.com/repos/arturtigranyan/PonziGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arturtigranyan/PonziGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arturtigranyan/PonziGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/arturtigranyan/PonziGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arturtigranyan/PonziGame/statuses/{sha}","languages_url":"https://api.github.com/repos/arturtigranyan/PonziGame/languages","stargazers_url":"https://api.github.com/repos/arturtigranyan/PonziGame/stargazers","contributors_url":"https://api.github.com/repos/arturtigranyan/PonziGame/contributors","subscribers_url":"https://api.github.com/repos/arturtigranyan/PonziGame/subscribers","subscription_url":"https://api.github.com/repos/arturtigranyan/PonziGame/subscription","commits_url":"https://api.github.com/repos/arturtigranyan/PonziGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/arturtigranyan/PonziGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/arturtigranyan/PonziGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/arturtigranyan/PonziGame/issues/comments{/number}","contents_url":"https://api.github.com/repos/arturtigranyan/PonziGame/contents/{+path}","compare_url":"https://api.github.com/repos/arturtigranyan/PonziGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arturtigranyan/PonziGame/merges","archive_url":"https://api.github.com/repos/arturtigranyan/PonziGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arturtigranyan/PonziGame/downloads","issues_url":"https://api.github.com/repos/arturtigranyan/PonziGame/issues{/number}","pulls_url":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls{/number}","milestones_url":"https://api.github.com/repos/arturtigranyan/PonziGame/milestones{/number}","notifications_url":"https://api.github.com/repos/arturtigranyan/PonziGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arturtigranyan/PonziGame/labels{/name}","releases_url":"https://api.github.com/repos/arturtigranyan/PonziGame/releases{/id}","deployments_url":"https://api.github.com/repos/arturtigranyan/PonziGame/deployments","created_at":"2018-02-28T09:38:23Z","updated_at":"2018-02-28T14:17:30Z","pushed_at":"2018-03-05T12:40:02Z","git_url":"git://github.com/arturtigranyan/PonziGame.git","ssh_url":"git@github.com:arturtigranyan/PonziGame.git","clone_url":"https://github.com/arturtigranyan/PonziGame.git","svn_url":"https://github.com/arturtigranyan/PonziGame","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls/2"},"html":{"href":"https://github.com/arturtigranyan/PonziGame/pull/2"},"issue":{"href":"https://api.github.com/repos/arturtigranyan/PonziGame/issues/2"},"comments":{"href":"https://api.github.com/repos/arturtigranyan/PonziGame/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arturtigranyan/PonziGame/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/arturtigranyan/PonziGame/statuses/297af7b8da3c7e51866deb86b32c34e8eeff4588"}},"author_association":"OWNER"}}
{"actor":{"display_login":"levon-hayrapetyan"}}