I just had an idea. Make an instawallet with a "Double or Nothing" button. Just a huge irresistible button that either doubles your balance or takes it all. Take a 1% or whatever fee by giving only 49.5% odds. Have to publish the max amount you can handle covering, maybe make it dynamic. If someone actually wants to do this I could probably put up some cash.
Well, creating a gambling site with django_bitcoin is trivial. It could be of course an anonymous gambling site as well - just deposit your bitcoins to this address, and then you have gambling functionalities there.
eg. "double or nothing" pseudocode:
import random
from django_bitcoin import Wallet
def double_or_nothing(request, uuid):
main_wallet=Wallet.objects.get(id=1) # the main wallet, where the site's bitcoins are kept
user_wallet=Wallet.objects.get(uuid=uuid)
if random.random()<0.49:
main_wallet.send_to_wallet(user_wallet, user_wallet.total_balance())
else:
user_wallet.send_to_wallet(main_wallet, user_wallet.total_balance())
I just wrote the code directly here, so perhaps it doesn't work
But anyway, the basic idea is very simple. Then of course, if you want to implement more complex gambling functionalities, it is easy.
I'm not implementing this, since I think it doesn't fit well with wallet... But the library itself could be used as well for gambling sites, or almost anything.