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

bugfix: handle undefined unitsToFill in fulfillOrders() #580

Merged

Conversation

naveen-imtb
Copy link
Contributor

Motivation

Fixes #578

Solution

This PR fixes the erroneous basisPoints calculation formula when handling the fulfilment of a partially filled orders using fulfillOrders(). This caused the transaction to revert with an overflow error. As an extension to this fix, the tips scaling logic has also been updated to handle the scenario where unitsToFill is undefined.

@naveen-imtb naveen-imtb changed the title bugfix: handle undefined unitsToFill in fulfillOrders bugfix: handle undefined unitsToFill in fulfillOrders() Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants