I would like to collect some simple smart contract ideas (by simple I mean not Uber or Twitter ) in this thread that you would like to see and maybe someone will build it or will share an example like @bobert did with the Naive Lottery Contract.
It would be nice if you could provide a small use case as well, but this is not needed.
Following are all the suggestions collected in this thread:
The Tip-Contract / ADAtainment
Sending some amount to an address and it will be split (equally or by some sort of distribution key) to other addresses that are locked into the contract.
If the tip is very small it should keep the balance in the contract and distribute it later.
The Testament / ADAtainment
You could lock an amount into a contract and need to “ping” from time to time (for example every 3 months) to keep the amount locked. This works basically like a dead-man’s button. Once you stop pinging for a defined period the amount will be send to an address.
If something bad happens to you and you are not able to ping for example one year then your funds will be send to your wifes / childs / friends address.
The Subscription / HisMajesty
You lock up P * A in a contract. The counterparty is able to withdraw A amount, P times at predefined intervals. You can cancel and get back remainder (less a penalty - optional)
Repeat payments for service or content. Nice because vendor has known financial commitment providing service is good. Also with penalty, vendor can offer graduating pricing based on duration of commitment.
Subscribe for access to game for 52 weeks. 10 ADA per week. Deposit 520 ADA. Vendor takes 10 ADA per week as they deliver the service. I cancel after 22 weeks, get 250 back, vendor gets 50.
Coupons / Rickymac
A coupon is a smart contract already - if you purchase X product by Y date, we give you $Z discount. Coupons are still on paper, where as most payments people do in the USA at retail outlets are electronic credit or debit.
The retail outlet issuing coupons can issue a limited number of coupon tokens on the blockchain. The retail outlet can better track how many coupons have been used and how many are still out there.
Often when my wife and I are at the store (Bed Bath and Beyond, Groceries) she says “Oh I left my coupons at home” which would not be a problem on the cell phone.
Shoppers can trade coupons from cell phone to cell phone.
The Allowance Contract. / Eystein_Hansen
Feed a contract with an amount that can be distributed X each time unit Y to wallets Z(n) (for example weekly).
The More Advance Allowance Contract
Allow wallet owner to also issue tasks on sidechain with IELE and when wallet owner is satisfied with task completion unlocks distribution of amount X by time unit Y to wallets Z(n).
Why on blockchain instead of just good old money? Because it can be automated. Because you can set it off on your mobile and check in real time who in family has done what task. Because…because if it makes your kids do the chores its awesome.
The Simple Ticket Store / ADAtainment
Pay a certain amount to get a ticket. Amount of tickets are limited.
The Advanced Ticket Store
Like the simple ticket store, but this time there are ticket numbers (seats). Of course every seat can be sold once. It would be nice to have control over the amount of seats and the number when buying tickets.
Bonus Pizza / ADAtainment
Every order increments a counter, when the counter hits 10 you will get a “Free Pizza”-Coupon.
Sounds pretty easy but wait - you can not simply just track the same addresses in the contract.
When ordering something the payment system will create a new payment address for this customer and monitors this address for the payment. Otherwise it’s not possible to assign payments to customers. (There are no messages in the transactions)
This means every time you order a pizza the payment address will be different. Therefore you need to assign some sort of other key to the customer in the contract, to implement this.
Peer to peer betting / Daely14
Ability to send bet someone, have it accepted, wallet engages both parties to fund, event concludes, smart contract matches bet w sportsfeed for verification of winning party, smart contract settles account.
Users can bet each other on any event, including and especially non traditional sports (battlebots) and esports (madden tourney), which is not currently being addressed by traditional sportsbooks and vendors, in the current market in the United States.
Simple Resource Allocation Voting Contract: / JBlock
- funds are locked in the SC,
- users offer various options,
- users vote on the various options,
- votes are tallied, and
- funds go to the address that offered the winning option.
Decentralised charity / Matthis.Last
Where 85% of funds go directly to the recipients, as voted by the community from a group of vetted recipient local organisation
10% go to operations and 5% go to promoting Cardano / Cryptocurrency
Donators pay in cash as they are used to, blockchain works behind the scenes to ensure that funds are not mishandled or paid to executives
Ambassadors List. / Andrew_Voron
Dapp supports current list of Cardano ambassadors. We can store ambassador’s activity(history, list of it’s docfiles, presentation links…), its status(active/inactive/candidate…). Ambassador can be included/excluded via democratic voting(by other ambassadors, or community members), or by some automation(number of published docs/per some period, which is refleced in the list.)
- Motivate newcomers towards ambassador’s membership, where ambassadors are high-status bringers of knowledge.
- Encourage the ambassasor to be more productive and responsible.
- Demo, showing that Cardano(IOHK) uses it’s own technology for it’s own needs.
Riddle Guesser / xxrsee
I have an idea. It would be a riddle guesser. One person puts up a riddle with a small bounty and whoever guesses it gets the bounty.
Another one would be to attach a small bounty on having your kids learn the multiplication tables. Like a little game where you answer 6x2 8x7 etc. Once you pass them all a few times you get some monies.
Time Gamble / xxrsee
- Assign a countdown timer with a random duration (can range from hours to days) to a smart contract.
- Load the smart contract wallet with a small amount of funds, about 10 ADA.
- Participants send only 1 ADA to the smart contract to join but can do so multiple times
- The last person to send a transaction to the smart contract before the timer goes to 0 wins and gets all ADA from the wallet.
Credit Defaut Swap (CDS) / hugodeanda
a financial contract whereby a buyer of corporate or sovereign debt in the form of bonds attempts to eliminate possible loss arising from default by the issuer of the bonds. This is achieved by the issuer of the bonds insuring the buyer’s potential losses as part of the agreement.
I picture it as an ICO where, at least part of it, is collateralized or backed by the issuers assets or third parties.
Even if capital in the the form of money would be available worldwide, the risk of investing on something someone is doing far away from you will make Interest Rates so high that such money availability can turn to be very limited. (I am picturing here a “currency crisis”, a shortage of money, a free-for-all scenario). So I would want to see this CDS as a way of really unlocking the potential of finance for everyone and his/her/their investment project. Currently I think we can make this through banks and stockmarkets, but in the era of cryptocurrencies where legislation lags behind it, I feel we are missing something in order to be able to trust on an ICO only with a compelling project and no further backing.
As a side note, I also feel that it will be good to be able to put “Staking ADA” as collateral, so if a project goes bust, suppliers and employees can claim what’s owe to them directly from the node.