Standardize all comments
This commit is contained in:
parent
3819030a40
commit
4a3a20ef43
@ -101,7 +101,7 @@ export class ZeroEx {
|
|||||||
const isValid = /^0x[0-9A-F]{64}$/i.test(orderHash);
|
const isValid = /^0x[0-9A-F]{64}$/i.test(orderHash);
|
||||||
return isValid;
|
return isValid;
|
||||||
}
|
}
|
||||||
/*
|
/**
|
||||||
* A unit amount is defined as the amount of a token above the specified decimal places (integer part).
|
* 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
|
* E.g: If a currency has 18 decimal places, 1e18 or one quintillion of the currency is equivalent
|
||||||
* to 1 unit.
|
* to 1 unit.
|
||||||
@ -114,7 +114,7 @@ export class ZeroEx {
|
|||||||
const unit = amount.div(aUnit);
|
const unit = amount.div(aUnit);
|
||||||
return unit;
|
return unit;
|
||||||
}
|
}
|
||||||
/*
|
/**
|
||||||
* A baseUnit is defined as the smallest denomination of a token. An amount expressed in baseUnits
|
* A baseUnit is defined as the smallest denomination of a token. An amount expressed in baseUnits
|
||||||
* is the amount expressed in the smallest denomination.
|
* 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
|
* E.g: 1 unit of a token with 18 decimal places is expressed in baseUnits as 1000000000000000000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user