Skip to content

Commit 354eb64

Browse files
committed
fix: revert compressors abi
1 parent 91ddee3 commit 354eb64

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

src/sdk/abi/compressors.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -757,11 +757,6 @@ export const iMarketCompressorAbi = [
757757
},
758758
],
759759
},
760-
{
761-
name: "description",
762-
type: "string",
763-
internalType: "string",
764-
},
765760
{ name: "decimals", type: "uint8", internalType: "uint8" },
766761
{ name: "skipCheck", type: "bool", internalType: "bool" },
767762
{ name: "updatable", type: "bool", internalType: "bool" },
@@ -1485,11 +1480,6 @@ export const iMarketCompressorAbi = [
14851480
},
14861481
],
14871482
},
1488-
{
1489-
name: "description",
1490-
type: "string",
1491-
internalType: "string",
1492-
},
14931483
{ name: "decimals", type: "uint8", internalType: "uint8" },
14941484
{ name: "skipCheck", type: "bool", internalType: "bool" },
14951485
{ name: "updatable", type: "bool", internalType: "bool" },
@@ -2228,11 +2218,6 @@ export const iMarketCompressorAbi = [
22282218
},
22292219
],
22302220
},
2231-
{
2232-
name: "description",
2233-
type: "string",
2234-
internalType: "string",
2235-
},
22362221
{ name: "decimals", type: "uint8", internalType: "uint8" },
22372222
{ name: "skipCheck", type: "bool", internalType: "bool" },
22382223
{ name: "updatable", type: "bool", internalType: "bool" },
@@ -2715,7 +2700,6 @@ export const iPriceFeedCompressorAbi = [
27152700
},
27162701
],
27172702
},
2718-
{ name: "description", type: "string", internalType: "string" },
27192703
{ name: "decimals", type: "uint8", internalType: "uint8" },
27202704
{ name: "skipCheck", type: "bool", internalType: "bool" },
27212705
{ name: "updatable", type: "bool", internalType: "bool" },
@@ -2784,7 +2768,6 @@ export const iPriceFeedCompressorAbi = [
27842768
},
27852769
],
27862770
},
2787-
{ name: "description", type: "string", internalType: "string" },
27882771
{ name: "decimals", type: "uint8", internalType: "uint8" },
27892772
{ name: "skipCheck", type: "bool", internalType: "bool" },
27902773
{ name: "updatable", type: "bool", internalType: "bool" },
@@ -2844,7 +2827,6 @@ export const iPriceFeedCompressorAbi = [
28442827
},
28452828
],
28462829
},
2847-
{ name: "description", type: "string", internalType: "string" },
28482830
{ name: "decimals", type: "uint8", internalType: "uint8" },
28492831
{ name: "skipCheck", type: "bool", internalType: "bool" },
28502832
{ name: "updatable", type: "bool", internalType: "bool" },

src/sdk/accounts/CreditAccountsService.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ export interface PermitResult {
159159

160160
export class CreditAccountsService extends SDKConstruct {
161161
#compressor: Address;
162-
#rewardCompressor: Address;
163162
#batchSize?: number;
164163
#logger?: ILogger;
165164

@@ -168,9 +167,6 @@ export class CreditAccountsService extends SDKConstruct {
168167
this.#compressor = sdk.addressProvider.getLatestVersion(
169168
AP_CREDIT_ACCOUNT_COMPRESSOR,
170169
);
171-
this.#rewardCompressor = sdk.addressProvider.getLatestVersion(
172-
AP_REWARDS_COMPRESSOR,
173-
);
174170
this.#batchSize = options?.batchSize;
175171
this.#logger = childLogger("CreditAccountsService", sdk.logger);
176172
}
@@ -293,7 +289,7 @@ export class CreditAccountsService extends SDKConstruct {
293289
async getRewards(account: Address): Promise<RewardInfo[]> {
294290
const rewards = await this.provider.publicClient.readContract({
295291
abi: iRewardCompressorAbi,
296-
address: this.#rewardCompressor,
292+
address: this.rewardCompressor,
297293
functionName: "getRewards",
298294
args: [account],
299295
});
@@ -1047,4 +1043,8 @@ export class CreditAccountsService extends SDKConstruct {
10471043
private get marketConfigurators(): Array<Address> {
10481044
return this.sdk.marketRegister.marketConfigurators.map(mc => mc.address);
10491045
}
1046+
1047+
private get rewardCompressor(): Address {
1048+
return this.sdk.addressProvider.getLatestVersion(AP_REWARDS_COMPRESSOR);
1049+
}
10501050
}

0 commit comments

Comments
 (0)