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

Function: register_lp_account

The register_lp_account function can be used to register an account as a liquidity provider. The function is unpermissioned; therefore, any account can become a liquidity provider.

The function simply checks that the caller has signed the extrinsic and assigns the liquidity-provider role to the corresponding account ID.

Zellic © 2024Back to top ↑