Skip to content

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

Development

Successfully merging this pull request may close these issues.

Error when attempting to fill a partially filled order using fulfillOrders() without providing an explicit unitsToFill parameter.

2 participants