-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add MINT_MAX_BALANCE_ISSUED setting #646
Comments
I wonder if this is information we should display in a |
Agree, but I think it's not a prerequisite for implementation. From user pov max one time mint / melt limits that are already there are more important then a total. |
@minibits-cash There's two ways I would do this:
What do you think? |
I think it's fully upon mint to enforce it and just fail the first mint request hitting the limit. |
Yes. I was referring to how I would implement this here in Nutshell. bff30d4#diff-563ab1fc2a5b2676a9794be3b08bb863afc36b495cbe4653ced3fdeb430bf530R252-R256 Looks like there already is a check of the first type I mentioned. Although it doesn't seem to account for different units. |
Ah sorry, I misunderstood that. Ad balance check: I believe nutshell already uses database views to calculate overall minted and melted amounts as well as issued balance. Not sure how it handles the units tho. |
I now found that there already is MINT_MAX_BALANCE existing setting doing the same, so I close this one. |
Related PR #652 could then focus to extend existing limits so they support multiple units (as they would likely be incorrectly applied as of now): Limits |
There is now separate issue for this extended scope: #650 |
MINT_MAX_BALANCE_ISSUED would serve the purposes, when the mint operator wants to make sure the mint can not issue more units of ecash than the configured value.
This can serve multiple purposes - as a security limit as well as an imposed limit in case the unit issued is backed by a derivative position at the exchange that is pre-funded - i.e. fully hedged against exchange rate changes to bitcoin upfront it is available to be issued as ecash.
The text was updated successfully, but these errors were encountered: