cryptum 0.0.365 → 0.0.366

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: 7ca8d256e67aef747058e034b536ca0b48fd006007a245aba222d06ba557c1bf
4
- data.tar.gz: 81a190983b67ff65277fca3f0a27fcc887284b889386ed9b609d2d3ac0b7ff09
3
+ metadata.gz: 9c1c4d84e74613172f9249878ab0c68174f9039f1fd40326153df675215a31c6
4
+ data.tar.gz: 84e6137384ba4b75bd202dffdf5784ace667d7fbcf8c15aa9e1437fc426ec0dc
5
5
  SHA512:
6
- metadata.gz: 22abc46c272752380413f8d5a549f8ff444d70c758dc4db82fdd210b4ef321fb5eea5b614e60f7250c12240e4c275eb97b45dcf9a7f95b659e6e6182decf698a
7
- data.tar.gz: 6c9c0200d80becf096570b2af46e74ed10e374ce6997dba6fbd2b0a7b77f6bef04292c09ccf58ead544a21538fd62ec52eb44423c9dc1c74f162cca549a752cc
6
+ metadata.gz: 489da8f4bdc5c00cc79c71ec60ce018855086ee713e4ed2e4944514b5e6c29fb3532daf75db386fa2ae61bb0419ce3c083ef092ed078b9abd756613c49fcefe9
7
+ data.tar.gz: 13a254cc99126868c17edd55eecd9f764438446ab3b2d744703d07bf8af327f250c5a0b9aab76e79a6df2fec394808cb9a355781ad1ac386e57b4d911cbdcc62
@@ -64,6 +64,7 @@ module Cryptum
64
64
  # THE TARGET PRICE AND SUBSEQUENT TIME IT TAKES FOR AN OPEN
65
65
  # SELL ORDER TO BE TRIGGERED!!! SHOULD NEVER BE > 1
66
66
  default_net_tpm = 1.0
67
+ conservative_tpm_hedge = 0.75
67
68
  maker_rate = 0.4
68
69
  taker_rate = 0.6
69
70
 
@@ -121,12 +122,12 @@ module Cryptum
121
122
  ai_net_tpm = (((1 - (low_24h / high_24h)) * 100) / 24) * 0.017
122
123
  end
123
124
 
125
+ ai_net_tpm *= conservative_tpm_hedge
124
126
  default_net_tpm = ai_net_tpm if ai_net_tpm > default_net_tpm
125
- conservative_tpm_hedge = 0.75
126
127
 
127
128
  min_gross_tpm = format(
128
129
  '%0.2f',
129
- (maker_rate.to_f + taker_rate.to_f) + (default_net_tpm * conservative_tpm_hedge)
130
+ (maker_rate.to_f + taker_rate.to_f) + default_net_tpm
130
131
  )
131
132
 
132
133
  if min_gross_tpm != gross_tpm.to_s
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.365'
4
+ VERSION = '0.0.366'
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.365
4
+ version: 0.0.366
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.