From ab28e42c22f59eedfa563bd0a3022cd5fee1ab14 Mon Sep 17 00:00:00 2001 From: Lawrence Forman Date: Thu, 3 Sep 2020 01:07:00 -0400 Subject: [PATCH] `@0x/asset-swapper`: Fix mooniswap encoding --- .../asset-swapper/src/utils/market_operation_utils/orders.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/asset-swapper/src/utils/market_operation_utils/orders.ts b/packages/asset-swapper/src/utils/market_operation_utils/orders.ts index 2447baf9a6..b12af98f6a 100644 --- a/packages/asset-swapper/src/utils/market_operation_utils/orders.ts +++ b/packages/asset-swapper/src/utils/market_operation_utils/orders.ts @@ -417,7 +417,7 @@ function createKyberBridgeData(fromTokenAddress: string, hint: string): string { } function createMooniswapBridgeData(takerToken: string, poolAddress: string): string { - const encoder = AbiEncoder.create([{ name: 'takerToken', type: 'address' }, { name: 'pool', type: 'address' }]); + const encoder = AbiEncoder.create([{ name: 'takerToken', type: 'address' }, { name: 'poolAddress', type: 'address' }]); return encoder.encode({ takerToken, poolAddress }); }