collect_pooled_assets

function collect_pooled_assets(account: account, recipient_id: byte_array)(source)

Moves the assets from the pool account where they were stored to the newly registered account. Marks the account_creation_transfers as done. Does not check if the rules for any strategy have been satisfied.

Can only be called from an operation.

Throws if the transfer cannot be made. Common cases include:

  • the funds are not in the pool account

  • an account with ID equal to this blockchain's pool account ID exists, but is not a pool account

Parameters

account

the account that was just registered

recipient_id

the ID of the account that was supposed to be registered. This allows strategies to register an account with a different ID than the requested one, if needed.