Skip to content

Commit

Permalink
Merge pull request #201 from kodadot/fix/call-another-workers
Browse files Browse the repository at this point in the history
fix: call another workers
  • Loading branch information
vikiival authored Nov 14, 2023
2 parents 6b3c429 + cf9ce04 commit cccf55d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ogi/utils/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export const prefixChain = (prefix: Prefix) => {

export const usdPrice = async (prefix: Prefix, amount: string) => {
const id = prefixChain(prefix);
const getUsd = await fetch(`https://price.kodadot.workers.dev/price/${id}`);
const getUsd = await fetch(
`https://price.preschian-cdn.workers.dev/price/${id}`,
);
const usd = await getUsd.json();
const price = parseFloat(amount) * usd[id].usd;

Expand Down

0 comments on commit cccf55d

Please sign in to comment.