Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

feat: Conversion Aggregation Function #87

Merged
merged 9 commits into from
Feb 6, 2024

Conversation

davidterpay
Copy link
Contributor

@davidterpay davidterpay commented Feb 6, 2024

closes BLO-873

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

Attention: 28 lines in your changes are missing coverage. Please review.

Comparison is base (fa4a8f4) 74.77% compared to head (6b9314a) 74.94%.

Files Patch % Lines
pkg/math/oracle/median.go 79.31% 19 Missing and 5 partials ⚠️
aggregator/math.go 90.00% 2 Missing ⚠️
oracle/config/aggregate_market.go 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #87      +/-   ##
==========================================
+ Coverage   74.77%   74.94%   +0.17%     
==========================================
  Files         132      134       +2     
  Lines        5371     5512     +141     
==========================================
+ Hits         4016     4131     +115     
- Misses       1016     1036      +20     
- Partials      339      345       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davidterpay davidterpay marked this pull request as ready for review February 6, 2024 20:55
}
// CalculateMedian calculates the median from a list of big.Ints. Returns an
// average if the number of values is even.
func CalculateMedian(values []*big.Int) *big.Int {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this live in pkg/math as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Im fine keeping it in the other since it otherwise is going to duplicate testing, can add a test case to move at a later time.

@davidterpay davidterpay merged commit 733f55d into main Feb 6, 2024
@zrbecker zrbecker deleted the terpay/conversion-aggregation branch November 5, 2024 21:03
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