Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

[CLAIM - Approve] Wire new approve logic into app (fixes broken merge stuff also) #2233

Merged
merged 5 commits into from
Jan 20, 2022

Conversation

W3stside
Copy link
Contributor

@W3stside W3stside commented Jan 20, 2022

Summary

Wires in the new useApproveCallbackFromClaim - which has been tweaked to better handle how the claim flow works.

Testing

  1. Use an account that has GNO/USDC & NO APPROVALS
  2. Using same account, approve GNO/USDC and note that in MM the approve amount is huge
  3. reload app, see that it is approved
  4. Using same connected account, hit "Change account" and paste an account with paid claims GNO/USDC (fresh address that doesn't have approvals)
  5. See that tokens are approved because you are using the connected account from step 1 which is approved
  6. ETH is already approved

@W3stside W3stside changed the title Claim approve implement [CLAIM - Approve] Wire new approve logic into app (fixes broken merge stuff also) Jan 20, 2022
@W3stside W3stside requested review from a team January 20, 2022 14:50
@github-actions
Copy link
Contributor

  • 🔭 GP Swap: Gnosis Protocol v2 Swap UI

@W3stside W3stside merged commit 5a787bd into claim-approve-optional-param Jan 20, 2022
@elena-zh
Copy link

Works as described.
I was able to proceed with claiming in this PR

W3stside added a commit that referenced this pull request Jan 24, 2022
… stuff also) (#2233)

* move approve logic from Claim > InvestOption

* helper utils

* tweak claim approve hook

* apply @nenadV91's suggested fix

* path
maria-vslvn pushed a commit that referenced this pull request Jan 25, 2022
W3stside added a commit that referenced this pull request Jan 25, 2022
… stuff also) (#2233)

* move approve logic from Claim > InvestOption

* helper utils

* tweak claim approve hook

* apply @nenadV91's suggested fix

* path
W3stside added a commit that referenced this pull request Jan 25, 2022
)

* mod the mod

* edit the modded trade and claim approve hooks

* edit places in app using new hook params

* fix approve logic conditional

* change logic

* [CLAIM - Approve] Wire new approve logic into app (fixes broken merge stuff also) (#2233)

* move approve logic from Claim > InvestOption

* helper utils

* tweak claim approve hook

* apply @nenadV91's suggested fix

* path

* allow investmentAmount ro take maxCost

* remove investmentAmount

* && instead of ||

* tweak to approve logic

* fix rebase error
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants