abstract-math 0.0.0.8__tar.gz → 0.0.0.10__tar.gz
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-0.0.0.8 → abstract_math-0.0.0.10}/PKG-INFO +1 -1
- {abstract_math-0.0.0.8 → abstract_math-0.0.0.10}/setup.py +1 -1
- {abstract_math-0.0.0.8 → abstract_math-0.0.0.10}/src/abstract_math/derive_tokens.py +4 -4
- {abstract_math-0.0.0.8 → abstract_math-0.0.0.10}/src/abstract_math.egg-info/PKG-INFO +1 -1
- {abstract_math-0.0.0.8 → abstract_math-0.0.0.10}/README.md +0 -0
- {abstract_math-0.0.0.8 → abstract_math-0.0.0.10}/pyproject.toml +0 -0
- {abstract_math-0.0.0.8 → abstract_math-0.0.0.10}/setup.cfg +0 -0
- {abstract_math-0.0.0.8 → abstract_math-0.0.0.10}/src/abstract_math/__init__.py +0 -0
- {abstract_math-0.0.0.8 → abstract_math-0.0.0.10}/src/abstract_math/safe_math.py +0 -0
- {abstract_math-0.0.0.8 → abstract_math-0.0.0.10}/src/abstract_math.egg-info/SOURCES.txt +0 -0
- {abstract_math-0.0.0.8 → abstract_math-0.0.0.10}/src/abstract_math.egg-info/dependency_links.txt +0 -0
- {abstract_math-0.0.0.8 → abstract_math-0.0.0.10}/src/abstract_math.egg-info/top_level.txt +0 -0
|
@@ -46,11 +46,11 @@ def getSolAmountUi(*args,**kwargs):
|
|
|
46
46
|
sol_amount = get_sol_amount(*args,**kwargs)
|
|
47
47
|
return exponential(sol_amount,SOL_DECIMAL_PLACE)
|
|
48
48
|
#token reserves
|
|
49
|
-
def
|
|
49
|
+
def get_virtual_token_reserves(*args,**kwargs):
|
|
50
50
|
proper_args = get_proper_args(["virtualTokenReserves"],*args,**kwargs)
|
|
51
51
|
return proper_args[0] if proper_args else proper_args
|
|
52
52
|
def get_virtual_token_lamports(*args,**kwargs):
|
|
53
|
-
virtual_token_reserves =
|
|
53
|
+
virtual_token_reserves = get_virtual_token_reserves(*args,**kwargs)
|
|
54
54
|
virtual_token_lamports = get_lamports(virtual_token_reserves)
|
|
55
55
|
return virtual_token_lamports
|
|
56
56
|
#token amount
|
|
@@ -66,7 +66,7 @@ def derive_token_decimals_from_token_variables(**variables):
|
|
|
66
66
|
variables["price"] = get_price(**variables)
|
|
67
67
|
variables["tokenDecimals"] = derive_decimals_from_vars(**variables)
|
|
68
68
|
return variables
|
|
69
|
-
def get_derived_token_ratio(*args,**
|
|
69
|
+
def get_derived_token_ratio(*args,**kwargs):
|
|
70
70
|
derived_token_amount = derive_token_amount(*args,**kwargs)
|
|
71
71
|
token_amount = get_token_amount(*args,**kwargs)
|
|
72
72
|
ratio = divide_it(derived_token_amount,token_amount)
|
|
@@ -82,7 +82,7 @@ def get_price(*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):
|
|
85
|
-
ratio = get_derived_token_ratio(*args,**
|
|
85
|
+
ratio = get_derived_token_ratio(*args,**kwargs)
|
|
86
86
|
decimals = -1
|
|
87
87
|
while abs(ratio - round(ratio)) > 1e-9:
|
|
88
88
|
ratio *= 10
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abstract_math-0.0.0.8 → abstract_math-0.0.0.10}/src/abstract_math.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|