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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abstract_math
3
- Version: 0.0.0.8
3
+ Version: 0.0.0.10
4
4
  Author: putkoff
5
5
  Author-email: partners@abstractendeavors.com
6
6
  Classifier: Development Status :: 3 - Alpha
@@ -4,7 +4,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
4
4
  long_description = fh.read()
5
5
  setuptools.setup(
6
6
  name='abstract_math',
7
- version='0.0.0.08',
7
+ version='0.0.0.10',
8
8
  author='putkoff',
9
9
  author_email='partners@abstractendeavors.com',
10
10
  description="",
@@ -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 get_virtual_token_reservs(*args,**kwargs):
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 = get_virtual_token_reservs(*args,**kwargs)
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,**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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abstract_math
3
- Version: 0.0.0.8
3
+ Version: 0.0.0.10
4
4
  Author: putkoff
5
5
  Author-email: partners@abstractendeavors.com
6
6
  Classifier: Development Status :: 3 - Alpha