package tezos-protocol-alpha
Tezos/Protocol: economic-protocol definition
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
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)"
>