aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-27 10:55:42 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-27 10:55:42 +0800
commit3052c8d303bdbaf57e762345d5ee8428d2194d0a (patch)
tree67d6dac5b4794b92198a8d2526c11e973646720b /packages
parentff295daa5c56b5c056a5faa5ca8875c317524070 (diff)
downloaddexon-sol-tools-3052c8d303bdbaf57e762345d5ee8428d2194d0a.tar
dexon-sol-tools-3052c8d303bdbaf57e762345d5ee8428d2194d0a.tar.gz
dexon-sol-tools-3052c8d303bdbaf57e762345d5ee8428d2194d0a.tar.bz2
dexon-sol-tools-3052c8d303bdbaf57e762345d5ee8428d2194d0a.tar.lz
dexon-sol-tools-3052c8d303bdbaf57e762345d5ee8428d2194d0a.tar.xz
dexon-sol-tools-3052c8d303bdbaf57e762345d5ee8428d2194d0a.tar.zst
dexon-sol-tools-3052c8d303bdbaf57e762345d5ee8428d2194d0a.zip
linting
Diffstat (limited to 'packages')
-rw-r--r--packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts2
-rw-r--r--packages/instant/src/containers/selected_erc20_asset_amount_input.ts5
-rw-r--r--packages/instant/src/util/balance.ts5
3 files changed, 1 insertions, 11 deletions
diff --git a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
index dee724e15..d22fd7d24 100644
--- a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
+++ b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
@@ -7,9 +7,7 @@ import { Dispatch } from 'redux';
import { Action, actions } from '../redux/actions';
import { State } from '../redux/reducer';
import { OrderProcessState, OrderState, ZeroExInstantError } from '../types';
-import { balanceUtil } from '../util/balance';
import { etherscanUtil } from '../util/etherscan';
-import { web3Wrapper } from '../util/web3_wrapper';
import { BuyOrderStateButtons } from '../components/buy_order_state_buttons';
import { errorUtil } from '../util/error';
diff --git a/packages/instant/src/containers/selected_erc20_asset_amount_input.ts b/packages/instant/src/containers/selected_erc20_asset_amount_input.ts
index a090ad8fb..6536e2787 100644
--- a/packages/instant/src/containers/selected_erc20_asset_amount_input.ts
+++ b/packages/instant/src/containers/selected_erc20_asset_amount_input.ts
@@ -11,12 +11,9 @@ import { ERC20AssetAmountInput } from '../components/erc20_asset_amount_input';
import { Action, actions } from '../redux/actions';
import { State } from '../redux/reducer';
import { ColorOption } from '../style/theme';
-import { ERC20Asset, OrderProcessState, ZeroExInstantError } from '../types';
-import { getBestAddress } from '../util/address';
-import { balanceUtil } from '../util/balance';
+import { ERC20Asset, OrderProcessState } from '../types';
import { BigNumberInput } from '../util/big_number_input';
import { errorUtil } from '../util/error';
-import { web3Wrapper } from '../util/web3_wrapper';
export interface SelectedERC20AssetAmountInputProps {
fontColor?: ColorOption;
diff --git a/packages/instant/src/util/balance.ts b/packages/instant/src/util/balance.ts
index 9cb8b8987..24b7b99c3 100644
--- a/packages/instant/src/util/balance.ts
+++ b/packages/instant/src/util/balance.ts
@@ -8,11 +8,6 @@ export const balanceUtil = {
return false;
}
const balanceWei = await web3Wrapper.getBalanceInWeiAsync(takerAddress);
- console.log('balanceWei', balanceWei.toString());
- console.log(
- 'buyQuote.worstCaseQuoteInfo.totalEthAmount',
- buyQuote.worstCaseQuoteInfo.totalEthAmount.toString(),
- );
return balanceWei >= buyQuote.worstCaseQuoteInfo.totalEthAmount;
},
};