diff --git a/components/swap/SwapTokensModal.vue b/components/swap/SwapTokensModal.vue index 90aa1dc..cf1c3dc 100644 --- a/components/swap/SwapTokensModal.vue +++ b/components/swap/SwapTokensModal.vue @@ -123,6 +123,9 @@ export default { const inputTokenAmountWei = ethers.utils.parseUnits(this.inputTokenAmount, this.inputToken?.decimals); + // TODO: address zero because IggySwapRouter has an error if referrer is passed + const referrer = ethers.constants.AddressZero; // fetchReferrer(window); + try { const tx = await swapTokens( this.signer, @@ -132,7 +135,7 @@ export default { inputTokenAmountWei, this.outputTokenAmountWei, this.routerAddress, - fetchReferrer(window) + referrer ); const toastWait = this.toast(