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

@@ -62,11 +62,11 @@ def get_token_amount_ui(*args,**kwargs):
62
62
  token_decimals = derive_token_decimals(*args,**kwargs)
63
63
  return exponential(token_amount,exp=token_decimals)
64
64
  #token derivision
65
- def derive_token_decimals_from_token_variables(variables):
65
+ def derive_token_decimals_from_token_variables(**variables):
66
66
  variables["price"] = get_price(**variables)
67
- variables["tokenDecimals"] = derive_decimals_from_vars(*args,**kwargs)
67
+ variables["tokenDecimals"] = derive_decimals_from_vars(**variables)
68
68
  return variables
69
- def get_derived_token_ratio(*args,**kwarg):
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,**kwarg)
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
@@ -91,7 +91,7 @@ def derive_decimals_from_vars(*args,**kwargs):
91
91
  def update_token_variables(variables):
92
92
  variables['solAmountUi'] = getSolAmountUi(**variables)
93
93
  variables['solDecimals'] = 9
94
- variables = derive_token_decimals_from_token_variables(variables)
95
- variables['tokenAmountUi'] = exponential(variables['tokenAmount'],variables["tokenDecimals"])
94
+ variables = derive_token_decimals_from_token_variables(**variables)
95
+ variables['tokenAmountUi'] = get_token_amount_ui(**variables)
96
96
  return variables
97
97
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abstract_math
3
- Version: 0.0.0.7
3
+ Version: 0.0.0.9
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=nFPItPPE24yqTo10Gtz_GgM69vMrl3sD_HDpmggfiyE,4228
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.9.dist-info/METADATA,sha256=AkLyCUyp0gzcKb4xUXIBgWW7fUArbGPBGpWj53egTcA,579
6
+ abstract_math-0.0.0.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
7
+ abstract_math-0.0.0.9.dist-info/top_level.txt,sha256=b7jOgD9c0U-CGH-l7yxhMPukzD40kMEQkQRV_sGyVfE,14
8
+ abstract_math-0.0.0.9.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- abstract_math/__init__.py,sha256=3I0YJakDUyWD7qXpdRsaEsmcA7IxwcWhoyecvDfOE98,54
2
- abstract_math/derive_tokens.py,sha256=moRI5BYvn-HLOxDF7i4IWfNPsQ60D4_wj8qgchRMitw,4257
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.7.dist-info/METADATA,sha256=Z-wIZHlsOQW4LqiyUEY9oZAswJnihCtWOhqAh0VxVBo,579
6
- abstract_math-0.0.0.7.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
7
- abstract_math-0.0.0.7.dist-info/top_level.txt,sha256=b7jOgD9c0U-CGH-l7yxhMPukzD40kMEQkQRV_sGyVfE,14
8
- abstract_math-0.0.0.7.dist-info/RECORD,,