payload: {"action":"created","comment":{"url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls/comments/272146884","pull_request_review_id":222713207,"id":272146884,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3MjE0Njg4NA==","diff_hunk":"@@ -334,6 +318,71 @@ contract TokenSale is FinalizableCrowdsale, Pausable {\n         if (investedStarRefund > 0) starToken.transfer(msg.sender, investedStarRefund);\n     }\n \n+    function verifyTargetRates() internal view {\n+        require(\n+            targetRates.length == targetRatesTimestamps.length,\n+            'Target rates and target rates timestamps should match!'\n+        );\n+\n+        require(targetRates.length > 0, 'Target rates cannot be empty!');\n+        require(\n+            targetRatesTimestamps[0] == startTime,\n+            'First target rate timestamp should match startTime!'\n+        );\n+\n+        for (uint256 i = 0; i < targetRates.length; i++) {\n+            if (i > 0) {\n+                require(\n+                    targetRatesTimestamps[i-1] < targetRatesTimestamps[i],\n+                    'Target rates timestamps should be ordered!'","path":"contracts/TokenSale.sol","position":284,"original_position":284,"commit_id":"05815c4e4283cca0543c34827e06a0ea836322aa","original_commit_id":"05815c4e4283cca0543c34827e06a0ea836322aa","user":{"login":"franzejr","id":868917,"node_id":"MDQ6VXNlcjg2ODkxNw==","avatar_url":"https://avatars2.githubusercontent.com/u/868917?v=4","gravatar_id":"","url":"https://api.github.com/users/franzejr","html_url":"https://github.com/franzejr","followers_url":"https://api.github.com/users/franzejr/followers","following_url":"https://api.github.com/users/franzejr/following{/other_user}","gists_url":"https://api.github.com/users/franzejr/gists{/gist_id}","starred_url":"https://api.github.com/users/franzejr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franzejr/subscriptions","organizations_url":"https://api.github.com/users/franzejr/orgs","repos_url":"https://api.github.com/users/franzejr/repos","events_url":"https://api.github.com/users/franzejr/events{/privacy}","received_events_url":"https://api.github.com/users/franzejr/received_events","type":"User","site_admin":false},"body":"sorted?","created_at":"2019-04-04T12:08:17Z","updated_at":"2019-04-04T12:14:17Z","html_url":"https://github.com/StarbaseCo/starbase-platform-smart-contracts/pull/47#discussion_r272146884","pull_request_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls/47","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls/comments/272146884"},"html":{"href":"https://github.com/StarbaseCo/starbase-platform-smart-contracts/pull/47#discussion_r272146884"},"pull_request":{"href":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls/47","id":267297206,"node_id":"MDExOlB1bGxSZXF1ZXN0MjY3Mjk3MjA2","html_url":"https://github.com/StarbaseCo/starbase-platform-smart-contracts/pull/47","diff_url":"https://github.com/StarbaseCo/starbase-platform-smart-contracts/pull/47.diff","patch_url":"https://github.com/StarbaseCo/starbase-platform-smart-contracts/pull/47.patch","issue_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/issues/47","number":47,"state":"open","locked":false,"title":"Feature/727 target rates for tokensale","user":{"login":"gorgos","id":659390,"node_id":"MDQ6VXNlcjY1OTM5MA==","avatar_url":"https://avatars1.githubusercontent.com/u/659390?v=4","gravatar_id":"","url":"https://api.github.com/users/gorgos","html_url":"https://github.com/gorgos","followers_url":"https://api.github.com/users/gorgos/followers","following_url":"https://api.github.com/users/gorgos/following{/other_user}","gists_url":"https://api.github.com/users/gorgos/gists{/gist_id}","starred_url":"https://api.github.com/users/gorgos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gorgos/subscriptions","organizations_url":"https://api.github.com/users/gorgos/orgs","repos_url":"https://api.github.com/users/gorgos/repos","events_url":"https://api.github.com/users/gorgos/events{/privacy}","received_events_url":"https://api.github.com/users/gorgos/received_events","type":"User","site_admin":false},"body":"https://starbase.atlassian.net/browse/SP-729","created_at":"2019-04-04T05:11:36Z","updated_at":"2019-04-04T12:14:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c68b345f2a104e07ba9ec64e094f0ba56a54a71","assignee":null,"assignees":[],"requested_reviewers":[{"login":"gustavoguimaraes","id":5693188,"node_id":"MDQ6VXNlcjU2OTMxODg=","avatar_url":"https://avatars2.githubusercontent.com/u/5693188?v=4","gravatar_id":"","url":"https://api.github.com/users/gustavoguimaraes","html_url":"https://github.com/gustavoguimaraes","followers_url":"https://api.github.com/users/gustavoguimaraes/followers","following_url":"https://api.github.com/users/gustavoguimaraes/following{/other_user}","gists_url":"https://api.github.com/users/gustavoguimaraes/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavoguimaraes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavoguimaraes/subscriptions","organizations_url":"https://api.github.com/users/gustavoguimaraes/orgs","repos_url":"https://api.github.com/users/gustavoguimaraes/repos","events_url":"https://api.github.com/users/gustavoguimaraes/events{/privacy}","received_events_url":"https://api.github.com/users/gustavoguimaraes/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls/47/commits","review_comments_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls/47/comments","review_comment_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/issues/47/comments","statuses_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/statuses/05815c4e4283cca0543c34827e06a0ea836322aa","head":{"label":"StarbaseCo:feature/727-target-rates-for-tokensale","ref":"feature/727-target-rates-for-tokensale","sha":"05815c4e4283cca0543c34827e06a0ea836322aa","user":{"login":"StarbaseCo","id":22561295,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNTYxMjk1","avatar_url":"https://avatars3.githubusercontent.com/u/22561295?v=4","gravatar_id":"","url":"https://api.github.com/users/StarbaseCo","html_url":"https://github.com/StarbaseCo","followers_url":"https://api.github.com/users/StarbaseCo/followers","following_url":"https://api.github.com/users/StarbaseCo/following{/other_user}","gists_url":"https://api.github.com/users/StarbaseCo/gists{/gist_id}","starred_url":"https://api.github.com/users/StarbaseCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StarbaseCo/subscriptions","organizations_url":"https://api.github.com/users/StarbaseCo/orgs","repos_url":"https://api.github.com/users/StarbaseCo/repos","events_url":"https://api.github.com/users/StarbaseCo/events{/privacy}","received_events_url":"https://api.github.com/users/StarbaseCo/received_events","type":"Organization","site_admin":false},"repo":{"id":121137069,"node_id":"MDEwOlJlcG9zaXRvcnkxMjExMzcwNjk=","name":"starbase-platform-smart-contracts","full_name":"StarbaseCo/starbase-platform-smart-contracts","private":false,"owner":{"login":"StarbaseCo","id":22561295,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNTYxMjk1","avatar_url":"https://avatars3.githubusercontent.com/u/22561295?v=4","gravatar_id":"","url":"https://api.github.com/users/StarbaseCo","html_url":"https://github.com/StarbaseCo","followers_url":"https://api.github.com/users/StarbaseCo/followers","following_url":"https://api.github.com/users/StarbaseCo/following{/other_user}","gists_url":"https://api.github.com/users/StarbaseCo/gists{/gist_id}","starred_url":"https://api.github.com/users/StarbaseCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StarbaseCo/subscriptions","organizations_url":"https://api.github.com/users/StarbaseCo/orgs","repos_url":"https://api.github.com/users/StarbaseCo/repos","events_url":"https://api.github.com/users/StarbaseCo/events{/privacy}","received_events_url":"https://api.github.com/users/StarbaseCo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/StarbaseCo/starbase-platform-smart-contracts","description":"Smart contracts for the Starbase Platform where there will be the fund raise companies on its platform","fork":false,"url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts","forks_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/forks","keys_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/teams","hooks_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/hooks","issue_events_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/issues/events{/number}","events_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/events","assignees_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/assignees{/user}","branches_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/branches{/branch}","tags_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/tags","blobs_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/git/refs{/sha}","trees_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/statuses/{sha}","languages_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/languages","stargazers_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/stargazers","contributors_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/contributors","subscribers_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/subscribers","subscription_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/subscription","commits_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/commits{/sha}","git_commits_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/git/commits{/sha}","comments_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/comments{/number}","issue_comment_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/issues/comments{/number}","contents_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/contents/{+path}","compare_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/merges","archive_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/downloads","issues_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/issues{/number}","pulls_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls{/number}","milestones_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/milestones{/number}","notifications_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/labels{/name}","releases_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/releases{/id}","deployments_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/deployments","created_at":"2018-02-11T15:28:53Z","updated_at":"2019-03-25T14:57:21Z","pushed_at":"2019-04-04T08:10:32Z","git_url":"git://github.com/StarbaseCo/starbase-platform-smart-contracts.git","ssh_url":"git@github.com:StarbaseCo/starbase-platform-smart-contracts.git","clone_url":"https://github.com/StarbaseCo/starbase-platform-smart-contracts.git","svn_url":"https://github.com/StarbaseCo/starbase-platform-smart-contracts","homepage":null,"size":620,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"StarbaseCo:master","ref":"master","sha":"30e98a0e3e9e0bdf272e8fd97f316b06b6743446","user":{"login":"StarbaseCo","id":22561295,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNTYxMjk1","avatar_url":"https://avatars3.githubusercontent.com/u/22561295?v=4","gravatar_id":"","url":"https://api.github.com/users/StarbaseCo","html_url":"https://github.com/StarbaseCo","followers_url":"https://api.github.com/users/StarbaseCo/followers","following_url":"https://api.github.com/users/StarbaseCo/following{/other_user}","gists_url":"https://api.github.com/users/StarbaseCo/gists{/gist_id}","starred_url":"https://api.github.com/users/StarbaseCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StarbaseCo/subscriptions","organizations_url":"https://api.github.com/users/StarbaseCo/orgs","repos_url":"https://api.github.com/users/StarbaseCo/repos","events_url":"https://api.github.com/users/StarbaseCo/events{/privacy}","received_events_url":"https://api.github.com/users/StarbaseCo/received_events","type":"Organization","site_admin":false},"repo":{"id":121137069,"node_id":"MDEwOlJlcG9zaXRvcnkxMjExMzcwNjk=","name":"starbase-platform-smart-contracts","full_name":"StarbaseCo/starbase-platform-smart-contracts","private":false,"owner":{"login":"StarbaseCo","id":22561295,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNTYxMjk1","avatar_url":"https://avatars3.githubusercontent.com/u/22561295?v=4","gravatar_id":"","url":"https://api.github.com/users/StarbaseCo","html_url":"https://github.com/StarbaseCo","followers_url":"https://api.github.com/users/StarbaseCo/followers","following_url":"https://api.github.com/users/StarbaseCo/following{/other_user}","gists_url":"https://api.github.com/users/StarbaseCo/gists{/gist_id}","starred_url":"https://api.github.com/users/StarbaseCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StarbaseCo/subscriptions","organizations_url":"https://api.github.com/users/StarbaseCo/orgs","repos_url":"https://api.github.com/users/StarbaseCo/repos","events_url":"https://api.github.com/users/StarbaseCo/events{/privacy}","received_events_url":"https://api.github.com/users/StarbaseCo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/StarbaseCo/starbase-platform-smart-contracts","description":"Smart contracts for the Starbase Platform where there will be the fund raise companies on its platform","fork":false,"url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts","forks_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/forks","keys_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/teams","hooks_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/hooks","issue_events_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/issues/events{/number}","events_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/events","assignees_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/assignees{/user}","branches_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/branches{/branch}","tags_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/tags","blobs_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/git/refs{/sha}","trees_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/statuses/{sha}","languages_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/languages","stargazers_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/stargazers","contributors_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/contributors","subscribers_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/subscribers","subscription_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/subscription","commits_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/commits{/sha}","git_commits_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/git/commits{/sha}","comments_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/comments{/number}","issue_comment_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/issues/comments{/number}","contents_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/contents/{+path}","compare_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/merges","archive_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/downloads","issues_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/issues{/number}","pulls_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls{/number}","milestones_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/milestones{/number}","notifications_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/labels{/name}","releases_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/releases{/id}","deployments_url":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/deployments","created_at":"2018-02-11T15:28:53Z","updated_at":"2019-03-25T14:57:21Z","pushed_at":"2019-04-04T08:10:32Z","git_url":"git://github.com/StarbaseCo/starbase-platform-smart-contracts.git","ssh_url":"git@github.com:StarbaseCo/starbase-platform-smart-contracts.git","clone_url":"https://github.com/StarbaseCo/starbase-platform-smart-contracts.git","svn_url":"https://github.com/StarbaseCo/starbase-platform-smart-contracts","homepage":null,"size":620,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls/47"},"html":{"href":"https://github.com/StarbaseCo/starbase-platform-smart-contracts/pull/47"},"issue":{"href":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/issues/47"},"comments":{"href":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/StarbaseCo/starbase-platform-smart-contracts/statuses/05815c4e4283cca0543c34827e06a0ea836322aa"}},"author_association":"COLLABORATOR"}}
other: {"actor":{"display_login":"franzejr"}}