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

Move approval into a separate button from shield #45

Merged
merged 9 commits into from
Jan 19, 2023

Conversation

alexkeating
Copy link
Collaborator

Description

I did this as a part of #17. Before creating the shield review modal it made sense to have an approval button, and add the review modal that pops up after approval. Instead of doing an approval on every transaction we fetch the allowances on loading of the app and check whether the token needs approval.

@netlify
Copy link

netlify bot commented Jan 17, 2023

Deploy Preview for earnest-cascaron-03dbfc ready!

Name Link
🔨 Latest commit fcbae1e
🔍 Latest deploy log https://app.netlify.com/sites/earnest-cascaron-03dbfc/deploys/63c9aca4c9e0780008a7f5fa
😎 Deploy Preview https://deploy-preview-45--earnest-cascaron-03dbfc.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@alexkeating alexkeating requested a review from mds1 January 17, 2023 02:10
@alexkeating alexkeating changed the title Feature/confirmation modal Move approval to be button Jan 17, 2023
@alexkeating alexkeating changed the title Move approval to be button Move approval into a separate button from shield Jan 17, 2023
utils/networks.ts Outdated Show resolved Hide resolved
hooks/useTokenAllowances.tsx Outdated Show resolved Hide resolved
hooks/useTokenAllowances.tsx Outdated Show resolved Hide resolved
contexts/TokenContext.tsx Show resolved Hide resolved
components/TxForm.tsx Outdated Show resolved Hide resolved
@alexkeating alexkeating force-pushed the feature/confirmation-modal branch from e068fe1 to ced2e67 Compare January 17, 2023 19:31
components/TxForm.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@wildmolasses wildmolasses left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, one comment on hardcoded WETH address in token approval

components/TxForm.tsx Show resolved Hide resolved
@alexkeating alexkeating merged commit 3eecdd2 into main Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants