summa = db[call.from_user.id]["invest"]
print(summa)
# Get amount in crypto by fiat summ
amount = await crypto.get_amount_by_fiat(summ=float(summa), asset='USDT', target='USD')
invoice = await crypto.create_invoice(asset='USDT', amount=float(amount))
Вчера работала.