def get_amount_msat(self) -> Optional[int]:
    if (self.amount is None):
        return None
    return int(((self.amount * COIN) * 1000))
def get_amount_msat(self) -> Optional[int]:
    if (self.amount is None):
        return None
    return int(((self.amount * COIN) * 1000))