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

Commit 03f7673

Browse files
committed
Add comments around using Forwarder as Taker
Addresses review comment #162 (comment)
1 parent d8642e0 commit 03f7673

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/services/swap_service.ts

+3
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ export class SwapService {
9494
? undefined
9595
: {
9696
...rfqt,
97+
// If this is a forwarder transaction, then we want to request quotes with the taker as the
98+
// forwarder contract. If it's not, then we want to request quotes with the taker set to the
99+
// API's takerAddress query parameter, which in this context is known as `from`.
97100
takerAddress: isETHSell ? getContractAddressesForChainOrThrow(CHAIN_ID).forwarder : from,
98101
},
99102
};

0 commit comments

Comments
 (0)