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::Currency as Currency<T::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 is BlockHashCount in the past. (this is to prevent replay attacks)
  • dest: The destination account.
  • dest_is_oneshot: If set to true, then a oneshot account is created at dest. Else, dest has to be an existing account.
  • dest2: The second destination account.
  • dest2_is_oneshot: If set to true, then a oneshot account is created at dest2. Else, dest2 has to be an existing account.
  • balance1: The amount transfered to dest, the leftover being transfered to dest2.

§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.