Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 757d70d

Browse files
committed
Don't enforce presence of taker address
Just pass the API key through to the maker. Addresses review comment #162 (comment)
1 parent d17b5f1 commit 757d70d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/swap_handlers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class SwapHandlers {
6464
gasPrice,
6565
excludedSources,
6666
affiliateAddress,
67-
apiKey: takerAddress && takerAddress !== NULL_ADDRESS ? req.header('0x-api-key') : undefined,
67+
apiKey: req.header('0x-api-key'),
6868
intentOnFilling,
6969
});
7070
res.status(HttpStatus.OK).send(swapQuote);

0 commit comments

Comments
 (0)