package tezos-alpha-test-helpers

  1. Overview
  2. Docs

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.tez -> lqtTotal:Z.t -> lqtBurned:Z.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t * Z.t
OCaml

Innovation. Community. Security.