package octez-protocol-alpha-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

This is a simulation of the CPMM contract, as implemented in mligo in src/proto_alpha/lib_protocol/contracts/cpmm.mligo. The interested reader should look for comments in this file to gain a better understanding of the contract logic.

val removeLiquidity : tokenPool:Z.t -> xtzPool:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> lqtTotal:Z.t -> lqtBurned:Z.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t * Z.t
OCaml

Innovation. Community. Security.