cryptum 0.0.338 → 0.0.341

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: 4f08c4d732a1a59acb8704496ced174cc88cdb1b6b8dd2e1e007f0889af419dc
4
- data.tar.gz: e738ac02a2244c1b1edb030bf983102ec0927e20c4c7c7b650fa4b6a475675a4
3
+ metadata.gz: bad3d8b138eecbde91088b1feb705b0002df2f8b29bd9b1f232eec1001fa1d03
4
+ data.tar.gz: 9f0b981a0aeb0a369634a6866cef17a4085a5b8aadcac4ddc180f86096f7a553
5
5
  SHA512:
6
- metadata.gz: ed8eb018654c62215643b760a729b42180bfe7145615c78e189bea821ff73d472baf0caffe0181947c49d03c3eab7981fa975005ccdc6040cebd405e67b5238a
7
- data.tar.gz: 50cc9e2f6c80c965f2db832a3567014e903de87d44bbdb98d633f500e96717b8e678ed2b99cb4de13d756be145252693856133f5470c780005e1771bdc009afc
6
+ metadata.gz: 8c52440f76f5a2f92fd5a7aa4cfe4fd70177a09286c8d8b807233b4a221c6c24dd2e165a5ab023ceba51d267e03218b170445590ec9685d800f5a6ddbe17cb5f
7
+ data.tar.gz: f3934b02ab277516fd147b797a22a5f3e653f61ccdbaf91c229b00f2881e99d6f31f379d34f05d115eafc61987faed2fd03d31992aa0ecf0e5e3b1f1c906acac
@@ -166,6 +166,11 @@ module Cryptum
166
166
  plan_no_slice += 1
167
167
  end
168
168
  order_plan.last[:last_slice] = true if order_plan.any?
169
+ op_last_slice_invest = order_plan.last[:invest].to_f
170
+ order_plan.last[:invest] = fiat_budget if order_plan.any? &&
171
+ op_last_slice_invest > fiat_budget &&
172
+ fiat_budget > min_market_funds.to_f
173
+
169
174
  event_history.order_book[:order_plan] = order_plan
170
175
  end
171
176
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.338'
4
+ VERSION = '0.0.341'
5
5
  end
@@ -77,7 +77,6 @@ module Cryptum
77
77
  \"#{product_id}\"
78
78
  ],
79
79
  \"channels\": [
80
- \"heartbeat\",
81
80
  \"level2_batch\",
82
81
  \"ticker\",
83
82
  \"user\"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.338
4
+ version: 0.0.341
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.