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

Function: on_initialize

The on_initialize hook is called on block initialization. The hook periodically swaps USDC from collected fees for FLIP, burning the resulting FLIP. This results in deflationary pressure, increasing the value of FLIP.

Swaps are performed at an interval that can be configured by governance using the update_buy_interval function.

Zellic © 2024Back to top ↑