-
Notifications
You must be signed in to change notification settings - Fork 70
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
Consider renaming settlement related variables #120
Comments
Credit limit seems fine for negative minimum balances but strange if you ever had a positive minimum balance (it would be a negative credit limit). Having a positive minimum balance would be one way to implement a kind of signup fee, though there might be more straightforward ways of implementing it. "Safe floor" seems less descriptive to me. Happy to consider alternatives but
Agreed that that doesn't make sense |
@gakonst Do you still think we should change the names or can we close this issue? |
I've got used to them at this point so let's close it. |
Reopening this since it's confusing that the maximum balance in the settlement RFC and Evan agrees that renaming minimum to "credit limit" is clearer, but some open questions are:
|
We should make a decision on this issue before finalizing #557 |
I think we can rename the
min_balance
variable to something like:credit_limit
. It's slightly clearer I think.settle_to
could also be renamed to something more descriptive, not sure yet what: I'm thinking along the lines of a "safe floor" such that settlements aren't triggered too often.Sidenote: Does it ever make sense to set
settle_to
above threshold? Think not?https://github.com/emschwartz/interledger-rs/blob/master/crates/interledger-api/src/lib.rs#L61
https://github.com/emschwartz/interledger-rs/blob/master/crates/interledger-store-redis/src/account.rs#L35
The text was updated successfully, but these errors were encountered: