{"action":"created","issue":{"url":"https://api.github.com/repos/genghaibo/qb/issues/3","repository_url":"https://api.github.com/repos/genghaibo/qb","labels_url":"https://api.github.com/repos/genghaibo/qb/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/genghaibo/qb/issues/3/comments","events_url":"https://api.github.com/repos/genghaibo/qb/issues/3/events","html_url":"https://github.com/genghaibo/qb/pull/3","id":320558208,"number":3,"title":"Create fqb","user":{"login":"genghaibo","id":36569714,"avatar_url":"https://avatars1.githubusercontent.com/u/36569714?v=4","gravatar_id":"","url":"https://api.github.com/users/genghaibo","html_url":"https://github.com/genghaibo","followers_url":"https://api.github.com/users/genghaibo/followers","following_url":"https://api.github.com/users/genghaibo/following{/other_user}","gists_url":"https://api.github.com/users/genghaibo/gists{/gist_id}","starred_url":"https://api.github.com/users/genghaibo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genghaibo/subscriptions","organizations_url":"https://api.github.com/users/genghaibo/orgs","repos_url":"https://api.github.com/users/genghaibo/repos","events_url":"https://api.github.com/users/genghaibo/events{/privacy}","received_events_url":"https://api.github.com/users/genghaibo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-05-06T02:57:19Z","updated_at":"2018-05-06T05:08:47Z","closed_at":"2018-05-06T05:08:47Z","author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/genghaibo/qb/pulls/3","html_url":"https://github.com/genghaibo/qb/pull/3","diff_url":"https://github.com/genghaibo/qb/pull/3.diff","patch_url":"https://github.com/genghaibo/qb/pull/3.patch"},"body":"What's your read on the SAFE network?Hell, what's your read on Go and Rust?\r\n--\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/genghaibo/qb/issues/comments/386854403","html_url":"https://github.com/genghaibo/qb/pull/3#issuecomment-386854403","issue_url":"https://api.github.com/repos/genghaibo/qb/issues/3","id":386854403,"user":{"login":"genghaibo","id":36569714,"avatar_url":"https://avatars1.githubusercontent.com/u/36569714?v=4","gravatar_id":"","url":"https://api.github.com/users/genghaibo","html_url":"https://github.com/genghaibo","followers_url":"https://api.github.com/users/genghaibo/followers","following_url":"https://api.github.com/users/genghaibo/following{/other_user}","gists_url":"https://api.github.com/users/genghaibo/gists{/gist_id}","starred_url":"https://api.github.com/users/genghaibo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genghaibo/subscriptions","organizations_url":"https://api.github.com/users/genghaibo/orgs","repos_url":"https://api.github.com/users/genghaibo/repos","events_url":"https://api.github.com/users/genghaibo/events{/privacy}","received_events_url":"https://api.github.com/users/genghaibo/received_events","type":"User","site_admin":false},"created_at":"2018-05-06T05:08:47Z","updated_at":"2018-05-06T05:08:47Z","author_association":"OWNER","body":"@@ -1,16 +1,17 @@\r\n #include <map>\r\n #include <exception>\r\n #include <string>\r\n #include <cstdint>\r\n #include <iostream>\r\n #include <math.h>\r\n #include <fc/exception/exception.hpp>\r\n #include \"sensitivity_test.hpp\"\r\n  #include <fc/time.hpp>\r\n  #include <fc/log/logger.hpp>\r\n  /*\r\n - * This file is to plot the diagram between token XYZ and pegged USD with different supply amount: 0.01, 0.1, 0.5, 0.9, 0.99\r\n - *\r\n + * This file is to simulate the bancor algorithm and\r\n + * plot diagram between amount of token XYZ can be bought with stepped-incremental pegged USD to attempt to convert\r\n + * with different supply amount: 10B, 1B, 100M, 10M and fixed connector weight = 0.5\r\n   */\r\n  \r\n  using namespace std;\r\nView    \r\n8  contracts/exchange/weight_sensitivity_test.cpp\r\n @@ -9,7 +9,9 @@\r\n  #include <fc/time.hpp>\r\n  #include <fc/log/logger.hpp>\r\n  /*\r\n - * this file is to test the how does the connector weight changes affect the\r\n + * This file is to simulate the bancor algorithm and\r\n + * plot diagram between amount of token XYZ can be bought with stepped-incremental pegged USD to attempt to convert\r\n + * with different connector weight: 0.01, 0.1, 0.5, 0.9, 0.99 and fixed supply amount = 100000000 (1 billion)\r\n   */\r\n  \r\n  using namespace std;\r\n @@ -179,7 +181,7 @@ void connector_weight_test(exchange_state &origin_state) {\r\n  int main(int argc, char **argv) {\r\n      //  std::cerr << \"root: \" << double(root.numerator())/root.denominator() << \"\\n\";\r\n      exchange_state origin_state;\r\n -    origin_state.supply = 100000000ll;\r\n +    origin_state.supply = ; // 0.1B\r\n      //state.base.weight  = state.total_weight / 2.;\r\n      origin_state.base.balance.amount = 100000000;\r\n      origin_state.base.balance.symbol = \"USD\";\r\n @@ -188,6 +190,4 @@ int main(int argc, char **argv) {\r\n      origin_state.quote.balance.symbol = \"XYZ\";\r\n      print_state(origin_state);\r\n      connector_weight_test(origin_state);\r\n -\r\n -\r\n  } "}}
{"actor":{"display_login":"genghaibo"}}