from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'Crypto_Payment' players_per_group = None num_rounds = 1 endowment = 10 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Part_Crypto = models.IntegerField( choices=[ [0,'0%'], [10,'10%'], [20,'20%'], [30,'30%'], [40,'40%'], [50,'50%'], [60,'60%'], [70,'70%'], [80,'80%'], [90,'90%'], [100,'100%'], ], label = "what percentage do you want to be paid out in Bitcoin (BTC)", widget = widgets.RadioSelectHorizontal ) Part_Cash = models.IntegerField( choices=[ [100,'100%'], [90,'90%'], [80,'80%'], [70,'70%'], [60,'60%'], [50,'50%'], [40,'40%'], [30,'30%'], [20,'20%'], [10,'10%'], [0, '0%'], ], label = "what percentage do you want to be paid out in Euro (EUR)", widget = widgets.RadioSelectHorizontal ) #def set_payoffs(self): # self.payoff = (100 - 50)