Riskophobe is a decentralized application (dApp) that introduces options to the cryptocurrency space, enabling users to buy tokens with the flexibility to return them and get their money back. This innovative approach empowers users to better manage their financial exposure and risk within the DeFi ecosystem.
- Options Functionality: Buy tokens with the assurance of returning them for collateral.
- Flexibility: Empower users to reclaim collateral under specific conditions.
- Transparency: Built on Ethereum's Base Layer to ensure trust and security.
The Riskophobe protocol is deployed on the Base network with the following address:
0x0bBEeEab55594F1A03A2b34A6e454fb1d85519e4
Access the live dApp here: Riskophobe
Follow the steps below to set up the project locally:
Ensure you have the following installed:
# Clone the repository
$ git clone https://github.com/BenAzlay/riskophobe-frontend.git
# Navigate to the project directory
$ cd riskophobe# Using npm
$ npm install
# Or using yarn
$ yarn installCreate a .env.local file in the root directory and populate it with the required environment variables. Use .env.example (if available) as a reference.
# Start the development server
$ npm run dev
# Or using yarn
$ yarn devVisit http://localhost:3000 in your browser to see the application in action.
# Build the application
$ npm run build
# Or using yarn
$ yarn build
# Start the production server
$ npm run start
# Or using yarn
$ yarn startTo lint and check for code quality issues, run:
# Using npm
$ npm run lint
# Or using yarn
$ yarn lint- Framework: Next.js
- Styling: TailwindCSS and DaisyUI
- Web3 Interaction: Wagmi and ethers.js
- State Management: Zustand
- GraphQL: graphql-request
- Smart Contract: Solidity
- Network: Base (Ethereum Layer 2)
- GraphQL Subgraph: Custom integration
Riskophobe’s smart contract is deployed on the Base network and supports the following operations:
- Create Offer: Establish a new option offer.
- Buy Tokens: Participate in an offer by purchasing tokens.
- Return Tokens: Redeem collateral by returning purchased tokens.
- Claim Fees: Collect fees accrued from offers.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please follow the steps below to contribute:
- Fork the repository.
- Create a feature branch:
git checkout -b feature-name - Commit your changes:
git commit -m 'Add feature description' - Push to the branch:
git push origin feature-name - Create a pull request.