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

Function: update_pool_enabled

The update_pool_enabled function can be used by governance to enable or disable a pool.

The function ensures the origin is governance and then sets the pool status as enabled or disabled according to the call arguments. Finally, it emits an event that signals the pool status was updated.

Zellic © 2024Back to top ↑