diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-10 16:48:05 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-10 16:48:05 +0800 |
commit | 468a20c9ea0dda89376f638f4ff30804046b7fef (patch) | |
tree | af3cde1a7de467e2ebc337ab8da4093bb05442fd /src | |
parent | f24c94f1a88fbeed731205a07f7b5bb0f459abfe (diff) | |
download | dexon-0x-contracts-468a20c9ea0dda89376f638f4ff30804046b7fef.tar.gz dexon-0x-contracts-468a20c9ea0dda89376f638f4ff30804046b7fef.tar.zst dexon-0x-contracts-468a20c9ea0dda89376f638f4ff30804046b7fef.zip |
Remove unused check
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/exchange_transfer_simulator.ts | 4 |
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> { |