From 6c1f1af6f4e4fec9c277e5cf1213a0bf1a1ec1f0 Mon Sep 17 00:00:00 2001 From: Ivan Schasny Date: Fri, 16 Aug 2024 10:34:29 +0100 Subject: [PATCH] reduce variation range --- core/lib/external_price_api/src/forced_price_client.rs | 4 ++-- core/tests/ts-integration/src/test-master.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/lib/external_price_api/src/forced_price_client.rs b/core/lib/external_price_api/src/forced_price_client.rs index 43a83c39720..1bab2f945c5 100644 --- a/core/lib/external_price_api/src/forced_price_client.rs +++ b/core/lib/external_price_api/src/forced_price_client.rs @@ -11,8 +11,8 @@ use zksync_types::{base_token_ratio::BaseTokenAPIRatio, Address}; use crate::PriceAPIClient; -const VARIATION_RANGE: f64 = 0.2; //20% -const NEXT_VALUE_VARIATION_RANGE: f64 = 0.03; //3% +const VARIATION_RANGE: f64 = 0.03; //20% +const NEXT_VALUE_VARIATION_RANGE: f64 = 0.01; //3% // Struct for a forced price "client" (conversion ratio is always a configured "forced" ratio). #[derive(Debug)] diff --git a/core/tests/ts-integration/src/test-master.ts b/core/tests/ts-integration/src/test-master.ts index db4494a9651..fa6a8e12f5a 100644 --- a/core/tests/ts-integration/src/test-master.ts +++ b/core/tests/ts-integration/src/test-master.ts @@ -100,7 +100,7 @@ export class TestMaster { this.l2Provider.pollingInterval = 5000; } - this.mainWallet = new BumpUpFeeWallet(suiteWalletPK, this.l2Provider, this.l1Provider); + this.mainWallet = new zksync.Wallet(suiteWalletPK, this.l2Provider, this.l1Provider); } /** @@ -141,7 +141,7 @@ export class TestMaster { */ newEmptyAccount(): zksync.Wallet { const randomPK = ethers.Wallet.createRandom().privateKey; - const newWallet = new BumpUpFeeWallet(randomPK, this.l2Provider, this.l1Provider); + const newWallet = new zksync.Wallet(randomPK, this.l2Provider, this.l1Provider); this.subAccounts.push(newWallet); return newWallet; }