Skip to content

Commit

Permalink
fix(dex): make dex great again
Browse files Browse the repository at this point in the history
  • Loading branch information
kodemon committed Aug 1, 2023
1 parent c419425 commit 5dfc204
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Services/Dex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ async function setDexPrice(): Promise<void> {
}

const data = await res.json();

const currency: Currency = {};
for (const key in data) {
currency[key] = {
dex[key] = {
value: data[key].last,
symbol: data[key].symbol,
};
}

log("USD: %d | SGD: %d | CNY: %d", currency.USD.value, currency.SGD.value, currency.CNY.value);
log("USD: %d | SGD: %d | CNY: %d", dex.USD.value, dex.SGD.value, dex.CNY.value);
}

setDexPrice();
Expand Down

0 comments on commit 5dfc204

Please sign in to comment.