This is an example implementation of an AMM in TEALScript. The TEALScript-generated contract is not yet tested, but serves to provide a comparison of the Beaker implementation vs TEALScript.

Original source: https://github.com/algorandfoundation/beaker/blob/931cd25e17454874b9d23b481d0db4df9fd802b7/examples/amm/amm.py