Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions substrate/frame/balances/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,14 @@ always operate over the same funds, so they "overlay" rather than "stack".

The Balances module provides implementations for the following traits. If these traits provide the functionality that
you need, then you can avoid coupling with the Balances module.
> **Note:** The `Currency`, `ReservableCurrency`, and `LockableCurrency` traits are deprecated. New code should use the [`fungible`](https://docs.rs/frame-support/latest/frame_support/traits/tokens/fungible/index.html) traits instead.

- [`Currency`](https://docs.rs/frame-support/latest/frame_support/traits/tokens/currency/trait.Currency.html) ⚠️ **Deprecated**: Functions for dealing with a fungible assets system.
- [`ReservableCurrency`](https://docs.rs/frame-support/latest/frame_support/traits/tokens/currency/trait.ReservableCurrency.html) ⚠️ **Deprecated**: Functions for dealing with assets that can be reserved from an account.
- [`LockableCurrency`](https://docs.rs/frame-support/latest/frame_support/traits/tokens/currency/trait.LockableCurrency.html) ⚠️ **Deprecated**: Functions for dealing with accounts that allow liquidity restrictions.
- [`Imbalance`](https://docs.rs/frame-support/latest/frame_support/traits/tokens/imbalance/trait.Imbalance.html): Functions for handling imbalances between total issuance in the system and account balances. Must be used when a function creates new funds (e.g. a reward) or destroys some funds (e.g. a system fee).
- [`OnKilledAccount`](https://docs.rs/frame-support/latest/frame_support/traits/trait.OnKilledAccount.html): Hook that gets called when an account is killed/reaped (removed from the system).

- [`Currency`](https://docs.rs/frame-support/latest/frame_support/traits/trait.Currency.html): Functions for dealing
with a fungible assets system.
- [`ReservableCurrency`](https://docs.rs/frame-support/latest/frame_support/traits/trait.ReservableCurrency.html):
Functions for dealing with assets that can be reserved from an account.
- [`LockableCurrency`](https://docs.rs/frame-support/latest/frame_support/traits/trait.LockableCurrency.html): Functions
for dealing with accounts that allow liquidity restrictions.
- [`Imbalance`](https://docs.rs/frame-support/latest/frame_support/traits/trait.Imbalance.html): Functions for handling
imbalances between total issuance in the system and account balances. Must be used when a function creates new funds
(e.g. a reward) or destroys some funds (e.g. a system fee).
- [`IsDeadAccount`](https://docs.rs/frame-support/latest/frame_support/traits/trait.IsDeadAccount.html): Determiner to
say whether a given account is unused.

## Interface

Expand Down