Skip to content

Commit

Permalink
Fix pyth price feed
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Jul 5, 2024
1 parent ba8a4ee commit 05de43b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/classic/utils/classic-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function fetchClassicData(classic: Classic): ClassicData {
)
} else if (PRICE_ORACLE_TYPE === "pyth") {
calls.push(
new Multicall3Params(PYTH_PRICE_FEED_ADDRESS, "getPriceUnsafe()", "(int64,uint64,int32,uint256)", [
new Multicall3Params(PYTH_PRICE_FEED_ADDRESS, "getPriceUnsafe(bytes32)", "(int64,uint64,int32,uint256)", [
ethereum.Value.fromBytes(PYTH_NATIVE_PRICE_ID),
]),
)
Expand Down
2 changes: 1 addition & 1 deletion src/clm/utils/clm-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function fetchCLMData(clm: CLM): CLMData {
)
} else if (PRICE_ORACLE_TYPE === "pyth") {
calls.push(
new Multicall3Params(PYTH_PRICE_FEED_ADDRESS, "getPriceUnsafe()", "(int64,uint64,int32,uint256)", [
new Multicall3Params(PYTH_PRICE_FEED_ADDRESS, "getPriceUnsafe(bytes32)", "(int64,uint64,int32,uint256)", [
ethereum.Value.fromBytes(PYTH_NATIVE_PRICE_ID),
]),
)
Expand Down

0 comments on commit 05de43b

Please sign in to comment.