aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-10 16:48:05 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-10-10 16:48:05 +0800
commit468a20c9ea0dda89376f638f4ff30804046b7fef (patch)
treeaf3cde1a7de467e2ebc337ab8da4093bb05442fd
parentf24c94f1a88fbeed731205a07f7b5bb0f459abfe (diff)
downloaddexon-sol-tools-468a20c9ea0dda89376f638f4ff30804046b7fef.tar
dexon-sol-tools-468a20c9ea0dda89376f638f4ff30804046b7fef.tar.gz
dexon-sol-tools-468a20c9ea0dda89376f638f4ff30804046b7fef.tar.bz2
dexon-sol-tools-468a20c9ea0dda89376f638f4ff30804046b7fef.tar.lz
dexon-sol-tools-468a20c9ea0dda89376f638f4ff30804046b7fef.tar.xz
dexon-sol-tools-468a20c9ea0dda89376f638f4ff30804046b7fef.tar.zst
dexon-sol-tools-468a20c9ea0dda89376f638f4ff30804046b7fef.zip
Remove unused check
-rw-r--r--src/utils/exchange_transfer_simulator.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/utils/exchange_transfer_simulator.ts b/src/utils/exchange_transfer_simulator.ts
index ad265821d..71a9ed212 100644
--- a/src/utils/exchange_transfer_simulator.ts
+++ b/src/utils/exchange_transfer_simulator.ts
@@ -104,9 +104,7 @@ export class ExchangeTransferSimulator extends BalanceAndProxyAllowanceLazyStore
}
await this.decreaseProxyAllowanceAsync(tokenAddress, from, amountInBaseUnits);
await this.decreaseBalanceAsync(tokenAddress, from, amountInBaseUnits);
- if (!_.isUndefined(to)) {
- await this.increaseBalanceAsync(tokenAddress, to, amountInBaseUnits);
- }
+ await this.increaseBalanceAsync(tokenAddress, to, amountInBaseUnits);
}
private async decreaseProxyAllowanceAsync(tokenAddress: string, userAddress: string,
amountInBaseUnits: BigNumber.BigNumber): Promise<void> {