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

Fill price js impl #1698

Merged
merged 9 commits into from
Jul 5, 2023
Merged

Fill price js impl #1698

merged 9 commits into from
Jul 5, 2023

Conversation

0xjocke
Copy link
Contributor

@0xjocke 0xjocke commented Jun 30, 2023

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?

@codecov
Copy link

codecov bot commented Jun 30, 2023

Codecov Report

Merging #1698 (0d0b142) into main (df26ebd) will not change coverage.
The diff coverage is n/a.

@@           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           
Flag Coverage Δ
core-contracts 93.26% <ø> (ø)
core-modules 90.47% <ø> (ø)
core-utils 68.57% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@leomassazza
Copy link
Contributor

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.)

Base automatically changed from settle-event-improvement to main July 5, 2023 02:42
@0xjocke 0xjocke merged commit cd99e3b into main Jul 5, 2023
19 checks passed
@0xjocke 0xjocke deleted the fill-price-js-impl branch July 5, 2023 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants