abstract-math 0.0.0.12__py3-none-any.whl → 0.0.0.14__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.

@@ -94,15 +94,3 @@ def update_token_variables(variables):
94
94
  variables = derive_token_decimals_from_token_variables(**variables)
95
95
  variables['tokenAmountUi'] = get_token_amount_ui(**variables)
96
96
  return variables
97
- # get the liquidity and sqrt of price
98
- pool_contract = web3.eth.contract(address=pool_address, abi=v3_pool_abi)
99
- slot0 = pool_contract.functions.slot0().call()
100
- sqrt_price_x96 = slot0[0]
101
- liquidity = pool_contract.functions.liquidity().call()
102
-
103
- # compute the virtual reserves
104
- Q96 = 2 ** 96
105
- Q192 = 2 ** 192
106
- reserve0_x96 = liquidity * Q192 / sqrt_price_x96
107
- reserve1_x96 = liquidity * sqrt_price_x96
108
- token_decimals = math.log10((int(data['virtualTokenReserves']["data"]) * (10**int(9) / (int(data['virtualSolReserves']["data"])) * (int(data['tokenAmount']["data"]) / int(data['solAmount']["data"])))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: abstract_math
3
- Version: 0.0.0.12
3
+ Version: 0.0.0.14
4
4
  Author: putkoff
5
5
  Author-email: partners@abstractendeavors.com
6
6
  Classifier: Development Status :: 3 - Alpha
@@ -0,0 +1,8 @@
1
+ abstract_math/__init__.py,sha256=3I0YJakDUyWD7qXpdRsaEsmcA7IxwcWhoyecvDfOE98,54
2
+ abstract_math/derive_tokens.py,sha256=Ba2hq3-W3NPmfko-Lf-58HfkBtl4kfN-GFuSZJMyiWM,4233
3
+ abstract_math/deriveit.py,sha256=Og8QtDGRrgGbmaHTh-jEusg35jUpb74DgzslsxZ_2iU,4271
4
+ abstract_math/safe_math.py,sha256=wDWiZzgjymhZbpy3431fgQpetLn1WmiRo9_pP2YpRj8,4110
5
+ abstract_math-0.0.0.14.dist-info/METADATA,sha256=uQbOoiMqkmfLHTuXSatBzpzaUKhTNMqs8YR0HltT07g,718
6
+ abstract_math-0.0.0.14.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
7
+ abstract_math-0.0.0.14.dist-info/top_level.txt,sha256=b7jOgD9c0U-CGH-l7yxhMPukzD40kMEQkQRV_sGyVfE,14
8
+ abstract_math-0.0.0.14.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- abstract_math/__init__.py,sha256=3I0YJakDUyWD7qXpdRsaEsmcA7IxwcWhoyecvDfOE98,54
2
- abstract_math/derive_tokens.py,sha256=TOm6ruF5lRLr3GQIgkN7J4EYYIhGP4am01PfiFkc9dM,4828
3
- abstract_math/deriveit.py,sha256=Og8QtDGRrgGbmaHTh-jEusg35jUpb74DgzslsxZ_2iU,4271
4
- abstract_math/safe_math.py,sha256=wDWiZzgjymhZbpy3431fgQpetLn1WmiRo9_pP2YpRj8,4110
5
- abstract_math-0.0.0.12.dist-info/METADATA,sha256=FXnMibmJrJNd7lo6rtMkWQlyFUtKu2rcXTTs3334qOU,718
6
- abstract_math-0.0.0.12.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
7
- abstract_math-0.0.0.12.dist-info/top_level.txt,sha256=b7jOgD9c0U-CGH-l7yxhMPukzD40kMEQkQRV_sGyVfE,14
8
- abstract_math-0.0.0.12.dist-info/RECORD,,