-
Visit the live version
-
Presentation Click Here
No Risk Pot is a revolutionary DeFi lottery platform where users can participate in lottery draws without risking their principal investment. Here's how it works:
- Users purchase lottery tickets using COIN (a stablecoin).
- The platform admin collects all ticket purchases and invests the pooled funds in liquidity pools or yield farming strategies to generate interest.
- When a lottery draw occurs, winners are selected and prizes are distributed from the interest earned, not from the principal amount.
- Key differentiator: All users receive their initial investment back, regardless of whether they win or lose the lottery.
- 1st Prize: 50% of the total interest earned
- 2nd Prize: 30% of the total interest earned
- Platform Fee: 20% of the total interest earned goes to the platform owner
This creates a no-loss lottery system where participants can enjoy the excitement of potentially winning while preserving their capital.
frontend/
├── public/
│ ├── index.html
│ └── *.png (screenshots)
├── src/
│ ├── App.js
│ ├── index.js
│ ├── components/
│ │ └── NetworkError.js
│ ├── pages/
│ │ ├── Home.js
│ │ ├── BuyTickets.js
│ │ ├── AdminPanel.js
│ │ └── ClaimFunds.js
│ ├── styles/
│ │ ├── Home.css
│ │ ├── BuyTickets.css
│ │ ├── AdminPanel.css
│ │ ├── Navbar.css
│ │ └── NetworkError.css
│ └── artifacts/
│ └── addresses.json
├── package.json
├── pnpm-lock.yaml
└── README.md
- Node.js 18 LTS recommended
- npm or pnpm
- MetaMask (or a compatible EVM wallet)
-
Install dependencies
npm install # or pnpm install -
Start the development server
npm start # or pnpm start -
Open http://localhost:3000 in your browser.
- The dApp targets the Sonic Testnet. If you are on another network, the app will prompt you to switch or add the network automatically.
- You may need some test COIN on Sonic Testnet to perform transactions.
Contracts are already deployed. You can verify them on the explorer below:
- Coin:
0x934A93F464fDF4B7f60F079F5ccFCA1776b87D7A - ZeroLossLottery:
0x2597aC5685d4887858a2D2ED629b78ce70f2D590
Note: The frontend reads addresses from
frontend/src/artifacts/addresses.json.
- Always ensure your
.envfiles are included in.gitignore - Never commit sensitive keys or secrets to version control
- Use a dedicated development wallet with limited funds for testing
- Consider using a hardware wallet for production deployments







