Module Mavryk_raw_protocol_alpha.Liquidity_baking_storage

Get the address of the Constant-Product Market Maker receiving the Liquidity Baking subsidy

on_subsidy_allowed ctxt ~per_block_vote f updates the toggle EMA according to toggle_vote. Then the callback function f is called if the following conditions are met:

  • the updated EMA is below the threshold,
  • the CPMM contract exists.

The role of the callback function f is to send the subsidy to the CPMM, see apply_liquidity_baking_subsidy in apply.ml.