-
Notifications
You must be signed in to change notification settings - Fork 58
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
Fill price js impl #1698
Fill price js impl #1698
Conversation
- It feels wrong to do this, but having a bunch of hardcoded values also feels wrong...
Codecov Report
@@ Coverage Diff @@
## main #1698 +/- ##
=======================================
Coverage 72.77% 72.77%
=======================================
Files 57 57
Lines 720 720
Branches 236 236
=======================================
Hits 524 524
Misses 167 167
Partials 29 29
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Agree we shouldn't use hardcoded values. Ideally, we should add a test for the test helper. It can be done with plain numbers, but the helper will be useful on plenty of other tests where we have a derived number (fillPrice, fees, pnl, etc.) |
853fe55
to
0f26123
Compare
I had a convo with david about how hard it is to debug tests with a bunch of hardcoded numbers..
And then I saw a TODO about fill price, so went ahead an implemented it.
Do we want to use it in the fillPrice tests? It does feel a little wrong to me... Should I create a spreadsheet?