'Given a Team instance, return a dict.'

def get_payment_instruction(self, team):

    default = dict(amount=Decimal(u'0.00'), is_funded=False)
    return self.db.one(u'\n                                                SELECT    *\n                                                        FROM    payment_instructions\n                                                    WHERE    participant_id=%s\n                                                            AND    team_id=%s\n                                        ORDER    BY    mtime    DESC\n                                                    LIMIT    1\n\n                                ', (self.id, team.id), back_as=dict, default=default)
