Module Mavryk_raw_protocol_alpha.Protocol_treasury_storage

Get the address of the Buffer Contract receiving the Liquidity Baking subsidy

val get_protocol_treasury_address : Contract_hash.t

Get the address of the Protocol Treasury Contract 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.