diff --git a/apps/governance-e2e/src/fixtures/proposals/new-market.json b/apps/governance-e2e/src/fixtures/proposals/new-market.json index b7950b4ca..d9875eabb 100644 --- a/apps/governance-e2e/src/fixtures/proposals/new-market.json +++ b/apps/governance-e2e/src/fixtures/proposals/new-market.json @@ -2,6 +2,8 @@ "changes": { "decimalPlaces": "5", "positionDecimalPlaces": "5", + "linearSlippageFactor": "0.001", + "quadraticSlippageFactor": "0", "lpPriceRange": "10", "instrument": { "name": "Token test market", diff --git a/apps/governance-e2e/src/fixtures/proposals/update-market.json b/apps/governance-e2e/src/fixtures/proposals/update-market.json index e64904f39..1b4c7de86 100644 --- a/apps/governance-e2e/src/fixtures/proposals/update-market.json +++ b/apps/governance-e2e/src/fixtures/proposals/update-market.json @@ -1,5 +1,7 @@ { "lpPriceRange": "10", + "linearSlippageFactor": "0.001", + "quadraticSlippageFactor": "0", "instrument": { "code": "TEST.24h", "future": { diff --git a/apps/governance-e2e/src/support/wallet-teardown.functions.js b/apps/governance-e2e/src/support/wallet-teardown.functions.js index 5aaa31baf..8c9efd33a 100644 --- a/apps/governance-e2e/src/support/wallet-teardown.functions.js +++ b/apps/governance-e2e/src/support/wallet-teardown.functions.js @@ -110,10 +110,9 @@ Cypress.Commands.add('vega_wallet_teardown', function () { } }); cy.get(vegaWalletContainer).within(() => { - cy.get('[data-testid="associated-amount"]', { timeout: 30000 }).should( - 'contain.text', - '0.00' - ); + cy.get('[data-testid="vega-wallet-balance-unstaked"]', { + timeout: 30000, + }).should('contain.text', '0.00'); }); }); diff --git a/libs/cypress/src/lib/capsule/propose-market.ts b/libs/cypress/src/lib/capsule/propose-market.ts index 1509c44b9..095379bcf 100644 --- a/libs/cypress/src/lib/capsule/propose-market.ts +++ b/libs/cypress/src/lib/capsule/propose-market.ts @@ -35,6 +35,8 @@ function createNewMarketProposal(): ProposalSubmissionBody { changes: { decimalPlaces: '5', positionDecimalPlaces: '5', + linearSlippageFactor: '0.001', + quadraticSlippageFactor: '0', lpPriceRange: '10', instrument: { name: 'Test market 1', diff --git a/libs/wallet/src/connectors/vega-connector.ts b/libs/wallet/src/connectors/vega-connector.ts index 07ade069c..7fb2babb9 100644 --- a/libs/wallet/src/connectors/vega-connector.ts +++ b/libs/wallet/src/connectors/vega-connector.ts @@ -98,6 +98,8 @@ interface ProposalNewMarketTerms { decimalPlaces: string; positionDecimalPlaces: string; lpPriceRange: string; + linearSlippageFactor: string; + quadraticSlippageFactor: string; instrument: { name: string; code: string; @@ -130,6 +132,8 @@ interface ProposalUpdateMarketTerms { updateMarket: { marketId: string; changes: { + linearSlippageFactor: string; + quadraticSlippageFactor: string; instrument: { code: string; future: {