package tezos-012-Psithaca-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 addLiquidity : tokenPool:Z.t -> xtzPool:Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.tez -> lqtTotal:Z.t -> amount:Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.tez -> Z.t * Z.t
val removeLiquidity : tokenPool:Z.t -> xtzPool:Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.tez -> lqtTotal:Z.t -> lqtBurned:Z.t -> Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t * Z.t
OCaml

Innovation. Community. Security.