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

REFACTOR: Extract and move FeeBudget from xgap #1644

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Conversation

narumiruna
Copy link
Collaborator

No description provided.

@narumiruna narumiruna requested review from c9s and kbearXD May 28, 2024 12:36
}

func (s *State) IsOver24Hours() bool {
return time.Since(s.AccumulatedFeeStartedAt) >= 24*time.Hour
Copy link
Owner

Choose a reason for hiding this comment

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

can we move this to util? it seems like we use it a lot

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@narumiruna narumiruna force-pushed the narumi/fee-budget branch 2 times, most recently from 892c607 to 9e5b202 Compare June 18, 2024 10:22
Copy link

codecov bot commented Jun 18, 2024

Codecov Report

Attention: Patch coverage is 64.00000% with 18 lines in your changes missing coverage. Please review.

Project coverage is 22.75%. Comparing base (5098c3a) to head (9cbf8a0).
Report is 7 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1644      +/-   ##
==========================================
+ Coverage   22.71%   22.75%   +0.03%     
==========================================
  Files         619      622       +3     
  Lines       44697    44783      +86     
==========================================
+ Hits        10153    10189      +36     
- Misses      33810    33855      +45     
- Partials      734      739       +5     
Files Coverage Δ
pkg/strategy/common/fee_budget.go 64.00% <64.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b6bf2f...9cbf8a0. Read the comment docs.

@narumiruna narumiruna merged commit 396ee68 into main Jun 20, 2024
5 checks passed
@narumiruna narumiruna deleted the narumi/fee-budget branch June 20, 2024 13:26
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