d1on / cherub-protocol

Inverse Perpetuals DEX and DAO (3, 3)

Home Page:https://www.cherub.markets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cherub Protocol

Inverse Perpetuals DEX and DAO (3, 3)

  • Build Access or bond deep, protocol-owned liquidity
  • Trade 100x leverage and zero impermanent loss using virtual Automated Marketing Making
  • Invest Stake CHRB to receive high-yield, rebased cryptodollars

Development

Requirements

  • Anchor 0.16.2
  • Solana 1.8.0
  • Node 16.13.0

Running

A Solana wallet and SOL are required to get started.

solana-keygen new
yarn protocol:airdrop # Run as long as needed

Make sure cluster is correctly set to localnet in Anchor.toml and .env is configured properly.

solana config set --url http://127.0.0.1:8899
yarn protocol:test

Start a demo trading bot.

yarn bots:trade:start

Start a liquidation bot.

yarn bots:liquidate:start

Start the app.

yarn sdk:copy # Make sure latest SDK is installed
yarn app:start

To deploy the protocol on devnet, make sure the correct cluster is set in Anchor.toml and .env and run the following.

solana config set --url https://api.devnet.solana.com
yarn protocol:clean
yarn protocol:build
yarn protocol:deploy
# Update Anchor.toml and the program id declarations with the deployment public keys
yarn protocol:test

Development

yarn sdk:copy

Documentation

This is currently handled with Docusauraus.

yarn docs:start

Support

For inquiries, message me on Telegram @pindaroso or Twitter @pindarosothecat.

About

Inverse Perpetuals DEX and DAO (3, 3)

https://www.cherub.markets

License:Other


Languages

Language:JavaScript 61.5%Language:Rust 27.1%Language:CSS 7.4%Language:HTML 2.3%Language:Dockerfile 1.4%Language:Makefile 0.2%Language:Shell 0.1%