Skip to content

Commit de6e9fc

Browse files
fixed market keys hashing types
1 parent 8bd9e26 commit de6e9fc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sdk/src/configs/markets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
import { ARBITRUM, AVALANCHE, AVALANCHE_FUJI } from "./chains";
66

7-
type MarketConfig = {
7+
export type MarketConfig = {
88
marketTokenAddress: string;
99
indexTokenAddress: string;
1010
longTokenAddress: string;

sdk/src/utils/marketKeysAndConfigs.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { hashDataMap } from "../../src/utils/hash";
1+
import { hashDataMap } from "utils/hash";
22

3-
import { Market } from "types/markets";
43
import {
54
BORROWING_EXPONENT_FACTOR_KEY,
65
BORROWING_FACTOR_KEY,
@@ -40,9 +39,10 @@ import {
4039
THRESHOLD_FOR_STABLE_FUNDING,
4140
VIRTUAL_MARKET_ID_KEY,
4241
VIRTUAL_TOKEN_ID_KEY,
43-
} from "../../src/configs/dataStore";
42+
} from "configs/dataStore";
43+
import { MarketConfig } from "configs/markets";
4444

45-
export function hashMarketConfigKeys(market: Market) {
45+
export function hashMarketConfigKeys(market: MarketConfig) {
4646
const marketAddress = market.marketTokenAddress;
4747
return hashDataMap({
4848
isDisabled: [
@@ -240,7 +240,7 @@ export function hashMarketConfigKeys(market: Market) {
240240
});
241241
}
242242

243-
export function hashMarketValuesKeys(market: Market) {
243+
export function hashMarketValuesKeys(market: MarketConfig) {
244244
const marketAddress = market.marketTokenAddress;
245245
const marketKeys = hashDataMap({
246246
longPoolAmount: [

0 commit comments

Comments
 (0)