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

fix: buyer fees stored in the wrong order in the trade DB #11622

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

wwestgarth
Copy link
Contributor

@wwestgarth wwestgarth commented Aug 28, 2024

A selection of fee related tests have been failing on the overnight run because the liqudity fee on a trade is being reported as 0 when it should be non-zero.

Turns out when we flush trades into the DB we construct the rows by hand, and the order of the fees was not the same as the order of the rows, so we were setting the liquidity-fee row to the buyback-fee in the trade.

@wwestgarth wwestgarth self-assigned this Aug 28, 2024
@wwestgarth wwestgarth requested a review from a team as a code owner August 28, 2024 15:30
@wwestgarth wwestgarth merged commit 001ed76 into develop Aug 28, 2024
18 of 20 checks passed
@wwestgarth wwestgarth deleted the fix-trade-fee-api branch August 28, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants