Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust the sql query for total surplus (#3090)
# Description Fixes #3089 # Changes <!-- List of detailed changes (how the change is accomplished) --> Includes orders from "jit_orders" to calculate the total surplus. - [ ] Updated sql query. ## How to test Executed manually the new query against prod db. Two things are verified: 1. https://explorer.cow.fi/address/0xbf8868b754a77e90ea68ffc0b5b10a7c729457e1 now returns non-zero surplus. 2. Regular owners surplus remains the same, so this change did not break existing functionality. Performance should be good since "jit_orders" table also has index on owners.
- Loading branch information