diff --git a/.changeset/loose-tools-move.md b/.changeset/loose-tools-move.md new file mode 100644 index 00000000000..98cc9fee1b8 --- /dev/null +++ b/.changeset/loose-tools-move.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +Fixes token pricing in PayEmbed diff --git a/packages/thirdweb/src/pay/convert/cryptoToFiat.ts b/packages/thirdweb/src/pay/convert/cryptoToFiat.ts index c6c07660af3..245e8e55532 100644 --- a/packages/thirdweb/src/pay/convert/cryptoToFiat.ts +++ b/packages/thirdweb/src/pay/convert/cryptoToFiat.ts @@ -107,7 +107,7 @@ export async function convertCryptoToFiat( }, }), { - cacheKey: `convert-fiat-to-crypto-${to}-${chain.id}`, + cacheKey: `convert-fiat-to-crypto-${fromTokenAddress}-${chain.id}`, cacheTime: 1000 * 60, // 1 minute cache }, );