Function: request_swap_deposit_address
The function allows a broker — a role that anyone can register for — to obtain an address to which deposits trigger an action (a swap or a CCM). The broker may configure the action that the cf-swapping pallet should take upon receiving a deposit to the address.
First, deposits must be enabled in SafeMode. Also, the destination address must be on the same chain as the destination asset and the address must be valid.
If channel_metadata
is set, the action is a CCM. These may only be sent if Ethereum is the destination chain.