A decentralized application for staking BARK tokens and earning rewards
The BARK Staking dApp (Proof of Concept) is a decentralized application built on the Solana blockchain that empowers users to stake their cryptocurrency tokens and earn rewards. With a user-friendly interface, it facilitates seamless staking, transparent reward tracking, and secure transaction management.
- User Authentication: Users can create accounts or log in using existing credentials, ensuring secure access to the dApp.
- Wallet Integration: Seamlessly connect user accounts to their Solana wallets, enabling convenient transactions and account management.
- Staking Interface: Intuitive interface for staking BARK tokens, providing options for duration and rewards to enhance user experience.
- Unstaking Functionality: Allows users to withdraw their staked tokens at any time, providing flexibility and liquidity.
- Rewards Calculation: Accurately calculates rewards based on staking duration and amount of tokens staked, ensuring transparency and fairness.
- User Dashboard: Offers a comprehensive dashboard where users can monitor their staking activities, view earned rewards, and track transaction history efficiently.
- Transaction History: Maintains a detailed record of all staking, unstaking, and reward distribution transactions, promoting transparency and accountability.
- Support for Solana Extension: Compatible with Solana wallets and supports staking of SPL 2022 Tokens, ensuring accessibility to a wide range of users.
-
BARK Staking Program CA:
- Public Key: BARKhLzdWbyZiP3LNoD9boy7MrAy4CVXEToDyYGeEBKF
-
Solana Token Extension:
- SPL 2022 Program ID: TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb
To calculate the Annual Percentage Yield (APY) for staking in the BARK Staking dApp, consider factors such as the staking duration, the amount of tokens staked, and the reward mechanism implemented in the smart contract. Adjust the APY calculation formula based on how often rewards are compounded.
Example Calculation:
Let's say you stake 1,000,000 BARK tokens for a year with an expected annual reward rate of 20% (compounded monthly), using the following formula to calculate APY:
Therefore, the Annual Percentage Yield (APY) for staking 1,000,000 BARK tokens for a year with an expected annual reward rate of 20% (compounded monthly) is approximately 2.12%.
- React.js: Frontend development framework for building the user interface.
- User Account-based Wallet Connector: Integration with user account-based wallet connectors for secure transactions and user authentication.
- Chakra UI: Component library for React applications, providing customizable UI components for a better user experience.
- Anchor Framework: Framework for building Solana smart contracts and applications, providing tools and utilities for smart contract development.
- Solana Extensions SPL 2022 Token Standard
- JavaScript: Programming language used for frontend and backend development, providing flexibility and versatility.
- Solidy: Ethereum smart contracts
To run the BARK Staking dApp locally, follow these steps:
- Clone this repository.
- Install dependencies using
npm install
. - Start the development server using
npm start
. - Open your web browser and navigate to
http://localhost:3000
to view the BARK Staking dApp Demo.
- Connect your Solana wallet to the dApp.
- Stake your BARK tokens using the staking interface.
- Track your staking activities, rewards earned, and transaction history on the user dashboard.
- Withdraw your staked tokens using the unstaking functionality when desired.
Contributions to the BARK Staking dApp are welcome! Please fork the repository, make changes, and submit a pull request. For major changes, please open an issue first to discuss your ideas.
- Ethereum Smart Contract
- SPL Staking Program and implement BARK token
- Solana extensions and SPL Token 2022 programs and staking support
- UI/UX Improvements
- Documentation
Documentation: BARK Staking dApp Technical Documentation
- Solana: Blockchain platform for decentralized applications.
- React: JavaScript library for building user interfaces.
- Chakra UI: Component library for React applications.
- Anchor Framework: Framework for building Solana smart contracts and applications.
- Web3.js: Ethereum JavaScript API for interacting with the Ethereum blockchain.
- Wallet Adapter: Solana Wallet Adapter.