cryptum 0.0.300 → 0.0.301
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +1 -10
- data/lib/cryptum/ui/order_plan.rb +5 -1
- data/lib/cryptum/ui/portfolio.rb +5 -1
- data/lib/cryptum/version.rb +1 -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: f71267d3768882eabe5dd2b2e0800ba03a4ebb71eef033f017afe1824d92f3da
|
4
|
+
data.tar.gz: c4ac586c2fb0cf347f3800d7efc4bbc42b7a2b25a35d59cf911999422de7443c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ff5ab01aa6d5b886c35c86c553c314f9777fa6e3faf1270cd7c232c77ff6624751c21a3c9e153ac285c53ae64ea24dec04b8d8b5695f79c6d4bdc9c2051c147
|
7
|
+
data.tar.gz: 26265b830cf9894b840b68c69af8dd4892ef6692f53c100b4bddd7451fdeee6dfa476c35fd60e0d4acef10935aa7105610d4385ff71b99875bea457fb0d1744c
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2022-12-08 23:
|
3
|
+
# on 2022-12-08 23:40:45 UTC using RuboCop version 1.40.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -20,15 +20,6 @@ Style/ConditionalAssignment:
|
|
20
20
|
- 'lib/cryptum/option.rb'
|
21
21
|
- 'lib/cryptum/ui/order_execute_details.rb'
|
22
22
|
|
23
|
-
# Offense count: 2
|
24
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
25
|
-
# Configuration parameters: EnforcedStyle.
|
26
|
-
# SupportedStyles: left_coerce, right_coerce, single_coerce, fdiv
|
27
|
-
Style/FloatDivision:
|
28
|
-
Exclude:
|
29
|
-
- 'lib/cryptum/ui/order_plan.rb'
|
30
|
-
- 'lib/cryptum/ui/portfolio.rb'
|
31
|
-
|
32
23
|
# Offense count: 2
|
33
24
|
# This cop supports safe autocorrection (--autocorrect).
|
34
25
|
Style/RedundantAssignment:
|
@@ -75,9 +75,13 @@ module Cryptum
|
|
75
75
|
balance.to_f * ticker_price
|
76
76
|
)
|
77
77
|
|
78
|
+
# crypto_invested_percent = format(
|
79
|
+
# '%0.2f',
|
80
|
+
# (current_crypto_fiat_value.to_f / total_holdings.to_f) * 100
|
81
|
+
# )
|
78
82
|
crypto_invested_percent = format(
|
79
83
|
'%0.2f',
|
80
|
-
|
84
|
+
current_crypto_fiat_value.to_f.fdiv(total_holdings.to_f) * 100
|
81
85
|
)
|
82
86
|
|
83
87
|
event_history.red_pill = true if crypto_invested_percent.to_f > autotrade_percent
|
data/lib/cryptum/ui/portfolio.rb
CHANGED
@@ -95,9 +95,13 @@ module Cryptum
|
|
95
95
|
(1 - (fiat_budget / total_holdings.to_f)) * 100
|
96
96
|
)
|
97
97
|
|
98
|
+
# crypto_invested_percent = format(
|
99
|
+
# '%0.2f',
|
100
|
+
# (current_crypto_fiat_value.to_f / total_holdings.to_f) * 100
|
101
|
+
# )
|
98
102
|
crypto_invested_percent = format(
|
99
103
|
'%0.2f',
|
100
|
-
|
104
|
+
current_crypto_fiat_value.to_f.fdiv(total_holdings.to_f) * 100
|
101
105
|
)
|
102
106
|
# TODO: Everything Above this Line Needs to be Indicators ^
|
103
107
|
|
data/lib/cryptum/version.rb
CHANGED