chore(trading): fix types

This commit is contained in:
Dariusz Majcherczyk
2024-02-23 18:07:32 +01:00
parent 7808ceafaa
commit 5557fbac61
2 changed files with 22 additions and 8 deletions
@@ -112,8 +112,6 @@ export function createNewMarketProposalTxBody(): ProposalSubmissionBody {
performanceHysteresisEpochs: 2,
slaCompetitionFactor: '0.1',
},
// FIXME: workaround because of https://github.com/vegaprotocol/vega/issues/10343
quadraticSlippageFactor: '0',
instrument: {
name: 'Token test market',
code: 'TEST.24h',
@@ -210,6 +208,16 @@ export function createNewMarketProposalTxBody(): ProposalSubmissionBody {
sigma: 0.5,
},
},
markPriceConfiguration: {
decayWeight: '1',
decayPower: '1',
cashAmount: '5000000',
sourceWeights: undefined,
sourceStalenessTolerance: ['1m0s', '1m0s', '1m0s'],
compositePriceType: 'COMPOSITE_PRICE_TYPE_WEIGHTED',
dataSourcesSpec: [],
dataSourcesSpecBinding: [],
},
},
},
closingTimestamp,
@@ -242,8 +250,6 @@ export function createSuccessorMarketProposalTxBody(
decimalPlaces: '5',
positionDecimalPlaces: '5',
linearSlippageFactor: '0.001',
// FIXME: workaround because of https://github.com/vegaprotocol/vega/issues/10343
quadraticSlippageFactor: '0',
liquiditySlaParameters: {
priceRange: '0.5',
commitmentMinTimeFraction: '0.1',
@@ -354,6 +360,16 @@ export function createSuccessorMarketProposalTxBody(
parentMarketId: parentMarketId,
insurancePoolFraction: '0.75',
},
markPriceConfiguration: {
decayWeight: '1',
decayPower: '1',
cashAmount: '5000000',
sourceWeights: undefined,
sourceStalenessTolerance: ['1m0s', '1m0s', '1m0s'],
compositePriceType: 'COMPOSITE_PRICE_TYPE_WEIGHTED',
dataSourcesSpec: [],
dataSourcesSpecBinding: [],
},
},
},
closingTimestamp,
+2 -4
View File
@@ -160,9 +160,9 @@ interface ProposalNewMarketTerms {
decayWeight: string;
decayPower: string;
cashAmount: string;
sourceWeights: string[];
sourceWeights: undefined;
sourceStalenessTolerance: string[];
compositePriceType: Schema.CompositePriceType;
compositePriceType: string;
dataSourcesSpec: Schema.DataSourceDefinition[];
dataSourcesSpecBinding: Schema.SpecBindingForCompositePrice[];
};
@@ -177,8 +177,6 @@ interface ProposalUpdateMarketTerms {
marketId: string;
changes: {
linearSlippageFactor: string;
// FIXME: workaround because of https://github.com/vegaprotocol/vega/issues/10343
quadraticSlippageFactor: string;
instrument: {
code: string;
future: {