Skip to content

Commit 8245c06

Browse files
authored
[SDK] Fix: Token price cache to use proper address (#7230)
1 parent 1c11f84 commit 8245c06

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/loose-tools-move.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Fixes token pricing in PayEmbed

packages/thirdweb/src/pay/convert/cryptoToFiat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export async function convertCryptoToFiat(
107107
},
108108
}),
109109
{
110-
cacheKey: `convert-fiat-to-crypto-${to}-${chain.id}`,
110+
cacheKey: `convert-fiat-to-crypto-${fromTokenAddress}-${chain.id}`,
111111
cacheTime: 1000 * 60, // 1 minute cache
112112
},
113113
);

0 commit comments

Comments
 (0)