-
Notifications
You must be signed in to change notification settings - Fork 101
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
feat(hook-store): Add Uniswap v2 withdraw hook dapp #5155
base: develop
Are you sure you want to change the base?
feat(hook-store): Add Uniswap v2 withdraw hook dapp #5155
Conversation
@yvesfracari is attempting to deploy a commit to the cow Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @yvesfracari , thank you
But I have to say that nothing is working here.
- I have a liquidity token on Ethereum, and it is in the Yield list. but it is not displayed in the pools list in the hook
- When I search for this pool, it shows me an error
- Same happens on Arbitrum
- It would be nice to add this functionality to Sepolia
- It would be nice to truncate trailing and preceding spaces when paste an address into the search field
- Overall, it would be great to add a simple validation on an address format into the field
Overall, could you please check the functionality using the preview link on your side before sending it for my review?
Thank you!
All the reported errors should be fixed now. Thanks and let me know of more errors. |
Hey Pedro, I have a question about this screen: Here, it's searching by an address. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @yvesfracari ,
thanks, but still:
-
Could you please clarify why this happens on console when I open the hook on Ethereum?
-
On Ethereum, I don't see my UNI pool details (however, I have an LP token there)
-
As Leandro pointed out in the comment above, I'm also confused with the message that is displayed by default on the list opening: I have not done anything yet, and it says about incorrect format...
-
As for address validation, might it be possible to show this error when a user starts typing it? Something like it is already implemented in one of vesting hooks:
-
I've noticed that the pool's search is reset in several seconds: the loader appears, and the search field area is closed. Could you please take a look why this happens?
Thanks!
@anxolin @alfetopito @elena-zh Thank you all for the feedbacks. Sorry for the errors. I will try to group the feedbacks and reply them together. 1 - Supported chains: I added the support for sepolia on the 2 - Importing and searching pools: The text field is used for both importing and search for pools. That is why I didn't implemented the suggested 3- Pool list: As it works on the "CoW AMM Withdraw" hook dapp, the app was loading only pools that the user has. However, now the app loads all pools and sort them (as @anxolin suggested). Since this is a long list, we're no longer displaying price information of the pools. Instead, we're showing the user balance in LP tokens. This also fix the rate limit errors that @elena-zh reported on mainnet (sorry I was testing on arb) and the re-renders reported by @anxolin . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @yvesfracari , thank you!
But still there is a bunch of issues I faced:
- Pool tokens balances are not displayed on Arb and Ethereum
- Link to a pool details navigate to Balancer
- When I search for a token, and a token is a LP token, it says 'not found'
- Besides, for me it is illogical to show 'Try placing your LP token address on the search bar.' if I've already done it. I'd remove this message at all...
- Sometimes, when I search for a LP token, I face a red error message, but IDK what is wrong here:
Might it be possible to add explanation about the error? - The hook has not been added to Base (as @anxolin suggested)
- There are a lot of v2 pools on sepolia, but nothing is displayed in the list. I assume that this is due to they are absent in the LP list. Might it be possible to fetch them?
- USD estimation for WETH token is missing on Sepolia
- I tried to add a hook on sepolia, but it ended up with error:
Details:
Calldata
:
"0xa8481abe00000000000000000000000000000000000000000000000000000000000000a031373333383435323630353136000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000067586f0f0000000000000000000000009fa3c00a92ec5f96b1ad2527ab41b3932efeda580000000000000000000000000000000000000000000000000000000000000720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000038000000000000000000000000000000000000000000000000000000000000004a0000000000000000000000000164ffe42adcf8a147090a5981ad0881cc11ecfe6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e4d505accf0000000000000000000000009fa3c00a92ec5f96b1ad2527ab41b3932efeda5800000000000000000000000079932c178ad3d0a4864b0322ce7a8405d74de290ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000070c00868000000000000000000000000000000000000000000000000000000000000001c8852758c0f6da983164020656e5a3516b71f4cfe59085cb8a45476cbc7d9e7511189263771d79566a4c4d91ef9c669b67e41baea3dea8c980ff84f9772eba23700000000000000000000000000000000000000000000000000000000000000000000000000000000164ffe42adcf8a147090a5981ad0881cc11ecfe6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006423b872dd0000000000000000000000009fa3c00a92ec5f96b1ad2527ab41b3932efeda5800000000000000000000000079932c178ad3d0a4864b0322ce7a8405d74de29000000000000000000000000000000000000000000000000003ecdbf2cc5b8c7700000000000000000000000000000000000000000000000000000000000000000000000000000000164ffe42adcf8a147090a5981ad0881cc11ecfe6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044095ea7b3000000000000000000000000ee567fe1712faf6149d80da1e6934e354124cfe300000000000000000000000000000000000000000000000003ecdbf2cc5b8c7700000000000000000000000000000000000000000000000000000000000000000000000000000000ee567fe1712faf6149d80da1e6934e354124cfe3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e4baa2abde0000000000000000000000007b79995e5f793a07bc00c21412e50ecae098e7f9000000000000000000000000b4f1737af37711e9a5890d9510c9bb60e170cb0d00000000000000000000000000000000000000000000000003ecdbf2cc5b8c77000000000000000000000000000000000000000000000000004657febe8d7fff00000000000000000000000000000000000000000000000036f4bf04de8bff680000000000000000000000009fa3c00a92ec5f96b1ad2527ab41b3932efeda580000000000000000000000000000000000000000000000000000000067586eea0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000419cdcedb3e1dbcd31c91d1c8b9cb3360acd78c1a3b765e3ff0480450f225db4623a2d78b9e7b759f93b21b9c736f0e82e4d85a79c417eaa0eec13e1e036fe92901c000000000000000000000000000000000000000000000000000000000000000001"
chainId
:
11155111
currentBlock
:
7251147n
currentTimestamp
:
1733845271
target
:
"0x00E989b87700514118Fa55326CD1cCE82faebEF6"
Thanks
@elena-zh Thanks for the feedbacks! 1- It was a rounding issue. Now should be ok. By the way, all these replies are related with my local tests. Can you authorize the new deployment so I can test? |
388de8b
to
2e229c6
Compare
@yvesfracari could you pull the latest changes from |
Hi @yvesfracari , thank you for your fixes! Still, some issues:
Thank you |
@elena-zh Thanks for the feedback. The errors 2-4 are fixed. As I mentioned on our chat, the 1 error is due to an undeployed contract on Base. I think that we can test it again once it is deployed. |
Hey @yvesfracari , thank you. The contract on Base has been deployed, hooks are working there now. As for issues:
Thanks! |
Hey @elena-zh ! Currently, there is only 1 Uni v2 pool on the CoW LP Token List for arbitrum. The pools that you presented are CoW AMMs. About resetting the search field, it is done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
Summary
Add Uniswap V2 Withdraw Hook Dapp
To Test
1- Connect your wallet and switch to any uni v2 deployed chain (Arbitrum and Mainnet)
2- In Hooks > Add Pre-Hook Action, the Uni V2 Deposit should appear in the "All hooks" section
3- Fill the form data and add the pre-hook
4- Check with the simulation feature if it is working as expected.
Notes: