No loss Lottery program on solana
- No loss lottery — A lottery in which participants do not loose their money. i.e they still get a refund if they don't win the lottery and the winner still gets rewarded
So How does the winner get rewarded if non winners still get a full refund?
All the funds deposited into the lottery vault are invested into a lending pool in order to yield some interest. it is from that interest that the winner gets rewarded and fees are taken (if need be)
Kindly Note
this program has not audited
🥶
feedbacks and criticisms would be greatly appreciated Feel free to reach out to me at @dev_femi on Twitter! or simply make a PR
How to run
Install the necessary dependencies
yarn install
Run the test
anchor test