cryptum 0.0.339 → 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: 148b9f94b2254f73fc1c0c6edea7f3af776fc2c9612a018906b9135a46934962
4
- data.tar.gz: 2081df684c2c0c9d5f8ee39f38c882401f1457abaea6ac93f0a46f8f98bb5b02
3
+ metadata.gz: bad3d8b138eecbde91088b1feb705b0002df2f8b29bd9b1f232eec1001fa1d03
4
+ data.tar.gz: 9f0b981a0aeb0a369634a6866cef17a4085a5b8aadcac4ddc180f86096f7a553
5
5
  SHA512:
6
- metadata.gz: 4c5c584776a420d525cd9bd8bae0d97ee494eeb2b04e8251990ad0c9eb0410799b02ebb0ddd9eb35cc91bc6b8387b0e646eeacfdf724a2ddbbcc891e756cea28
7
- data.tar.gz: '051492a90a0db7de7993f2348d2ffe067eb843720306ed5b8138331ec494673fdc9c59ebc508c107a330339f93ca519cf55574aa394395fe02dd43b020c524f2'
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.339'
4
+ VERSION = '0.0.341'
5
5
  end
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.339
4
+ version: 0.0.341
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.