GithubHelp home page GithubHelp logo

gravio-net / graviex Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hpyhacking/peatio

19.0 19.0 34.0 7.53 MB

GRAVIEX Exchange - PUBLIC (extremely outdated)

Ruby 40.95% JavaScript 19.06% CoffeeScript 9.48% HTML 22.11% CSS 5.46% Shell 0.15% Python 2.79%

graviex's People

Contributors

ashchan avatar beenhero avatar brossi avatar bzhang443 avatar demuskov avatar everm1nd avatar fenec avatar fsword avatar gitter-badger avatar happypeter avatar hpyhacking avatar jyek avatar kanzure avatar keating avatar lgn21st avatar lifu avatar liushooter avatar panlilu avatar poshboytl avatar summm avatar szhelonkin avatar tomlion avatar trisua avatar weilu avatar xyuwang avatar zhukejun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

graviex's Issues

deposit is not working

Hi Team
I have configured this exchange. I have done deposit ETH but eth balance is not showing in my funds page and Deposit history is also empty.
In admin panel I can see the ETH balance.
What is the problem Can you help me to fix.
Thanks

[missing "en.funds.deposit_cny.desc" translation]

Hello! I am getting the following error in my installation:

image

There is no error pointing to the log files.

PRODUCTION.LOG
I, [2019-02-17T20:19:23.293199 #27155] INFO -- : Started GET "/funds" for 172.68.65.40 at 2019-02-17 20:19:23 -0300
I, [2019-02-17T20:19:23.324718 #27155] INFO -- : Processing by Private::FundsController#index as HTML
I, [2019-02-17T20:19:23.727470 #27155] INFO -- : Rendered private/funds/index.html.erb within layouts/funds (0.6ms)
I, [2019-02-17T20:19:23.738719 #27155] INFO -- : Rendered shared/_html5.html.slim (0.3ms)
I, [2019-02-17T20:19:23.764702 #27155] INFO -- : Rendered shared/_meta.html.slim (25.6ms)
I, [2019-02-17T20:19:23.772970 #27155] INFO -- : Rendered shared/_header_profile_setting.html.slim (5.1ms)
I, [2019-02-17T20:19:23.773660 #27155] INFO -- : Rendered shared/_header_lang_sel.html.slim (0.2ms)
I, [2019-02-17T20:19:23.773928 #27155] INFO -- : Rendered shared/_header.html.slim (8.4ms)
I, [2019-02-17T20:19:23.774412 #27155] INFO -- : Rendered shared/_footer.html.slim (0.1ms)
I, [2019-02-17T20:19:23.774802 #27155] INFO -- : Completed 200 OK in 450ms (Views: 79.9ms | ActiveRecord: 133.3ms)
I, [2019-02-17T20:19:25.287565 #27155] INFO -- : Started POST "/funds/gen_address" for 172.68.65.40 at 2019-02-17 20:19:25 -0300
I, [2019-02-17T20:19:25.289918 #27155] INFO -- : Processing by Private::FundsController#gen_address as /
I, [2019-02-17T20:19:25.320712 #27155] INFO -- : Rendered text template (0.0ms)
I, [2019-02-17T20:19:25.321180 #27155] INFO -- : Completed 200 OK in 31ms (Views: 0.7ms | ActiveRecord: 4.3ms)

The page parameter of the orders route returns a 401 error

A CURL command without the page parameter like this:

curl -X GET 'https://graviex.net/api/v2/orders' -D 'access_key=access_key&tonce=tonce&signature=signature'

returns the last 100 orders of my account.

If you add the page parameter like this:

curl -X GET 'https://graviex.net/api/v2/orders' -D 'access_key=access_key&tonce=tonce&signature=signature&page=2'

it throws a 401 error.

Is there something I'm missing?

withdraw cny not working

I think the withdraw form for fiat is wrong.

getting bank can't be blank

I believe because of it calling this form
in https://github.com/gravio-net/graviex/blob/master/public/templates/funds/withdraw_cny.html

this form is for crypto and not for fiat

this is the log here

I, [2020-11-07T21:37:53.686647 #125661] INFO -- : Started POST "/withdraws/banks" for 127.0.0.1 at 2020-11-07 21:37:53 -0800
I, [2020-11-07T21:37:53.698813 #125661] INFO -- : Processing by Private::Withdraws::BanksController#create as HTML
I, [2020-11-07T21:37:53.699162 #125661] INFO -- : Parameters: {"withdraw"=>{"member_id"=>1, "currency"=>"cny", "sum"=>5000, "fund_source_id"=>3, "fund_uid"=>"23983675638"}, "two_factor"=>{"type"=>"app", "otp"=>"748697"}, "bank"=>{"withdraw"=>{"member_id"=>1, "currency"=>"cny", "sum"=>5000, "fund_source_id"=>3, "fund_uid"=>"23983675638"}, "two_factor"=>{"type"=>"app", "otp"=>"748697"}}}
I, [2020-11-07T21:37:53.774046 #125661] INFO -- : [Withdraw]: last = 1514764800, current = 1604813873, diff = 90049073, sql = select created_at as result from withdraws where member_id = 1 and currency = 9 order by id desc limit 1

it's not submitting the bank

erro

i get this erro

deploy@vultr:~/graviex/graviex-exchange$ bundle exec rake assets:precompile
rake aborted!
Grape::Exceptions::IncompatibleOptionValues: default: giobtc is incompatible with values: ["btccny", "all"]
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/grape-0.7.0/lib/grape/validations.rb:239:in `validates'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/grape-0.7.0/lib/grape/validations.rb:129:in `optional'
/home/deploy/graviex/graviex-exchange/app/api/api_v2/orders.rb:10:in `block in <class:Orders>'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/grape-0.7.0/lib/grape/validations.rb:97:in `instance_eval'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/grape-0.7.0/lib/grape/validations.rb:97:in `initialize'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/grape-0.7.0/lib/grape/validations.rb:290:in `new'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/grape-0.7.0/lib/grape/validations.rb:290:in `params'
/home/deploy/graviex/graviex-exchange/app/api/api_v2/orders.rb:8:in `<class:Orders>'
/home/deploy/graviex/graviex-exchange/app/api/api_v2/orders.rb:2:in `<module:APIv2>'
/home/deploy/graviex/graviex-exchange/app/api/api_v2/orders.rb:1:in `<top (required)>'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:229:in `require'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:229:in `block in require'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:229:in `require'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:330:in `require_or_load'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:463:in `load_missing_constant'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:184:in `const_missing'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:495:in `load_missing_constant'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:184:in `const_missing'
/home/deploy/graviex/graviex-exchange/app/api/api_v2/mount.rb:32:in `<class:Mount>'
/home/deploy/graviex/graviex-exchange/app/api/api_v2/mount.rb:5:in `<module:APIv2>'
/home/deploy/graviex/graviex-exchange/app/api/api_v2/mount.rb:4:in `<top (required)>'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:229:in `require'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:229:in `block in require'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:229:in `require'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:330:in `require_or_load'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:463:in `load_missing_constant'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:184:in `const_missing'
/home/deploy/graviex/graviex-exchange/config/routes.rb:132:in `block in <top (required)>'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/actionpack-4.0.12/lib/action_dispatch/routing/route_set.rb:337:in `instance_exec'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/actionpack-4.0.12/lib/action_dispatch/routing/route_set.rb:337:in `eval_block'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/actionpack-4.0.12/lib/action_dispatch/routing/route_set.rb:315:in `draw'
/home/deploy/graviex/graviex-exchange/config/routes.rb:9:in `<top (required)>'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:223:in `load'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:223:in `block in load'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:223:in `load'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/routes_reloader.rb:40:in `each'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/routes_reloader.rb:40:in `load_paths'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/routes_reloader.rb:16:in `reload!'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/routes_reloader.rb:26:in `block in updater'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/file_update_checker.rb:75:in `call'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/file_update_checker.rb:75:in `execute'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/routes_reloader.rb:27:in `updater'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/routes_reloader.rb:6:in `execute_if_updated'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/initializable.rb:30:in `instance_exec'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/initializable.rb:30:in `run'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/initializable.rb:54:in `run_initializers'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application.rb:215:in `initialize!'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/deploy/graviex/graviex-exchange/config/environment.rb:5:in `<top (required)>'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:229:in `require'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:229:in `block in require'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:229:in `require'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application.rb:189:in `require_environment!'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/railties-4.0.12/lib/rails/application.rb:260:in `block in run_tasks_blocks'
/home/deploy/graviex/graviex-exchange/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.2.2/lib/sprockets/rails/task.rb:64:in `block (2 levels) in define'
/home/deploy/.rbenv/versions/2.2.1/bin/bundle:23:in `load'
/home/deploy/.rbenv/versions/2.2.1/bin/bundle:23:in `<main>'
Tasks: TOP => environment

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.