Git Product home page Git Product logo

am-amm's Introduction

am-amm

Entry: Uniswap Hook Incubator Hackathon

Paper: AM-AMM

Biddog: Biddog

Miro: Miro board

Slides: Gamma slides

Presentation Video: Loom video

Flows

image

Tests

Screenshot 2024-06-10 at 5 13 54 PM

TODO

  • Convert topBid, nextBid just to use Epochs
  • function bid(epoch) epoch != getEpoch() setSwapFeeRate()
  • create balances[address]
  • function deposit
  • function withdraw() can't withdraw rent if the current manager
  • setBidPayload() -> setSwapFeeRate()
  • afterSwap - to redistribute the swap fee to the current manager (Lecky)
  • _burnBidToken() -> _chargeRent() - we charge with bidToken
  • Unit tests for current implementation.
  • beforeSwap hook to update dynamic fee
  • update Bid to have swapFee so that user could bid and set swapFee together
  • hook initialisation to set contract address for AMAMM
  • user firstly needs to add liquidity to obtain the pool token, then can use it as rent to bid
  • "The current highest bidder in the ongoing auction, known as the manager, pays rent to liquidity providers." - need to send rent from AMAMM back to LP
  • Integration test to deploy AMAMM first, then deploy hook contract and initialise with AMAMM address with all the test scenarios
  • Record the video and prepare it for submission.

Integration test scenarios:

  • As a user, I should be able to bid an epoch to be a manager so that I can collect all fees as expecting high volume
  • As a user, I should be able to bid an epoch to be a manager so that I can set a high swap fee that I would be the only arbitrageur

am-amm's People

Contributors

leckylao avatar chinmaygopal931 avatar

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.