Ogólnie trochę tutaj pomieszałeś ;)
Po pierwsze, w getCurrency, albo używasz .then, albo robisz funkcję async i używasz await - nie ma potrzeby obu.
async function getCurrency() {
let response = await fetch(usd_url);
let json = await response.json();
return json.rates[0].mid;
}
Po drugie, getCurrency jest asynchroniczne, więc jego użycie też powinno być asynchroniczne. Tak więc albo:
async function run() {
let xxx = await getCurrency();
console.log(`waluta to ${xxx}`);
}
run()
Albo
getCurrency().then(xxx => console.log(`waluta to ${xxx}`));