diff options
Diffstat (limited to 'src/utils')
-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> { |