You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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.
Problem
Surplus capturing JIT orders do not contribute to the total surplus sum for an owner, on the endpoint https://api.cow.fi/docs/#/default/get_api_v1_users__address__total_surplus
Impact
Wrong value (less then actual) shown on the frontend.
To reproduce
Example owner:
https://explorer.cow.fi/address/0xbf8868b754a77e90ea68ffc0b5b10a7c729457e1
Total surplus calculated: 0
Expected behaviour
Total surplus > 0
Screenshots/logs
The text was updated successfully, but these errors were encountered: