Skip to content

Source code of the smart contracts of the Phoenix DeFi hub DEX protocol

License

Notifications You must be signed in to change notification settings

Phoenix-Protocol-Group/phoenix-contracts

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date
Jan 15, 2025
Jul 2, 2024
Jan 15, 2025
May 6, 2024
Oct 29, 2024
Jan 15, 2025
Jan 17, 2024
Aug 27, 2024
Jan 2, 2025
Jan 2, 2025
Jun 8, 2023
Jul 3, 2024
Apr 23, 2024
Jun 30, 2023

Repository files navigation

codecov

Phoenix DEX Smart Contracts

This repository contains the Rust source code for the smart contracts of the Phoenix DEX.

Overview

Phoenix will be a set of DeFi protocols hosted on Soroban platform. Directory docs contains brief description of architecture, including flow diagrams.

Prerequisites

The following tools are required for compiling the smart contracts:

# Install rust using rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Then install wasm32 target
rustup target add wasm32-unknown-unknown

Compilation

The smart contracts can be compiled into WebAssembly (WASM) using make. The Makefile included in the repository is configured to handle the necessary steps for building the smart contracts.

Navigate to the root directory of the project in your terminal and run the following command:

make build

This will generate WASM files for each of the smart contracts in the target/wasm32-unknown-unknown/release/ directory.

Testing

You can run tests with the following command:

make test

License

The smart contracts and associated code in this repository are licensed under the GPL-3.0 License. By contributing to this project, you agree that your contributions will also be licensed under the GPL-3.0 license.

For the full license text, please see the LICENSE file in the root directory of this repository.

Contact

If you have any questions or issues, please create a new issue on the GitHub repository.