Skip to content

Commit

Permalink
swap: no referrer
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed May 14, 2024
1 parent 8b512b5 commit da01dbb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/swap/SwapTokensModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -132,7 +135,7 @@ export default {
inputTokenAmountWei,
this.outputTokenAmountWei,
this.routerAddress,
fetchReferrer(window)
referrer
);
const toastWait = this.toast(
Expand Down

0 comments on commit da01dbb

Please sign in to comment.