Skip to content

Commit

Permalink
Fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Sep 4, 2024
1 parent 19d09c2 commit 7bd5792
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 1 addition & 5 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { constants as ethersConstants, utils } from "ethers";
import { constants as ethersConstants } from "ethers";
import { TOKEN_SYMBOLS_MAP } from "@across-protocol/constants";
import { BigNumber } from "./utils";

export {
ChainFamily,
Expand Down Expand Up @@ -45,9 +44,6 @@ export const PROTOCOL_DEFAULT_CHAIN_ID_INDICES = [1, 10, 137, 288, 42161];
export const DEFAULT_CACHING_TTL = 60 * 60 * 24 * 7 * 2; // 2 Weeks
export const DEFAULT_CACHING_SAFE_LAG = 60 * 60; // 1 hour

export const UBA_BOUNDS_RANGE_MAX = BigNumber.from(String(Number.MAX_SAFE_INTEGER)).mul(utils.parseEther("1.0"));
export const UBA_BOUNDS_RANGE_MIN = UBA_BOUNDS_RANGE_MAX.mul(-1);

export const DEFAULT_SIMULATED_RELAYER_ADDRESS = "0x07aE8551Be970cB1cCa11Dd7a11F47Ae82e70E67";
export const DEFAULT_SIMULATED_RELAYER_ADDRESS_TEST = "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D"; // Görli, ...

Expand Down
8 changes: 5 additions & 3 deletions src/utils/BigNumberUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
*/

import { utils as ethersUtils } from "ethers";
import { BigNumber, BigNumberish } from "@ethersproject/bignumber";
import * as ethersBigNumber from "@ethersproject/bignumber";

export { BigNumber, BigNumberish } from "@ethersproject/bignumber";
export type BN = BigNumber;
export const { BigNumber } = ethersBigNumber;
export type BigNumberish = ethersBigNumber.BigNumberish;
export type BigNumber = ethersBigNumber.BigNumber;
export type BN = ethersBigNumber.BigNumber;

export const { formatEther, formatUnits, parseEther, parseUnits } = ethersUtils;
export const bnZero = BigNumber.from("0");
Expand Down

0 comments on commit 7bd5792

Please sign in to comment.