chore(governance): include slippage factor to proposals (#3204)
This commit is contained in:
parent
0d911b3029
commit
5c19263653
@ -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",
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{
|
{
|
||||||
"lpPriceRange": "10",
|
"lpPriceRange": "10",
|
||||||
|
"linearSlippageFactor": "0.001",
|
||||||
|
"quadraticSlippageFactor": "0",
|
||||||
"instrument": {
|
"instrument": {
|
||||||
"code": "TEST.24h",
|
"code": "TEST.24h",
|
||||||
"future": {
|
"future": {
|
||||||
|
@ -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');
|
||||||
);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -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',
|
||||||
|
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user