-
Notifications
You must be signed in to change notification settings - Fork 43
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
Create UI for permit2 nonce invalidation #73
Comments
/assign |
Too many assigned issues, you have reached your max of 2 |
@rndquu my two PRs are in review so I'll just start working on this anyway |
@Venoox The time limit for this bounty is on Mon, 26 Jun 2023 13:28:16 GMT |
I think we also need a dropdown menu for selecting the chain? |
We are going to signal the selected chain to the user interface via a query parameter in the URL. If I can find the link to the pull request I will leave it here. |
I guess you're taking about this issue but permit URL is not connected with the current issue |
Perhaps it is better to use currently selected chain in metamask |
I think the optimal user flow is to allow a treasurer to be able to click a permit link (in a GitHub comment) and then invalidate it if needed. In this case, all of the permit details, including the network ID, is available to the treasurer. This flow is a lot more efficient to implement, and less burdensome for the user to perform the function. |
So here we should add a new button "invalidate" which redirects a treasurer to "invalidate nonce" page with prefilled inputs, right? |
Why not just handle it on the same page? All we need to do is detect that the permit treasurer wallet is the same as the connected wallet on the client. |
Yes, you're right. So if the connected wallet in the https://pay.ubq.fi/ page is a permit2 signer then show the "invalidate" button. On "invalidate" buttion click we should simply sign and send tx without an additional UI for the @Venoox sorry that the requirements are updated, could you implement the proposed solution? |
No problem. Also correct me if I'm wrong but we cannot differentiate between claimed nonce and invalidated nonce, right? |
Anywhere you see fit
We can differentiate but it requires parsing all transactions from the permit2 signer address (i.e. bot's wallet). So keep it simple. So if nonce is unclaimed then display the "invalidate" button. |
Would you mind updating the spec in your original comment @rndquu |
@Venoox pls check the updated description |
Do you have any updates @Venoox? If you would like to release the bounty back to the DevPool, please comment |
Releasing the bounty back to dev pool because the allocated duration already ended! |
/assign |
Too many assigned issues, you have reached your max of 2 |
I have it ready, waiting for #76 |
|
/assign |
@Venoox The time limit for this bounty is on Thu, 06 Jul 2023 14:58:49 GMT Your currently set address is: |
@0xcodercrane why isn't the payment permit generated here? |
My fear about handling the payment manually is that I believe this can later be regenerated but let's just try and be careful about it I don't want @Venoox to be waiting on compensation due to our internal issues. |
It seems that wrong parameters are passed to the Check this permit It was invalidated from the
The thing is that this permit is still valid but the invalidation transaction had been executed earlier From what I understand the invalidation transaction params should have been the following ones:
Could you fix it? P.S. Note to myself: do not forget to invalidate this permit when the current issue is fixed Update: invalidated this permit via UI from the PR fix |
@Venoox - Releasing the bounty back to dev pool because the allocated duration already ended! |
I wanted to fix it but I see you already went ahead and fixed it |
Permit generation skipped since this issue didn't qualify as bounty If you enjoy the DevPool experience, please follow Ubiquity on GitHub and star this repo to show your support. It helps a lot! |
This payout page is responsible for bounty claims (claim example). Bounty claims are generated with the help of the uniswap's permit2 contract. Each issue has a unique bounty claim URL thanks to the permit2 nonce.
Sometimes there are cases when we should invalidate nonces for some claim URLs in case of the bot's error or smth else. That is why we need a friendly UI for nonce invalidation.
What should be done:
On-chain example of nonce invalidation here
The text was updated successfully, but these errors were encountered: