Skip to content

Clone-Protocol/clone-protocol

Repository files navigation

Clone Protocol

This repository contains the on-chain programs for the Clone Protocol:

  • clone the main program which contains all logic for minting, borrowing, trading and liquidity provisioning
  • clone-staking program that allows users to stake CLN tokens and receive discounted trading fees.
  • pyth a substitute program only used for testing, allows you to change oracle prices at will, used for scenario testing.

How to Run

Clone is built using Anchor and requires its installation.

After installing you can test, build and deploy using anchor test, anchor build and anchor deploy.

Generating Solita SDK

Run PROGRAM_DIR=<program> yarn solita to generate the SDK in the sdk/generated/ folder. The <program> name corresponds to the directory name listed in programs/. Implementation details of this auto-generation is in the .solitarc.js file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published