{"action":"created","issue":{"url":"https://api.github.com/repos/kleros/kleros-juror-front/issues/152","repository_url":"https://api.github.com/repos/kleros/kleros-juror-front","labels_url":"https://api.github.com/repos/kleros/kleros-juror-front/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/kleros/kleros-juror-front/issues/152/comments","events_url":"https://api.github.com/repos/kleros/kleros-juror-front/issues/152/events","html_url":"https://github.com/kleros/kleros-juror-front/pull/152","id":376876810,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3OTg4NDY2","number":152,"title":"feat(bonding-curve): allow users to buy and sell PNKs  ","user":{"login":"yushih","id":1028789,"node_id":"MDQ6VXNlcjEwMjg3ODk=","avatar_url":"https://avatars2.githubusercontent.com/u/1028789?v=4","gravatar_id":"","url":"https://api.github.com/users/yushih","html_url":"https://github.com/yushih","followers_url":"https://api.github.com/users/yushih/followers","following_url":"https://api.github.com/users/yushih/following{/other_user}","gists_url":"https://api.github.com/users/yushih/gists{/gist_id}","starred_url":"https://api.github.com/users/yushih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yushih/subscriptions","organizations_url":"https://api.github.com/users/yushih/orgs","repos_url":"https://api.github.com/users/yushih/repos","events_url":"https://api.github.com/users/yushih/events{/privacy}","received_events_url":"https://api.github.com/users/yushih/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-02T16:16:23Z","updated_at":"2018-11-24T15:01:51Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/kleros/kleros-juror-front/pulls/152","html_url":"https://github.com/kleros/kleros-juror-front/pull/152","diff_url":"https://github.com/kleros/kleros-juror-front/pull/152.diff","patch_url":"https://github.com/kleros/kleros-juror-front/pull/152.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/kleros/kleros-juror-front/issues/comments/441373901","html_url":"https://github.com/kleros/kleros-juror-front/pull/152#issuecomment-441373901","issue_url":"https://api.github.com/repos/kleros/kleros-juror-front/issues/152","id":441373901,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTM3MzkwMQ==","user":{"login":"epiqueras","id":19157096,"node_id":"MDQ6VXNlcjE5MTU3MDk2","avatar_url":"https://avatars2.githubusercontent.com/u/19157096?v=4","gravatar_id":"","url":"https://api.github.com/users/epiqueras","html_url":"https://github.com/epiqueras","followers_url":"https://api.github.com/users/epiqueras/followers","following_url":"https://api.github.com/users/epiqueras/following{/other_user}","gists_url":"https://api.github.com/users/epiqueras/gists{/gist_id}","starred_url":"https://api.github.com/users/epiqueras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epiqueras/subscriptions","organizations_url":"https://api.github.com/users/epiqueras/orgs","repos_url":"https://api.github.com/users/epiqueras/repos","events_url":"https://api.github.com/users/epiqueras/events{/privacy}","received_events_url":"https://api.github.com/users/epiqueras/received_events","type":"User","site_admin":false},"created_at":"2018-11-24T15:01:51Z","updated_at":"2018-11-24T15:01:51Z","author_association":"MEMBER","body":"Number.toFixed\nOn Sat, Nov 24, 2018 at 4:00 PM yushih <notifications@github.com> wrote:\n\n> *@yushih* commented on this pull request.\n> ------------------------------\n>\n> In src/containers/tokens/components/bonding-curve-form/index.js\n> <https://github.com/kleros/kleros-juror-front/pull/152#discussion_r236044919>\n> :\n>\n> > +}\n> +\n> +/**\n> + * Round number to 4 significant figures.\n> + * @param {string} n - Input number.\n> + * @returns {string} - Rounded number with at least 4 significant figures.\n> + */\n> +function round(n) {\n> +  // Pad the number so it has at least 4 significant figures.\n> +  if (n.indexOf('.') === -1) n += '.'\n> +\n> +  n += '0000'\n> +\n> +  var count = 0\n> +  var dot = false\n> +  for (var i = 0; i < n.length; i++) {\n>\n> What I need is to round the number so that it has 4 significant figures,\n> not 4 decimal places.\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/kleros/kleros-juror-front/pull/152#discussion_r236044919>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ASRQaGUDrr2yCyQAIlMxh_coDpBTzTJTks5uyV7vgaJpZM4YL8xp>\n> .\n>\n"}}
{"actor":{"display_login":"epiqueras"}}