Coder Social home page Coder Social logo

docs's People

Contributors

autarkxu avatar axeafk avatar bergdave avatar crypto-yang avatar dodoricky avatar ethanzhang1996 avatar harshrpg avatar isabelluoyx avatar lbk3530 avatar owen05 avatar radar-bear avatar rrritaa avatar sa1i avatar shawnsxh avatar yuichiroaoki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

Erroneous claim about equality of PMM curve to AMM curve when K=1

In the PMM explanation here[https://dodoex.github.io/docs/docs/pmm] there is a statement that if k=1, the PMM curve actually becomes the same as AMM curve. This seems wrong.

It would be correct if the exponent of (B0/B) equaled one. It is not correct if the exponent is 2 as in your final formula.

Proof:
The AMM formula looks like this (with zero fees): dy = dx*Y / (X+dx). Here, X and Y are amounts of liquidity present in the pool for assets X and Y, dx is the amount of asset x sold, and dy is the amount received.

If we translate this to Dodo nomenclature with k=1, P = dx/dy, and P also equals X/Y * (Y/(Y-dy)).
Indeed, dx/dy equals the actual price (P), X/Y is the initial price i, and Y/(Y-dy) is essentially B0/B.

After algebraic simplification, we bring the expression dx/dy=X/Y*(Y/(Y-dy)) to the exact AMM formula: dy = dx*Y/(X+dx)
Of course, if the exponent of Y/(Y-dy) was 2, we would not get to this result.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.