package tezos-protocol-alpha
Tezos/Protocol: economic-protocol definition
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc
doc/tezos-protocol-alpha.raw/Tezos_raw_protocol_alpha/Liquidity_baking_storage/index.html
Module Tezos_raw_protocol_alpha.Liquidity_baking_storage
Source
Source
val get_cpmm_address :
Raw_context.t ->
Contract_hash.t Tezos_protocol_environment_alpha.Error_monad.tzresult
Tezos_protocol_environment_alpha.Lwt.t
Get the address of the Constant-Product Market Maker receiving the Liquidity Baking subsidy
Source
val on_subsidy_allowed :
Raw_context.t ->
toggle_vote:Liquidity_baking_repr.liquidity_baking_toggle_vote ->
(Raw_context.t ->
Contract_hash.t ->
(Raw_context.t * 'a list)
Tezos_protocol_environment_alpha.Error_monad.tzresult
Tezos_protocol_environment_alpha.Lwt.t) ->
(Raw_context.t * 'a list * Liquidity_baking_repr.Toggle_EMA.t)
Tezos_protocol_environment_alpha.Error_monad.tzresult
Tezos_protocol_environment_alpha.Lwt.t
on_subsidy_allowed ctxt ~toggle_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
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>