Merge ee789d61a2bd3008d14494f172461d64276c491f into b319a4dceb5053a4794bf53dbeeaeb416c31ef0a
This commit is contained in:
commit
c7aacda7b0
@ -46,14 +46,14 @@ export function getRandomFloat(min: Numberish, max: Numberish): BigNumber {
|
||||
export const FIXED_POINT_BASE = new BigNumber(2).pow(127);
|
||||
|
||||
/**
|
||||
* Convert `n` to fixed-point integer represenatation.
|
||||
* Convert `n` to fixed-point integer representation.
|
||||
*/
|
||||
export function toFixed(n: Numberish): BigNumber {
|
||||
return new BigNumber(n).times(FIXED_POINT_BASE).integerValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert `n` from fixed-point integer represenatation.
|
||||
* Convert `n` from fixed-point integer representation.
|
||||
*/
|
||||
export function fromFixed(n: Numberish): BigNumber {
|
||||
return new BigNumber(n).dividedBy(FIXED_POINT_BASE);
|
||||
|
@ -45,7 +45,7 @@ interface IAuthorizableV08 is IOwnableV08 {
|
||||
/// @return authorizedAddresses Array of authorized addresses.
|
||||
function getAuthorizedAddresses() external view returns (address[] memory authorizedAddresses);
|
||||
|
||||
/// @dev Whether an adderss is authorized to call privileged functions.
|
||||
/// @dev Whether an address is authorized to call privileged functions.
|
||||
/// @param addr Address to query.
|
||||
/// @return isAuthorized Whether the address is authorized.
|
||||
function authorized(address addr) external view returns (bool isAuthorized);
|
||||
|
@ -45,7 +45,7 @@ contract InitialMigration {
|
||||
|
||||
/// @dev Initialize the `ZeroEx` contract with the minimum feature set,
|
||||
/// transfers ownership to `owner`, then self-destructs.
|
||||
/// Only callable by `initializeCaller` set in the contstructor.
|
||||
/// Only callable by `initializeCaller` set in the constructor.
|
||||
/// @param owner The owner of the contract.
|
||||
/// @param zeroEx The instance of the ZeroEx contract. ZeroEx should
|
||||
/// been constructed with this contract as the bootstrapper.
|
||||
|
Loading…
x
Reference in New Issue
Block a user