This commit is contained in:
Steve Klebanoff
2018-10-26 19:55:42 -07:00
parent ff295daa5c
commit 3052c8d303
3 changed files with 1 additions and 11 deletions

View File

@@ -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';

View File

@@ -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;

View File

@@ -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;
},
};