abstract-math 0.0.0.13__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,16 +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
- def get_liq():
98
- # get the liquidity and sqrt of price
99
- pool_contract = web3.eth.contract(address=pool_address, abi=v3_pool_abi)
100
- slot0 = pool_contract.functions.slot0().call()
101
- sqrt_price_x96 = slot0[0]
102
- liquidity = pool_contract.functions.liquidity().call()
103
-
104
- # compute the virtual reserves
105
- Q96 = 2 ** 96
106
- Q192 = 2 ** 192
107
- reserve0_x96 = liquidity * Q192 / sqrt_price_x96
108
- reserve1_x96 = liquidity * sqrt_price_x96
109
- 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.13
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=L0EgzKhu406B-cUxcpPxfKp3T0mzmYWoZMP6yZAFOd0,4887
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.13.dist-info/METADATA,sha256=tvCbv_D8YLBvsVaSLwsmo3Fyuvq5hdjyCaYTCtWiTsU,718
6
- abstract_math-0.0.0.13.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
7
- abstract_math-0.0.0.13.dist-info/top_level.txt,sha256=b7jOgD9c0U-CGH-l7yxhMPukzD40kMEQkQRV_sGyVfE,14
8
- abstract_math-0.0.0.13.dist-info/RECORD,,