Function pallet_oneshot_account::pallet::dispatchables::consume_oneshot_account_with_remaining
source · pub fn consume_oneshot_account_with_remaining<T: Config>(
block_height: BlockNumberFor<T>,
dest: Account<<T::Lookup as StaticLookup>::Source>,
remaining_to: Account<<T::Lookup as StaticLookup>::Source>,
balance: <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance,
)Expand description
Consume a oneshot account then transfer some amount to an account, and the remaining amount to another account.
block_height: Must be a recent block number. The limit isBlockHashCountin the past. (this is to prevent replay attacks)dest: The destination account.dest_is_oneshot: If set totrue, then a oneshot account is created atdest. Else,desthas to be an existing account.dest2: The second destination account.dest2_is_oneshot: If set totrue, then a oneshot account is created atdest2. Else,dest2has to be an existing account.balance1: The amount transfered todest, the leftover being transfered todest2.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::consume_oneshot_account_with_remaining.