We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cb1645 commit 785b325Copy full SHA for 785b325
packages/create-cle/templates/template-uniswapprice/src/mapping.ts
@@ -24,8 +24,8 @@ function calcPrice(syncEvent: Event): BigInt {
24
const reserve0 = source.slice(0, 32);
25
const reserve1 = source.slice(32, 64);
26
27
- const r0 = BigInt.fromBytesBigEndian(reserve0);
28
- const r1 = BigInt.fromBytesBigEndian(reserve1);
+ const r0 = BigInt.fromBytes(reserve0);
+ const r1 = BigInt.fromBytes(reserve1);
29
let price0 = r0
30
.times(token0_factor)
31
.times(price_factor)
0 commit comments