Skip to content

fix(price-pusher) Ignore Invlide PF #2751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/price_pusher/src/aptos/aptos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export class AptosPricePusher implements IPricePusher {
async getPriceFeedsUpdateData(priceIds: string[]): Promise<number[][]> {
const response = await this.hermesClient.getLatestPriceUpdates(priceIds, {
encoding: "base64",
ignoreInvalidPriceIds: true,
});
return response.binary.data.map((data) =>
Array.from(Buffer.from(data, "base64")),
Expand Down
1 change: 1 addition & 0 deletions apps/price_pusher/src/fuel/fuel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export class FuelPricePusher implements IPricePusher {
try {
const response = await this.hermesClient.getLatestPriceUpdates(priceIds, {
encoding: "base64",
ignoreInvalidPriceIds: true,
});
priceFeedUpdateData = response.binary.data;
} catch (err: any) {
Expand Down
1 change: 1 addition & 0 deletions apps/price_pusher/src/injective/injective.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export class InjectivePricePusher implements IPricePusher {
try {
const response = await this.hermesClient.getLatestPriceUpdates(priceIds, {
encoding: "base64",
ignoreInvalidPriceIds: true,
});
const vaas = response.binary.data;

Expand Down
1 change: 1 addition & 0 deletions apps/price_pusher/src/near/near.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export class NearPricePusher implements IPricePusher {
): Promise<string[]> {
const response = await this.hermesClient.getLatestPriceUpdates(priceIds, {
encoding: "base64",
ignoreInvalidPriceIds: true,
});
return response.binary.data;
}
Expand Down
2 changes: 2 additions & 0 deletions apps/price_pusher/src/solana/solana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export class SolanaPricePusher implements IPricePusher {
shuffledPriceIds,
{
encoding: "base64",
ignoreInvalidPriceIds: true,
},
);
priceFeedUpdateData = response.binary.data;
Expand Down Expand Up @@ -211,6 +212,7 @@ export class SolanaPricePusherJito implements IPricePusher {
try {
const response = await this.hermesClient.getLatestPriceUpdates(priceIds, {
encoding: "base64",
ignoreInvalidPriceIds: true,
});
priceFeedUpdateData = response.binary.data;
} catch (err: any) {
Expand Down
1 change: 1 addition & 0 deletions apps/price_pusher/src/sui/sui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export class SuiPricePusher implements IPricePusher {
priceIdChunk,
{
encoding: "base64",
ignoreInvalidPriceIds: true,
},
);
if (response.binary.data.length !== 1) {
Expand Down
1 change: 1 addition & 0 deletions apps/price_pusher/src/ton/ton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class TonPricePusher implements IPricePusher {
try {
const response = await this.hermesClient.getLatestPriceUpdates(priceIds, {
encoding: "base64",
ignoreInvalidPriceIds: true,
});
priceFeedUpdateData = response.binary.data;
} catch (err: any) {
Expand Down
Loading