Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(widget-configurator): use different default partner fee address per chain #4942

Merged
merged 5 commits into from
Oct 7, 2024

Conversation

alfetopito
Copy link
Collaborator

@alfetopito alfetopito commented Oct 3, 2024

Update 2024/10/07

Added arb1 address
Changed the types so it accepts the partner fee by network. Default embed code looks like this now, when fee is set:
image

Summary

Fixes #4937

Note: pointing to main to release is as a hotfix. It should go live as soon as it's merged, not needing a deployment.

To Test

  1. Open widget configurator
  2. Set partner fee to a value > 0
  3. Place a SWAP order on every chain
  • Gchain should use the new address
  • All other chains should use the former address

Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cosmos ✅ Ready (Inspect) Visit Preview Oct 7, 2024 4:07pm
cowfi ✅ Ready (Inspect) Visit Preview Oct 7, 2024 4:07pm
explorer-dev ✅ Ready (Inspect) Visit Preview Oct 7, 2024 4:07pm
swap-dev ✅ Ready (Inspect) Visit Preview Oct 7, 2024 4:07pm
widget-configurator ✅ Ready (Inspect) Visit Preview Oct 7, 2024 4:07pm

Comment on lines -14 to +15
const prKey = window.location.hostname.replace('widget-configurator-git-', '').replace('-cowswap.vercel.app', '')
return `https://swap-dev-git-${prKey}-cowswap.vercel.app`
// TODO: revert before merging!!
return 'https://swap-dev-git-fix-widget-configurator-fee-recipient-cowswap.vercel.app/'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to revert this before merging!!

Copy link
Contributor

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@alfetopito alfetopito changed the title fix(widget-configurator): use different default partner fee address for gchain fix(widget-configurator): use different default partner fee address per chain Oct 7, 2024
@alfetopito alfetopito merged commit f282b94 into main Oct 7, 2024
11 of 12 checks passed
@alfetopito alfetopito deleted the fix/widget-configurator-fee-recipient branch October 7, 2024 16:14
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
RELEASE Included in the release that is being closed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants