package octez-protocol-020-PsParisC-libs
Octez protocol 020-PsParisC libraries
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
doc/octez-protocol-020-PsParisC-libs.test-helpers/Tezos_020_PsParisC_test_helpers/Cpmm_logic/Simulate_raw/index.html
Module Cpmm_logic.Simulate_raw
Source
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.
Source
val addLiquidity :
tokenPool:Z.t ->
xtzPool:Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Tez.t ->
lqtTotal:Z.t ->
amount:Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Tez.t ->
Z.t * Z.t
Source
val removeLiquidity :
tokenPool:Z.t ->
xtzPool:Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Tez.t ->
lqtTotal:Z.t ->
lqtBurned:Z.t ->
Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Tez.t * Z.t
Source
val tokenToXtz :
tokenPool:Z.t ->
xtzPool:Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Tez.t ->
tokensSold:Z.t ->
Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Tez.t * Z.t
Source
val xtzToToken :
tokenPool:Z.t ->
xtzPool:Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Tez.t ->
amount:Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Tez.t ->
Z.t * Z.t
Source
val tokenToToken :
tokenPool:Z.t ->
xtzPool:Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Tez.t ->
tokensSold:Z.t ->
Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Tez.t * Z.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>