chore(governance): include slippage factor to proposals (#3204)

This commit is contained in:
Joe Tsang 2023-03-16 10:41:18 +00:00 committed by GitHub
parent 0d911b3029
commit 5c19263653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 4 deletions

View File

@ -2,6 +2,8 @@
"changes": { "changes": {
"decimalPlaces": "5", "decimalPlaces": "5",
"positionDecimalPlaces": "5", "positionDecimalPlaces": "5",
"linearSlippageFactor": "0.001",
"quadraticSlippageFactor": "0",
"lpPriceRange": "10", "lpPriceRange": "10",
"instrument": { "instrument": {
"name": "Token test market", "name": "Token test market",

View File

@ -1,5 +1,7 @@
{ {
"lpPriceRange": "10", "lpPriceRange": "10",
"linearSlippageFactor": "0.001",
"quadraticSlippageFactor": "0",
"instrument": { "instrument": {
"code": "TEST.24h", "code": "TEST.24h",
"future": { "future": {

View File

@ -110,10 +110,9 @@ Cypress.Commands.add('vega_wallet_teardown', function () {
} }
}); });
cy.get(vegaWalletContainer).within(() => { cy.get(vegaWalletContainer).within(() => {
cy.get('[data-testid="associated-amount"]', { timeout: 30000 }).should( cy.get('[data-testid="vega-wallet-balance-unstaked"]', {
'contain.text', timeout: 30000,
'0.00' }).should('contain.text', '0.00');
);
}); });
}); });

View File

@ -35,6 +35,8 @@ function createNewMarketProposal(): ProposalSubmissionBody {
changes: { changes: {
decimalPlaces: '5', decimalPlaces: '5',
positionDecimalPlaces: '5', positionDecimalPlaces: '5',
linearSlippageFactor: '0.001',
quadraticSlippageFactor: '0',
lpPriceRange: '10', lpPriceRange: '10',
instrument: { instrument: {
name: 'Test market 1', name: 'Test market 1',

View File

@ -98,6 +98,8 @@ interface ProposalNewMarketTerms {
decimalPlaces: string; decimalPlaces: string;
positionDecimalPlaces: string; positionDecimalPlaces: string;
lpPriceRange: string; lpPriceRange: string;
linearSlippageFactor: string;
quadraticSlippageFactor: string;
instrument: { instrument: {
name: string; name: string;
code: string; code: string;
@ -130,6 +132,8 @@ interface ProposalUpdateMarketTerms {
updateMarket: { updateMarket: {
marketId: string; marketId: string;
changes: { changes: {
linearSlippageFactor: string;
quadraticSlippageFactor: string;
instrument: { instrument: {
code: string; code: string;
future: { future: {