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

feat: check allowance before approve #166

Merged
merged 6 commits into from
Nov 28, 2024

Conversation

bayological
Copy link
Member

@bayological bayological commented Nov 27, 2024

Description

This adds a check for the connected account's allowance, enabling us to skip the approval step if sufficient allowance already exists. It also serves as a basic fix to allow safes to use the app. Previously, safes would get stuck at the approval step because it was always triggered, regardless of the allowance.

Other changes

  • None

Tested

  • Tested swaps function normally & approval is skipped when allowance > amount in
  • Had assistance from Juna to confirm the ColombiaDao safe could swap

Related issues

Checklist before requesting a review

  • I have performed a self-review of my own code
  • I have added tests that prove my fix is effective or that my feature works
  • The PR title follows the conventions
  • I have run the regression tests

Copy link

vercel bot commented Nov 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mento-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 8:16pm

@bayological bayological marked this pull request as ready for review November 27, 2024 20:10
@bayological bayological requested review from a team, chapati23, RyRy79261 and baroooo and removed request for a team and chapati23 November 27, 2024 20:11
Copy link
Contributor

@baroooo baroooo left a comment

Choose a reason for hiding this comment

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

@bayological bayological merged commit fdcdaea into dev Nov 28, 2024
7 checks passed
@bayological bayological deleted the feat/check-allowance-before-approve branch November 28, 2024 15:35
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