Skip to content

Fix: zero amount opportunity bug#564

Merged
anihamde merged 3 commits intomainfrom
fix/zero-amount-opportunity-bug
May 30, 2025
Merged

Fix: zero amount opportunity bug#564
anihamde merged 3 commits intomainfrom
fix/zero-amount-opportunity-bug

Conversation

@anihamde
Copy link
Contributor

This PR fixes a bug whereby opportunities with 0 amount specified could be created, added to the db, and broadcast to subscribers.

@vercel
Copy link

vercel bot commented May 30, 2025

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
swap-staging ⬜️ Ignored (Inspect) Visit Preview May 30, 2025 3:58pm

Copy link
Contributor

@m30m m30m left a comment

Choose a reason for hiding this comment

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

can you add a check on line 236 and return an error (fees to high or something) if denominator is 0?

@anihamde anihamde merged commit 1aaffaa into main May 30, 2025
3 checks passed
@anihamde anihamde deleted the fix/zero-amount-opportunity-bug branch May 30, 2025 16:06
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.

2 participants