Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Add all buy-side tests for volume filter #629

Merged
merged 3 commits into from
Dec 23, 2020

Conversation

debnil
Copy link
Contributor

@debnil debnil commented Dec 23, 2020

This PR adds all remaining buy-side tests for the volume filter function (volumeFilterFn). It extends #626 to the remaining combinations of filter mode and action.

@debnil debnil requested a review from nikhilsaraf as a code owner December 23, 2020 00:14
Copy link
Contributor

@nikhilsaraf nikhilsaraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thank you 🎉

volumeFilterModeIgnore,
queries.DailyVolumeActionSell,
nil, // base cap nil because this test is for the QuoteCap
pointy.Float64(k.cap), // quote cap
nil, // baseOTB nil because this test is for the BaseCap
nil, // baseOTB nil because this test is for the QuoteCap
Copy link
Contributor

@nikhilsaraf nikhilsaraf Dec 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this comment was fixed to say QuoteCap instead of BaseCap. great catch!

It's sometimes easer to review these minor changes and not skip over them if they are highlighted in the PR with a comment, esp. since it breaks from the general pattern of the rest of the PR. regardless, thanks for fixing! :)

@debnil debnil merged commit df4f2fa into stellar-deprecated:master Dec 23, 2020
@debnil debnil deleted the other-buy-tests branch December 23, 2020 05:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants