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

Function: register_liquidity_refund_address

The register_liquidity_refund_address function can be used to register a liquidity refund address.

The function checks that the caller is a registered liquidity provider and that the provided refund address can be validly decoded.

It then inserts the address in the LiquidityRefundAddress double map, and it deposits an event that contains the details of the operation.

Note that refund addresses are associated to a tuple of account ID and chain ID; therefore, an account can have multiple refunds addresses associated with it (up to one per supported chain).

Zellic © 2024Back to top ↑