Skip to content

Commit

Permalink
Remove unused code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminLu committed Jun 22, 2021
1 parent 0fec3f2 commit 480bde0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/signer/ammv2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@ export const buildSignedOrder = (order, payload, makerAddress, wethAddress): any
if (makerAssetAddress === wethAddress.toLowerCase()) {
order.makerAssetAddress = NULL_ADDRESS
order.makerAssetData = assetDataUtils.encodeERC20AssetData(NULL_ADDRESS)
} else {
order.makerAssetData = assetDataUtils.encodeERC20AssetData(makerAssetAddress)
}

if (takerAssetAddress === wethAddress.toLowerCase()) {
order.takerAssetAddress = NULL_ADDRESS
order.takerAssetData = assetDataUtils.encodeERC20AssetData(NULL_ADDRESS)
} else {
order.takerAssetData = assetDataUtils.encodeERC20AssetData(takerAssetAddress)
}
// NOTE: for AMM order we don't do signing here
const signedOrder = {
Expand Down

0 comments on commit 480bde0

Please sign in to comment.