-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add claim vesting iframe hook #4924
base: develop
Are you sure you want to change the base?
Conversation
@JeanNeiverth is attempting to deploy a commit to the cow Team on Vercel. A member of the Team first needs to authorize it. |
Just letting a note here: if you change the CoW light/dark mode during the hook app execution, you will see it does not change the hook theme, although it will set the theme correctly if you quit and reopen the hook. The hook is implemented in a way it should respond to context.isDarkMode changes, so I think what is causing the issue is the @cowprotocol/hook-dapp-lib needs to be updated to trigger this theme change. @alexdorsch @alfetopito can you check this? |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hey @JeanNeiverth , great job! Thank you for building this hook, and for the great PR description. Still, I have some issues found:
|
Hi @elena-zh, thanks for the review! I could handle most of the points, but others I believe will need other actions by the CoW team side Fixed issues:
Note: as this hook is an IFrame, you no longer have to wait a new deploy on your side (as it is deployed in Bleu side), so you can already check these changes in the same app you ran before. The only changes that will require a deploy on CoW side are the ones below. Pending
When these pending topics get resolved, I will ping you again here. Feel free to add other comments / issues in the mean time if you like :) |
Hey @JeanNeiverth , thank you!
Thanks! |
Summary
Errors cases:
Example:
Success case:
How to test:
Access /#/100/swap/hooks/WXDAI
Connect your wallet and switch to Gnosis chain
In Hooks > Add Pre-Hook Action, the Claim Vesting Hook should appear in the "All hooks" section
Insert a valid vesting contract. Here is a mapping of addresses to vesting contracts that should work:
Address:
0x9FA3c00a92Ec5f96B1Ad2527ab41B3932EFEDa58
Vesting Contract:
0x77e62665422fc216ca278b7655b3329dc5ba173c
Address:
0xFF714b8b0e2700303eC912BD40496C3997ceEa2b
Vesting Contract:
0xf078d4ADBa99BaC7Ab4a64ea3F24b6307107198d
Address:
0x8FAb71C0d4272698A3B2d1F3Ed5FC3c1B9b3E531
Vesting Contract:
0xac7CBD5DD1D64bF6C9cdCceCf0cb7c909C3AF4A6