abstract-math 0.0.0.6__tar.gz → 0.0.0.8__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.6
3
+ Version: 0.0.0.8
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.06',
7
+ version='0.0.0.08',
8
8
  author='putkoff',
9
9
  author_email='partners@abstractendeavors.com',
10
10
  description="",
@@ -18,8 +18,8 @@ def get_lamports(integer):
18
18
  return exp_it(10,len(str(integer))+1,1)
19
19
  def get_lamport_difference(lamports,virtual_lamports):
20
20
  integer = int(virtual_lamports/lamports)
21
- exponential = len(str(integer))
22
- return int(exponential(1,exp=exponential,num=1))
21
+ exp = len(str(integer))
22
+ return int(exponential(1,exp=exp,num=1))
23
23
  #virtual reserves
24
24
  def get_vitual_reserves(*args,**kwargs):
25
25
  proper_args = get_proper_args(["virtualSolReserves","virtualTokenReserves"],*args,**kwargs)
@@ -62,9 +62,9 @@ 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
69
  def get_derived_token_ratio(*args,**kwarg):
70
70
  derived_token_amount = derive_token_amount(*args,**kwargs)
@@ -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.6
3
+ Version: 0.0.0.8
4
4
  Author: putkoff
5
5
  Author-email: partners@abstractendeavors.com
6
6
  Classifier: Development Status :: 3 - Alpha