five-bells-ledger
five-bells-ledger copied to clipboard
Should not be able to set balance manually
Brought up in https://github.com/interledgerjs/ilp-kit/issues/82#issuecomment-262402999 . Allowing PUT /accounts/:name to set the balance opens up potential errors.
Only admins can update the balance manually, presumably so that they can set up accounts.
A better way to set up accounts is to create an "issuing" account with minimum_allowed_balance set to -infinity.
That way the balances on the ledger always sum to zero, which is a nice sanity check.
So I'm in favor of removing direct balance setting even by admins.