Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
krboktv committed Aug 5, 2020
1 parent 17affed commit e69ffc2
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 21 deletions.
2 changes: 1 addition & 1 deletion dist/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export declare enum Rounding {
ROUND_HALF_UP = 1,
ROUND_UP = 2
}
export declare const FACTORY_ADDRESS = "0x401E434FFA0095F11d3298E778d36eBa0d66D29a";
export declare const FACTORY_ADDRESS = "0xc12A7e093832E2d2267df225BAca60bD2B74C65F";
export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
export declare const MINIMUM_LIQUIDITY: JSBI;
export declare const ZERO: JSBI;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import JSBI from 'jsbi';
export { JSBI };
export { BigintIsh, ChainId, TradeType, Rounding, FACTORY_ADDRESS, MINIMUM_LIQUIDITY } from './constants';
export { BigintIsh, ChainId, TradeType, Rounding, FACTORY_ADDRESS, MINIMUM_LIQUIDITY, ZERO_ADDRESS } from './constants';
export * from './errors';
export * from './entities';
export * from './fetcher';
Expand Down
7 changes: 5 additions & 2 deletions dist/sdk.cjs.development.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/sdk.cjs.development.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/sdk.cjs.production.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/sdk.cjs.production.min.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dist/sdk.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/sdk.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export declare enum Rounding {
ROUND_HALF_UP = 1,
ROUND_UP = 2
}
export declare const FACTORY_ADDRESS = "0x401E434FFA0095F11d3298E778d36eBa0d66D29a";
export declare const FACTORY_ADDRESS = "0xc12A7e093832E2d2267df225BAca60bD2B74C65F";
export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
export declare const MINIMUM_LIQUIDITY: JSBI;
export declare const ZERO: JSBI;
Expand Down
2 changes: 1 addition & 1 deletion src/constants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export enum Rounding {
ROUND_UP
}

export const FACTORY_ADDRESS = '0x401E434FFA0095F11d3298E778d36eBa0d66D29a'
export const FACTORY_ADDRESS = '0xc12A7e093832E2d2267df225BAca60bD2B74C65F'
export const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'

export const MINIMUM_LIQUIDITY = JSBI.BigInt(1000)
Expand Down
3 changes: 2 additions & 1 deletion src/entities/token.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/entities/token.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/entities/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class Token {
* Compares two currencies for equality
*/
export function currencyEquals(currencyA: Token, currencyB: Token): boolean {
return currencyA.address.toLowerCase() === currencyB.address.toLowerCase()
return currencyA?.address?.toLowerCase() === currencyB?.address?.toLowerCase()
}

export const ETHER = new Token(ChainId.MAINNET, ZERO_ADDRESS, 18, 'ETH', 'Ethereum')
Expand Down
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import JSBI from 'jsbi';
export { JSBI };
export { BigintIsh, ChainId, TradeType, Rounding, FACTORY_ADDRESS, MINIMUM_LIQUIDITY } from './constants';
export { BigintIsh, ChainId, TradeType, Rounding, FACTORY_ADDRESS, MINIMUM_LIQUIDITY, ZERO_ADDRESS } from './constants';
export * from './errors';
export * from './entities';
export * from './fetcher';
Expand Down
2 changes: 1 addition & 1 deletion src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export {
TradeType,
Rounding,
FACTORY_ADDRESS,
MINIMUM_LIQUIDITY
MINIMUM_LIQUIDITY,
ZERO_ADDRESS
} from './constants'

export * from './errors'
Expand Down

0 comments on commit e69ffc2

Please sign in to comment.