Implement Lockable Currency
Before you begin
Declare the necessary dependencies
use frame_support::{ dispatch::DispatchResult, traits::{Currency, LockIdentifier, LockableCurrency, WithdrawReasons}, };const EXAMPLE_ID: LockIdentifier = *b"example ";
Declare your custom pallet types
Create dispatchable functions using the required methods
Examples
Related material
Last updated