peatio-bitgo 2.6.7 → 2.6.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '062810d1807c29ab63130d8bb190de25c2cab3f482829e0abdff61cae4187422'
4
- data.tar.gz: cb04bdf39f57405c46fb7903db410a55eb269bac1f19300422812c88ea052dae
3
+ metadata.gz: 2211b51065371d015f3adcd9edcad1e6222a39a2fd8bc86ebe9eb0ff88986108
4
+ data.tar.gz: 9e66976ae7c61e5afa145f958d0ada67e6f232a70f7b9d06e3891237309f8727
5
5
  SHA512:
6
- metadata.gz: b40f51251f29accdcee17938e1dda4c74ccb362dd85664faf979366164f629d80b659de3bd01d95763b3f6629591a95d6fafc97e380ac1eff5f9b080e5b4560b
7
- data.tar.gz: e2f7372b54ba702d1a845c80e4e3f85daa580c177bcfdcb65bfbbde27f1eeabafa1b8d321b63e91fac9b71c76311a07912d0af1db3be439ad75dc8f06a619154
6
+ metadata.gz: 3ea675bbcf7bd62678248ac5a1abd951e79f5a7bf00f4ce53cafec12571897dc55be601dc02979a6aad1148df5d0d3e840d97b7bfa8e1dfb83fd76dd5193a621
7
+ data.tar.gz: 139f9d18ee51b88cd4936eae40c7d70868ccc3984cc9cefcf06d2b5c75af73ecb551f4dba073aef03ec73afb1c74b895784e7486f1eb34929d08aab44b0511d3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-bitgo (2.6.7)
4
+ peatio-bitgo (2.6.8)
5
5
  activesupport (~> 5.2.3)
6
6
  better-faraday (~> 1.0.5)
7
7
  faraday (~> 0.17)
@@ -12,9 +12,9 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activemodel (5.2.4.4)
16
- activesupport (= 5.2.4.4)
17
- activesupport (5.2.4.4)
15
+ activemodel (5.2.6)
16
+ activesupport (= 5.2.6)
17
+ activesupport (5.2.6)
18
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
19
19
  i18n (>= 0.7, < 2)
20
20
  minitest (~> 5.1)
@@ -28,12 +28,13 @@ GEM
28
28
  better-faraday (1.0.8)
29
29
  activesupport (>= 4.0, < 6.0)
30
30
  faraday (~> 0.12)
31
- bunny (2.17.0)
31
+ bunny (2.18.0)
32
32
  amq-protocol (~> 2.3, >= 2.3.1)
33
+ sorted_set (~> 1, >= 1.0.2)
33
34
  byebug (11.1.3)
34
35
  clamp (1.3.2)
35
36
  coderay (1.1.3)
36
- concurrent-ruby (1.1.8)
37
+ concurrent-ruby (1.1.9)
37
38
  connection_pool (2.2.5)
38
39
  cookiejar (0.3.3)
39
40
  crack (0.4.3)
@@ -66,7 +67,7 @@ GEM
66
67
  multi_json (>= 1.0.0)
67
68
  rack (>= 1.0.0)
68
69
  websocket-driver (>= 0.5.1)
69
- faye-websocket (0.11.0)
70
+ faye-websocket (0.11.1)
70
71
  eventmachine (>= 0.12.0)
71
72
  websocket-driver (>= 0.5.1)
72
73
  hashdiff (1.0.1)
@@ -83,7 +84,7 @@ GEM
83
84
  mysql2 (0.5.3)
84
85
  net-http-persistent (3.0.1)
85
86
  connection_pool (~> 2.2)
86
- peatio (2.6.3)
87
+ peatio (2.6.4)
87
88
  activemodel (> 5.2, <= 6.0.0)
88
89
  amqp
89
90
  bunny
@@ -107,6 +108,7 @@ GEM
107
108
  public_suffix (4.0.5)
108
109
  rack (2.2.3)
109
110
  rake (13.0.1)
111
+ rbtree (0.4.4)
110
112
  rspec (3.9.0)
111
113
  rspec-core (~> 3.9.0)
112
114
  rspec-expectations (~> 3.9.0)
@@ -121,7 +123,11 @@ GEM
121
123
  rspec-support (~> 3.9.0)
122
124
  rspec-support (3.9.3)
123
125
  safe_yaml (1.0.5)
124
- thin (1.8.0)
126
+ set (1.0.1)
127
+ sorted_set (1.0.3)
128
+ rbtree
129
+ set (~> 1.0)
130
+ thin (1.8.1)
125
131
  daemons (~> 1.0, >= 1.0.9)
126
132
  eventmachine (~> 1.0, >= 1.0.4)
127
133
  rack (>= 1, < 3)
@@ -132,7 +138,7 @@ GEM
132
138
  addressable (>= 2.3.6)
133
139
  crack (>= 0.3.2)
134
140
  hashdiff (>= 0.4.0, < 2.0.0)
135
- websocket-driver (0.7.3)
141
+ websocket-driver (0.7.5)
136
142
  websocket-extensions (>= 0.1.0)
137
143
  websocket-extensions (0.1.5)
138
144
 
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Bitgo
3
- VERSION = "2.6.7".freeze
3
+ VERSION = "2.6.8".freeze
4
4
  end
5
5
  end
@@ -86,11 +86,11 @@ module Peatio
86
86
 
87
87
  def create_eth_transaction(transaction, options = {})
88
88
  amount = convert_to_base_unit(transaction.amount)
89
- hop = options.slice(:erc20_contract_address).present? ? false : true
89
+ hop = true unless options.slice(:gas_price).present?
90
90
 
91
91
  fee_estimate = fee_estimate(amount.to_s, hop)
92
92
 
93
- if transaction.options.present?
93
+ if transaction.options.present? && transaction.options[:gas_price].present?
94
94
  options[:gas_price] = transaction.options[:gas_price]
95
95
  else
96
96
  options[:gas_price] = fee_estimate['minGasPrice'].to_i
@@ -111,7 +111,7 @@ module Peatio
111
111
  end
112
112
 
113
113
  def fee_estimate(amount, hop)
114
- client.rest_api(:get, "#{erc20_currency_id}/tx/fee", {amount: amount, hop: hop})
114
+ client.rest_api(:get, "#{erc20_currency_id}/tx/fee", { amount: amount, hop: hop }.compact)
115
115
  end
116
116
 
117
117
  def load_balance!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peatio-bitgo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.7
4
+ version: 2.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nadia Ch., Maksym N.