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

Swapscout improvements #2362

Open
3 tasks
maikReal opened this issue Nov 5, 2024 · 0 comments
Open
3 tasks

Swapscout improvements #2362

maikReal opened this issue Nov 5, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@maikReal
Copy link
Collaborator

maikReal commented Nov 5, 2024

What to do?

We need to make a couple of imporvements for Swapscout:

  • Add an image banner
  • Add a Merits button similar that we have in our UI
  • Enable Scroll as an addtional network

Image banner

We need to add a banner at the right bottom corner
The banner info:

  • It's an image
  • Should be controlled thought a varialbe
  • The variable contains a URL to an image
  • The format of the banner is a mobile banner. The example you can find here

Banner bahaviour:

  • The image should have a "Close" button that will hide a banner by a pressing on it
  • Show a banner every time on every session until a user won't click on a button (every time on the reload and a page open)
  • If a user clicked on a "Close" button we won't show a banner anymore. We will show a banner only after we'll replace a banner URL link in the env variable (so, after the deployment re-deploy)
  • Don't show a banner on mobile devices

Refernce for the banner: https://jumper.exchange/
Image
Image

Merits button

We need to add the same Merits button as we added to Blockscout instances. The button will be near the Swapscout logo icon at the top of a widget, check the refernce below
The bahviour will be super simple:

  1. When a wallet is disconnected
  2. When a wallet is connected
    • Show a amount of current user Merits using our admin key (so, a user doesn't need to sign a message)
    • By a clicking on a button a user will be redirected to the registration/login process in the Merits program: https://eth.blockscout.com/account/rewards instance

Image

Scroll network

We just need to enable the Scroll network for swapscout and add a custom explorer for it: https://scroll.blockscout.com/

@maikReal maikReal added the enhancement New feature or request label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants