aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-29 19:30:13 +0800
committerFabio Berger <me@fabioberger.com>2017-05-29 19:30:13 +0800
commit4a3a20ef43827e87abfbdfa68c1197319dcbcc66 (patch)
tree1e0463b6e32bac46404ab594ec4eda3fb7fd8389
parent3819030a40af3d1cd2a9afddb125055c7e1e1ace (diff)
downloaddexon-sol-tools-4a3a20ef43827e87abfbdfa68c1197319dcbcc66.tar
dexon-sol-tools-4a3a20ef43827e87abfbdfa68c1197319dcbcc66.tar.gz
dexon-sol-tools-4a3a20ef43827e87abfbdfa68c1197319dcbcc66.tar.bz2
dexon-sol-tools-4a3a20ef43827e87abfbdfa68c1197319dcbcc66.tar.lz
dexon-sol-tools-4a3a20ef43827e87abfbdfa68c1197319dcbcc66.tar.xz
dexon-sol-tools-4a3a20ef43827e87abfbdfa68c1197319dcbcc66.tar.zst
dexon-sol-tools-4a3a20ef43827e87abfbdfa68c1197319dcbcc66.zip
Standardize all comments
-rw-r--r--src/0x.js.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts
index 1ebafc604..de082146f 100644
--- a/src/0x.js.ts
+++ b/src/0x.js.ts
@@ -101,11 +101,11 @@ export class ZeroEx {
const isValid = /^0x[0-9A-F]{64}$/i.test(orderHash);
return isValid;
}
- /*
+ /**
* A unit amount is defined as the amount of a token above the specified decimal places (integer part).
* E.g: If a currency has 18 decimal places, 1e18 or one quintillion of the currency is equivalent
* to 1 unit.
- */
+ */
public static toUnitAmount(amount: BigNumber.BigNumber, decimals: number): BigNumber.BigNumber {
assert.isBigNumber('amount', amount);
assert.isNumber('decimals', decimals);
@@ -114,11 +114,11 @@ export class ZeroEx {
const unit = amount.div(aUnit);
return unit;
}
- /*
+ /**
* A baseUnit is defined as the smallest denomination of a token. An amount expressed in baseUnits
* is the amount expressed in the smallest denomination.
* E.g: 1 unit of a token with 18 decimal places is expressed in baseUnits as 1000000000000000000
- */
+ */
public static toBaseUnitAmount(amount: BigNumber.BigNumber, decimals: number): BigNumber.BigNumber {
assert.isBigNumber('amount', amount);
assert.isNumber('decimals', decimals);