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 +4 -4
- data/lib/cryptum/ui/order_plan.rb +5 -0
- data/lib/cryptum/version.rb +1 -1
- data/lib/cryptum/web_sock/coinbase.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bad3d8b138eecbde91088b1feb705b0002df2f8b29bd9b1f232eec1001fa1d03
|
4
|
+
data.tar.gz: 9f0b981a0aeb0a369634a6866cef17a4085a5b8aadcac4ddc180f86096f7a553
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/cryptum/version.rb
CHANGED