def METHOD_NAME(self):
    if not self.exec_():
        return
    if self.max_button.isChecked() and self.amount_e.get_amount() < self.config.LIGHTNING_MAX_FUNDING_SAT:
        # if 'max' enabled and amount is strictly less than max allowed,
        # that means we have fewer coins than max allowed, and hence we can
        # spend all coins
        funding_sat = '!'
    else:
        funding_sat = self.amount_e.get_amount()
    if not funding_sat:
        return
    if funding_sat != '!':
        if self.min_amount_sat and funding_sat < self.min_amount_sat:
            self.window.show_error(_('Amount too low'))
            return
    if self.network.channel_db:
        connect_str = str(self.remote_nodeid.text()).strip()
    else:
        name = self.trampoline_names[self.trampoline_combo.currentIndex()]
        connect_str = str(self.trampolines[name])
    if not connect_str:
        return
    self.window.open_channel(connect_str, funding_sat, 0)
    return True