abstract-math 0.0.0.5__py3-none-any.whl → 0.0.0.7__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.
- abstract_math/derive_tokens.py +3 -3
- {abstract_math-0.0.0.5.dist-info → abstract_math-0.0.0.7.dist-info}/METADATA +1 -1
- abstract_math-0.0.0.7.dist-info/RECORD +8 -0
- abstract_math-0.0.0.5.dist-info/RECORD +0 -8
- {abstract_math-0.0.0.5.dist-info → abstract_math-0.0.0.7.dist-info}/WHEEL +0 -0
- {abstract_math-0.0.0.5.dist-info → abstract_math-0.0.0.7.dist-info}/top_level.txt +0 -0
abstract_math/derive_tokens.py
CHANGED
|
@@ -6,7 +6,7 @@ SOL_LAMPORTS = sol_lamports =int(exponential(1,exp=SOL_DECIMAL_PLACE,num=1))
|
|
|
6
6
|
def get_proper_args(strings,*args,**kwargs):
|
|
7
7
|
properArgs = []
|
|
8
8
|
for key in strings:
|
|
9
|
-
kwarg
|
|
9
|
+
kwarg = kwargs.get(key)
|
|
10
10
|
if kwarg == None and args:
|
|
11
11
|
kwarg = args[0]
|
|
12
12
|
args = [] if len(args) == 1 else args[1:]
|
|
@@ -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
|
-
|
|
22
|
-
return int(exponential(1,exp=
|
|
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)
|
|
@@ -0,0 +1,8 @@
|
|
|
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,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
abstract_math/__init__.py,sha256=3I0YJakDUyWD7qXpdRsaEsmcA7IxwcWhoyecvDfOE98,54
|
|
2
|
-
abstract_math/derive_tokens.py,sha256=SOR8TcbGHz4Xgu2GgSO6zUA1_dh8QH1ld34i1aVhl3k,4314
|
|
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.5.dist-info/METADATA,sha256=SqSijSYTcd_26QExbF9ZMUpxytaiX8KFoNpgueGoDZM,579
|
|
6
|
-
abstract_math-0.0.0.5.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
7
|
-
abstract_math-0.0.0.5.dist-info/top_level.txt,sha256=b7jOgD9c0U-CGH-l7yxhMPukzD40kMEQkQRV_sGyVfE,14
|
|
8
|
-
abstract_math-0.0.0.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|