Parraton is a decentralized, permission-less, open-source yield optimization protocol on TON blockchain. Visit parraton.org for more information.
Parraton consists of these components:
Contract: The smart contract code that is running on-chain.
Webapp: The web application that helps users with deposits and withdrawals.
Restaker: The off-chain bot that restakes rewards to generate more yield for depositors. The code is available here on this repository.
Parraton Bot handles the automation of reward distributions and other operational tasks for the Parraton platform. It integrates with several services, including DeDust and the TON blockchain, to perform its functions.
Ensure you have the following installed on your local development machine:
- Node.js (>= 14.0.0)
- pnpm (>= 6.0.0)
-
Clone the repository:
git clone https://github.com/parraton/parraton-bot.git
-
Navigate to the project directory:
cd parraton-bot
-
Install the dependencies:
pnpm install
- Create a
.env
file in the root directory of the project. - Add the necessary environment variables to the
.env
file. Refer to the.env.example
file for the required variables.
To start the bot, run:
pnpm start
start
: Runs the bot usingts-node
.
Parraton Bot uses a variety of dependencies to integrate with DeDust, TON blockchain, and other services. Key dependencies include:
- DeDust SDK
- TON blockchain libraries
- Pinata SDK for IPFS
- Node-cron for task scheduling
- TypeScript for type safety
Contributions are welcome! Please follow the established code style and conventions. For major changes, open an issue first to discuss what you would like to change.
This project is licensed under the MIT license.
See LICENSE for more information.