after_crosschain_balance_change

@extendable function after_crosschain_balance_change(sender: account, recipient: account, asset: asset, amount: big_integer, has_changed_sender: boolean, has_changed_recipient: boolean)(source)

Extendable function that allows the developer to add more functionality to the update_balances_if_needed function, after the balance change is applied.

This allows, for example, to check that any condition is met after the balance change is applied. Or to modify the balance or amount after it is changed.

If this function throws, the balance change will not be applied.

Throws when any extension of this function throws.

Parameters

sender

the account that has transferred the tokens

recipient

the account that will receive the tokens

asset

the asset that was transferred

amount

the amount that was transferred

has_changed_sender

whether the sender's balance has changed

has_changed_recipient

whether the recipient's balance has changed