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

Allow to set maximum peg in/out for mint #209

Merged
merged 4 commits into from
May 13, 2023
Merged

Conversation

sihamon
Copy link
Collaborator

@sihamon sihamon commented May 13, 2023

Add parameter mint_max_peg_in and mint_max_peg_out to optionally limit peg in/out for mint. If set, these are added to /info.
Issues: closes #196

@codecov
Copy link

codecov bot commented May 13, 2023

Codecov Report

Patch coverage: 18.75% and project coverage change: -0.05 ⚠️

Comparison is base (4088ab2) 56.94% compared to head (7022d28) 56.90%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #209      +/-   ##
==========================================
- Coverage   56.94%   56.90%   -0.05%     
==========================================
  Files          41       41              
  Lines        3159     3288     +129     
==========================================
+ Hits         1799     1871      +72     
- Misses       1360     1417      +57     
Impacted Files Coverage Δ
cashu/mint/ledger.py 31.41% <0.00%> (-0.66%) ⬇️
cashu/mint/router.py 0.00% <0.00%> (ø)
cashu/core/base.py 95.07% <100.00%> (+0.02%) ⬆️
cashu/core/settings.py 97.33% <100.00%> (+0.07%) ⬆️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@callebtc callebtc merged commit e7df202 into main May 13, 2023
@callebtc callebtc deleted the mint-max-peg-in-out branch May 13, 2023 18:41
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.

[Mint] Feature request: Demo mode with in/out caps
2 participants