do_transfer

function do_transfer(account: account, strategy: text)(source)

Sends all assets that were sent to the pool account for a registration to the actual account that is being registered. Marks the account_creation_transfers as done. At least one of those transfers must satisfy strategy, otherwise this function will throw. Multiple transfers cannot be bundled together to reach the threshold.

Can only be called from an operation.

Throws "MISSING TRANSFER" if no account_creation_transfer is found for this account.

Throws "REGISTRATION ERROR" if none of the transfers satisfied the rule.

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

  • the funds are not in the pool account anymore

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

Parameters

account

the account the funds should go to

strategy

the strategy name