algobasket / PeatioCryptoExchange

An open-source Crypto-Currency exchange. Peatio v3.0 Coming Soon !
https://www.peatio.info
186 stars 202 forks source link

withdraw cny not working #104

Open AnthonyRex opened 3 years ago

AnthonyRex commented 3 years ago

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/pankaj9310/graviex-peatio/blob/master/public/templates/funds/withdraw_cny.html

this 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