Assessment reports>Chainflip Backend>Threat Model>Function: `request_liquidity_deposit_address`

Function: request_liquidity_deposit_address

The request_liquidity_deposit_address function can be used to request a channel (i.e., an address) where the user can deposit assets to have them credited to their account.

The function ensures that safe mode is not enacted, that the user is a liquidity provider, and that it has a registered liquidity refund address.

It then invokes the deposit handler, implemented by the cf-ingress-egress pallet, to get the details of the deposit channel. Finally, an event containing the details of the deposit channel is emitted.

Zellic © 2024Back to top ↑