To design and implement a user interface for our staking pool that interacts directly with our smart contracts. This UI will provide users with the ability to view pool information, stake tokens, withdraw tokens, view pending rewards, and perform emergency withdrawals. Additionally, we aim to ensure the UI's responsiveness across various devices and incorporate essential security features.
UI Requirements:
View Pool Information:
Display critical details about the staking pool, such as the start and end blocks for reward distribution, reward tokens per block, total staked tokens, and any user-specific pool limits.
Can use public variables from here
Stake Tokens:
Enable users to deposit tokens into the pool with adherence to any predefined limits.
Withdraw Tokens:
Allow for the withdrawal of staked tokens and the claiming of reward tokens.
View Pending Rewards:
Show users the amount of reward tokens they are eligible to claim based on their stake.
Emergency Withdraw:
Provide an emergency feature for users to retrieve their staked tokens without claiming rewards, catering to urgent situations.
Responsive Design:
Ensure the UI's functionality and accessibility across different devices, including desktops, tablets, and smartphones.
Security Features:
Integrate security measures to protect users' interactions, such as transaction confirmations and warnings for irreversible actions.
Open Question:
Should we also develop a UI interface to allow for the creation of pools directly from the factory? This feature could streamline the process for administrators but requires careful consideration of security and usability implications.
Objective:
To design and implement a user interface for our staking pool that interacts directly with our smart contracts. This UI will provide users with the ability to view pool information, stake tokens, withdraw tokens, view pending rewards, and perform emergency withdrawals. Additionally, we aim to ensure the UI's responsiveness across various devices and incorporate essential security features.
UI Requirements:
public
variables from hereOpen Question:
Should we also develop a UI interface to allow for the creation of pools directly from the factory? This feature could streamline the process for administrators but requires careful consideration of security and usability implications.
Resources for UI MVP Development:
Smart Contracts Direct Call: The UI should be designed to interact directly with smart contracts. Dummy LP Token: Etherscan Link Dummy Reward Token: Etherscan Link Smart Chef Factory: Etherscan Link Dummy Pool: Etherscan Link Smart Contract Implementation: GitHub Repository