Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
@0x/asset-swapper: Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
merklejerk committed Jun 8, 2020
1 parent d0714d8 commit 1a1a777
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,14 @@ export class ExchangeProxySwapQuoteConsumer implements SwapQuoteConsumerBase {
)
.getABIEncodedTransactionData();

let ethAmount = quote.worstCaseQuoteInfo.protocolFeeInWeiAmount;
if (exchangeProxyOpts.isFromETH) {
ethAmount = ethAmount.plus(quote.worstCaseQuoteInfo.takerAssetAmount);
}

return {
calldataHexString,
ethAmount: quote.worstCaseQuoteInfo.protocolFeeInWeiAmount,
ethAmount,
toAddress: this._transformFeature.address,
allowanceTarget: this.contractAddresses.exchangeProxyAllowanceTarget,
};
Expand Down
2 changes: 1 addition & 1 deletion packages/contract-wrappers/CHANGELOG.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
{
"note": "Add `ITransformERC20`",
"pr": "TODO"
"pr": 2591
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion packages/migrations/CHANGELOG.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"pr": 2541
},
{
"note": "Return emtpy Exchange Proxy addresses",
"note": "Return empty Exchange Proxy addresses",
"pr": 2591
}
]
Expand Down

0 comments on commit 1a1a777

Please sign in to comment.