Skip to content

Commit ae88e44

Browse files
committed
fix: get proper PRICE_FEED_COMPRESSOR version
1 parent 055bcd6 commit ae88e44

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/dev/PriceFeedStore.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class PriceFeedStore extends SDKConstruct {
3131
constructor(sdk: GearboxSDK) {
3232
super(sdk);
3333
this.#store = this.sdk.addressProvider.getAddress("PRICE_FEED_STORE");
34-
this.#compressor = this.sdk.addressProvider.getAddress(
34+
this.#compressor = this.sdk.addressProvider.getLatestVersion(
3535
AP_PRICE_FEED_COMPRESSOR,
3636
);
3737
this.#logger = sdk.logger?.child?.({
@@ -71,8 +71,9 @@ export class PriceFeedStore extends SDKConstruct {
7171
});
7272
if (update) {
7373
const feeds = result.map(f => this.sdk.priceFeeds.create(f));
74-
const { txs } =
75-
await this.sdk.priceFeeds.generatePriceFeedsUpdateTxs(feeds);
74+
const { txs } = await this.sdk.priceFeeds.generatePriceFeedsUpdateTxs(
75+
feeds,
76+
);
7677
const resp = await this.provider.publicClient.multicall({
7778
contracts: [
7879
...txs.map(rawTxToMulticallPriceUpdate),

0 commit comments

Comments
 (0)