-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
services/horizon: Exclude trades with >10% rounding slippage from tra…
…de aggregations (#4178) * Exclude trades with >10% rounding_slippage from trade aggregations * Fixing tests * Add db.NullRat for null bigrats in the db * Add integration tests for rounding slippage filtering in trade aggs * Add --rounding-slippage-filter flag * Fix typo * Review feedback * note div-by-zero * Track the base and counter reserves on each trade so we can sanity-check ingest results * Review feedback * re-use orderbook package to calculate rounding slippage * Clean up test a bit * Missed a few test updates * Clarify terminology around slippage to fix calculations * Add an extra column we might need in order to calculate rounding slippage later * Disable roundingSlippage calc for /paths * OPTIMIZE ALLOCATIONS :robot-face: * Workaround for #4203 * Add changelog entry * RoundingSlippage should be in bips not megabips * remove redundant if clauses * Fixing test * Fix flag description * remove trade reserves tracking for debugging * Add some comments to clarify slippage calculations
- Loading branch information
Paul Bellamy
authored
Feb 21, 2022
1 parent
d2521af
commit f427028
Showing
40 changed files
with
740 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.