5

Background

when reading the code about pallet balance and some low-level code.I notice some terminology about balance.

terminology

  • Burn
  • Slash
  • Reserve
  • Lock
  • Withdraw
  • deposit

What is the meaning and specific difference of the above terminology, I have some doubts about this

1 Answer 1

6
  • Burn: To remove some balance or asset from issuance.
  • Slash: The reduce an account's balance as punishment.
  • Reserve: To set aside some account's balance so it cannot be used in any other way but is still associated with the owner.
  • Lock: To set a lower-limit on the account balance so a transfer or other elective balance-reducing operation cannot reduce it below this amount. Unlike with reserving, multiple locks on the same account "overlap".
  • Withdraw: To reduce the balance of an account. There is an expectation that this is a counterpart to some other operation(s) which will leave a deficit of tokens and thus that by doing both/all operations, the total issuance across the system will be correctly accounted.
  • Deposit: To increase the balance of an account. There is an expectation that this is a counterpart to some previous operation(s) which left a surplus of tokens and thus that by doing both/all operations, the total issuance across the system will be correctly accounted.
2
  • thank you very much, i got it !
    – bun
    May 5, 2022 at 6:34
  • Thanks for your response. There is also Endowed. What does it mean?
    – ManUtopiK
    Jun 7, 2022 at 10:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.