Skip to content

Commit 9f937e3

Browse files
committed
refactor(pyth): rename processSingleTwapUpdate to extractTwapPriceInfos for clarity
1 parent 3e5de9b commit 9f937e3

File tree

1 file changed

+3
-3
lines changed
  • target_chains/ethereum/contracts/contracts/pyth

1 file changed

+3
-3
lines changed

target_chains/ethereum/contracts/contracts/pyth/Pyth.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ abstract contract Pyth is
372372
);
373373
}
374374

375-
function processSingleTwapUpdate(
375+
function extractTwapPriceInfos(
376376
bytes calldata updateData
377377
)
378378
private
@@ -466,7 +466,7 @@ abstract contract Pyth is
466466
offsetStart,
467467
startTwapPriceInfos,
468468
startPriceIds
469-
) = processSingleTwapUpdate(updateData[0]);
469+
) = extractTwapPriceInfos(updateData[0]);
470470
}
471471

472472
// Process end update data
@@ -478,7 +478,7 @@ abstract contract Pyth is
478478
offsetEnd,
479479
endTwapPriceInfos,
480480
endPriceIds
481-
) = processSingleTwapUpdate(updateData[1]);
481+
) = extractTwapPriceInfos(updateData[1]);
482482
}
483483

484484
// Verify that we have the same number of price feeds in start and end updates

0 commit comments

Comments
 (0)