Example #1
0
def sync_payout(fulfillment):
    token_name = fulfillment.token_name

    if token_name == 'ETC':
        sync_etc_payout(fulfillment)
    elif token_name == 'cUSD' or token_name == 'cGLD':
        sync_celo_payout(fulfillment)
    elif token_name == 'ZIL':
        sync_zil_payout(fulfillment)
Example #2
0
def sync_payout(fulfillment):
    token_name = fulfillment.token_name
    if not token_name:
        token_name = fulfillment.bounty.token_name

    if fulfillment.payout_type == 'web3_modal':
        sync_eth_payout(fulfillment)

    elif fulfillment.payout_type == 'qr':
        if token_name == 'ETC':
            sync_etc_payout(fulfillment)
        elif token_name == 'CELO' or token_name == 'cUSD':
            sync_celo_payout(fulfillment)
        elif token_name == 'ZIL':
            sync_zil_payout(fulfillment)