From da01dbb34c43ce3106c33c7d9b3aa04e34d070ba Mon Sep 17 00:00:00 2001 From: Tempe Techie <95053628+tempe-techie@users.noreply.github.com> Date: Tue, 14 May 2024 10:01:33 +0200 Subject: [PATCH] swap: no referrer --- components/swap/SwapTokensModal.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(