Code Monkey home page Code Monkey logo

freerollio's Introduction

freerollio

Freerollio.xyz is a dApp for motivation and accountability.

Freerolls

A freeroll is a type of wager for motivation or accountability. "I will give you $10 if I don't exercise this week." is the simplest example of a freeroll. The technical term for this type of wager is a pre-commitment device. Committing to something ahead of time provides a tangible motivation and limits your ability to back-out or change your mind -- both helpful for achieving your goals.

If you fail to achieve your goal, your money is donated to a charity you selected. If you achieve your goal, you get your money back.

Freerolls are widely used in the poker community. Poker players are notoriously unmotivated by anything other than money and reputation. So freerolls are a great way to motivate them to do things they otherwise wouldn't do. For example, a poker player might make a freeroll with his friend to motivate himself to exercise more. If he fails, he has to hand over money to his friend (Errr!).

Freerollio.xyz

Freerollio.xyz is a dApp that allows you to create and participate in freerolls. It is built on the Ethereum blockchain and uses smart contracts to manage freerolls.

Usage

Currently, you need to have a metamask wallet -- a browser extension. You can participate with real ether or with test ether on the Goerli Testnet.

Creating a Freeroll

  1. Enter the details of your freeroll
  2. Review the details of your freeroll
  3. Click "Submit Freeroll"
  4. Confirm the transaction in the metamask extension

Claiming Victory in a Freeroll

  1. Before the deadline of your freeroll, click the "Claim Victory" button of your freeroll
  2. Confirm the transaction in metamask
  3. Wait for the transaction to be mined
  4. You should now have your money back

Collecting Your Winnings as a Charity

  1. Click the "Collect Winnings" button of your freeroll
  2. Confirm the transaction in metamask
  3. Wait for the transaction to be mined
  4. You should now have your winnings

All interactions with a freerollio contract requires a fee -- called gas. This fee is paid to secure and run the blockchain.

Interactions with the freerollio contract take a few seconds to be processed by the blockchain.


Contracts

Resources

Todo

  • Refactors with JS Framework
  • Add gas price to UI element
  • Revamp and add clarifying UI elements
  • Make accessible (readonly) without metamask

freerollio's People

Contributors

sted9000 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.