Giter Club home page Giter Club logo

bondingcurves's People

Contributors

krotkiewicz avatar simoncousaert avatar xujiahuayz avatar yebof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bondingcurves's Issues

Balancer's conservation function does not diverge to Uniswap's

For w1=w2=0.5 the functions are different.

image

Earlier in the paper it is stated that

Balancer can also be deemed a generalization of Uniswap; the latter is a special case of the former with w1 = w2 = 1/2

and this can be found in the code that Uniswap AMM is just Balancer with w1=w2=0.5.

Probably I have missied something, would love to hear an explanation for that. Thank you.

TypeError: 'type' object is not subscriptable

python -m amms.analysis
Traceback (most recent call last):
File "/usr/local/Caskroom/miniconda/base/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/Caskroom/miniconda/base/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/thams/Documents/jupyter/bondingcurves/amms/analysis.py", line 6, in
from amms.balancer.main import Balancer
File "/Users/thams/Documents/jupyter/bondingcurves/amms/balancer/main.py", line 1, in
from amms.main import Amm
File "/Users/thams/Documents/jupyter/bondingcurves/amms/main.py", line 2, in
class Amm:
File "/Users/thams/Documents/jupyter/bondingcurves/amms/main.py", line 3, in Amm
def init(self, reserves: list[int], weights: list[float]):
TypeError: 'type' object is not subscriptable

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.