Solaxy is an ERC-20 token contract that implements a linear bonding curve with DAI (a stablecoin) as the reserve currency. The bonding curve allows users to buy and sell Solaxy tokens directly from/to the contract at a dynamic price determined by the curve's slope.
A token bonding curve is a mathematical formula that defines the token's price based on its supply. In the case of Solaxy, a linear bonding curve is employed. This means the price of Solaxy tokens increases linearly with each token sold and decreases linearly with each token redeemed.
The price of tokens in a linear bonding curve is calculated as follows:
Here, the slope (m
) represents the rate at which the price changes concerning the supply. In Solaxy's case, the slope is set to 25 bps (0.0025
), determining the curve's steepness. Visit the gitbook docs to learn more.
Solaxy extends its functionality by providing support for ERC-4626
; a tokenized vault interface. This interface allows the Solaxy contract to interact with other DeFi protocols and platforms seamlessly. ERC-4626
integration enhances the capabilities of Solaxy in the context of token bonding curves.
We welcome contributions from developers, designers, and blockchain enthusiasts to enhance Solaxy. Here's how you can get involved:
- Code: Contribute by fixing bugs, adding features, or optimizing code. Check out open issues and submit pull requests.
- Documentation: Improve existing guides or create new ones to enhance Solaxy's usability.
- Testing: Help test Solaxy, identify edge cases, and ensure its security and functionality.
- Bug Reporting: Report bugs or issues you encounter while using Solaxy to help us improve.
- Feedback: Share your ideas and suggestions to shape Solaxy's development.
Read our Contribution Guidelines for details. Join us in making Solaxy better!
The project is filed in the following directory structure:
├── lib/ # Project dependencies stored as git submodules
├── script/ # Foundry testing scripts
├── src/ # Contains the Solidity smart contract files
│ ├── Interfaces/ # Contract interfaces for Solaxy
├── test/ # Solidity tests for Foundry
- Ensure you have Foundry installed: See Foundry book
- Download or clone the project repository
- Navigate to the project directory in your terminal.
- Run
forge test -vvv
to execute tests on a fork of IoTeX mainnet,
This project is licensed under the MIT License.