proof-of-portfolio 0.0.92__py3-none-any.whl → 0.0.93__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- proof_of_portfolio/_version.py +1 -1
- proof_of_portfolio/circuits/components/src/core/calmar.nr +2 -1
- proof_of_portfolio/circuits/src/main.nr +2 -1
- proof_of_portfolio/circuits/target/circuits.json +1 -1
- proof_of_portfolio/circuits/vk/vk +0 -0
- proof_of_portfolio/proof_generator.py +8 -2
- {proof_of_portfolio-0.0.92.dist-info → proof_of_portfolio-0.0.93.dist-info}/METADATA +1 -1
- {proof_of_portfolio-0.0.92.dist-info → proof_of_portfolio-0.0.93.dist-info}/RECORD +11 -11
- {proof_of_portfolio-0.0.92.dist-info → proof_of_portfolio-0.0.93.dist-info}/WHEEL +0 -0
- {proof_of_portfolio-0.0.92.dist-info → proof_of_portfolio-0.0.93.dist-info}/entry_points.txt +0 -0
- {proof_of_portfolio-0.0.92.dist-info → proof_of_portfolio-0.0.93.dist-info}/top_level.txt +0 -0
proof_of_portfolio/_version.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# This file is auto-generated during build
|
2
|
-
__version__ = "0.0.
|
2
|
+
__version__ = "0.0.93"
|
@@ -29,7 +29,8 @@ pub fn calmar(
|
|
29
29
|
if drawdown_normalization_factor == 0 {
|
30
30
|
0
|
31
31
|
} else {
|
32
|
-
let raw_calmar = (base_return_percentage * drawdown_normalization_factor) / SCALE
|
32
|
+
let raw_calmar = ((base_return_percentage * drawdown_normalization_factor) / SCALE)
|
33
|
+
* RATIO_SCALE_FACTOR;
|
33
34
|
let calmar_cap = 10 * RATIO_SCALE_FACTOR;
|
34
35
|
if raw_calmar > calmar_cap {
|
35
36
|
calmar_cap
|
@@ -25,6 +25,7 @@ fn main(
|
|
25
25
|
use_weighting: bool,
|
26
26
|
bypass_confidence: pub bool,
|
27
27
|
account_size: i64,
|
28
|
+
weights: [i64; ARRAY_SIZE],
|
28
29
|
) -> pub [Field; 9] {
|
29
30
|
// Verify all trading signals are included in the merkle tree
|
30
31
|
let mut all_verified = true;
|
@@ -51,7 +52,7 @@ fn main(
|
|
51
52
|
}
|
52
53
|
|
53
54
|
let weights = if use_weighting {
|
54
|
-
|
55
|
+
weights
|
55
56
|
} else {
|
56
57
|
// Equal weights when weighting is disabled
|
57
58
|
let mut equal_weights = [0; ARRAY_SIZE];
|