abstract-math 0.0.0.4__py3-none-any.whl → 0.0.0.5__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.
Potentially problematic release.
This version of abstract-math might be problematic. Click here for more details.
- abstract_math/derive_tokens.py +3 -3
- {abstract_math-0.0.0.4.dist-info → abstract_math-0.0.0.5.dist-info}/METADATA +1 -1
- abstract_math-0.0.0.5.dist-info/RECORD +8 -0
- abstract_math-0.0.0.4.dist-info/RECORD +0 -8
- {abstract_math-0.0.0.4.dist-info → abstract_math-0.0.0.5.dist-info}/WHEEL +0 -0
- {abstract_math-0.0.0.4.dist-info → abstract_math-0.0.0.5.dist-info}/top_level.txt +0 -0
abstract_math/derive_tokens.py
CHANGED
|
@@ -6,7 +6,7 @@ SOL_LAMPORTS = sol_lamports =int(exponential(1,exp=SOL_DECIMAL_PLACE,num=1))
|
|
|
6
6
|
def get_proper_args(strings,*args,**kwargs):
|
|
7
7
|
properArgs = []
|
|
8
8
|
for key in strings:
|
|
9
|
-
kwarg = kwargs.get(key)
|
|
9
|
+
kwarg get_virtual_reserve_ratio(*args,**kwargs)= kwargs.get(key)
|
|
10
10
|
if kwarg == None and args:
|
|
11
11
|
kwarg = args[0]
|
|
12
12
|
args = [] if len(args) == 1 else args[1:]
|
|
@@ -24,7 +24,7 @@ def get_lamport_difference(lamports,virtual_lamports):
|
|
|
24
24
|
def get_vitual_reserves(*args,**kwargs):
|
|
25
25
|
proper_args = get_proper_args(["virtualSolReserves","virtualTokenReserves"],*args,**kwargs)
|
|
26
26
|
return proper_args
|
|
27
|
-
def get_virtual_reserve_ratio(*
|
|
27
|
+
def get_virtual_reserve_ratio(*args,**kwargs):
|
|
28
28
|
proper_args = get_vitual_reserves(*args,**kwargs)
|
|
29
29
|
return divide_it(*proper_args)
|
|
30
30
|
#sol reserves
|
|
@@ -78,7 +78,7 @@ def derive_token_amount(*args,**kwargs):
|
|
|
78
78
|
return derived_token_amount
|
|
79
79
|
#derive variables
|
|
80
80
|
def get_price(*args,**kwargs):
|
|
81
|
-
reserve_ratios = get_virtual_reserve_ratio(*
|
|
81
|
+
reserve_ratios = get_virtual_reserve_ratio(*args,**kwargs)
|
|
82
82
|
virtual_sol_lamp_difference = get_virtual_sol_lamp_difference(*args,**kwargs)
|
|
83
83
|
return reserve_ratios/virtual_sol_lamp_difference
|
|
84
84
|
def derive_decimals_from_vars(*args,**kwargs):
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
abstract_math/__init__.py,sha256=3I0YJakDUyWD7qXpdRsaEsmcA7IxwcWhoyecvDfOE98,54
|
|
2
|
+
abstract_math/derive_tokens.py,sha256=SOR8TcbGHz4Xgu2GgSO6zUA1_dh8QH1ld34i1aVhl3k,4314
|
|
3
|
+
abstract_math/deriveit.py,sha256=Og8QtDGRrgGbmaHTh-jEusg35jUpb74DgzslsxZ_2iU,4271
|
|
4
|
+
abstract_math/safe_math.py,sha256=CP05f3-SHQ3aJu1bO1IJGQ7HYOwpqonMVb0kN3gBbEU,6838
|
|
5
|
+
abstract_math-0.0.0.5.dist-info/METADATA,sha256=SqSijSYTcd_26QExbF9ZMUpxytaiX8KFoNpgueGoDZM,579
|
|
6
|
+
abstract_math-0.0.0.5.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
7
|
+
abstract_math-0.0.0.5.dist-info/top_level.txt,sha256=b7jOgD9c0U-CGH-l7yxhMPukzD40kMEQkQRV_sGyVfE,14
|
|
8
|
+
abstract_math-0.0.0.5.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
abstract_math/__init__.py,sha256=3I0YJakDUyWD7qXpdRsaEsmcA7IxwcWhoyecvDfOE98,54
|
|
2
|
-
abstract_math/derive_tokens.py,sha256=Og8QtDGRrgGbmaHTh-jEusg35jUpb74DgzslsxZ_2iU,4271
|
|
3
|
-
abstract_math/deriveit.py,sha256=Og8QtDGRrgGbmaHTh-jEusg35jUpb74DgzslsxZ_2iU,4271
|
|
4
|
-
abstract_math/safe_math.py,sha256=CP05f3-SHQ3aJu1bO1IJGQ7HYOwpqonMVb0kN3gBbEU,6838
|
|
5
|
-
abstract_math-0.0.0.4.dist-info/METADATA,sha256=rfMEm-2-YxGondy2D5yW2_atz1hrC6ELwy1YEzJe0Ts,579
|
|
6
|
-
abstract_math-0.0.0.4.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
7
|
-
abstract_math-0.0.0.4.dist-info/top_level.txt,sha256=b7jOgD9c0U-CGH-l7yxhMPukzD40kMEQkQRV_sGyVfE,14
|
|
8
|
-
abstract_math-0.0.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|