2 releases

0.1.1 Sep 26, 2023
0.1.0 Sep 25, 2023

#17 in #phoenix

31 downloads per month
Used in pomm

Apache-2.0

33KB
716 lines

Phoenix On-chain Market Maker

This is a reference implementation of a smart contract for an on-chain market making bot.

It stores a quote width in basis points and a quote size and uses this information to update its current quotes.

The goal is to be able to write a client that looks like this:

while True:
  price = await get_fair_price_by_oracle(TOKEN)
  await market_maker.update_orders(price)
  time.sleep(SLEEP_DURATION)

env requirement

  • anchor-cli 0.26.0
    • use avm install 0.26.0
  • solana-cli 1.14.14
    • use solana-install init 1.14.14

Dependencies

~28–39MB
~625K SLoC