Skip to content

Commit

Permalink
reduce variation range
Browse files Browse the repository at this point in the history
  • Loading branch information
ischasny committed Aug 16, 2024
1 parent 9fdb351 commit e6edf29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/lib/external_price_api/src/forced_price_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
4 changes: 2 additions & 2 deletions core/tests/ts-integration/src/test-master.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit e6edf29

Please sign in to comment.