diff --git a/core/bin/zksync_api/src/fee_ticker/constants.rs b/core/bin/zksync_api/src/fee_ticker/constants.rs index 96fe01ee02..e4bcb7d98f 100644 --- a/core/bin/zksync_api/src/fee_ticker/constants.rs +++ b/core/bin/zksync_api/src/fee_ticker/constants.rs @@ -15,9 +15,11 @@ pub(crate) const BASE_TRANSFER_TO_NEW_COST: u64 = VerifyCost::TRANSFER_TO_NEW_CO + CommitCost::TRANSFER_TO_NEW_COST + AMORTIZED_COST_PER_CHUNK * (TransferToNewOp::CHUNKS as u64); pub(crate) const BASE_WITHDRAW_COST: u64 = VerifyCost::WITHDRAW_COST + + VerifyCost::PENDING_WITHDRAW_COST + CommitCost::WITHDRAW_COST + AMORTIZED_COST_PER_CHUNK * (WithdrawOp::CHUNKS as u64); pub(crate) const BASE_WITHDRAW_NFT_COST: u64 = VerifyCost::WITHDRAW_NFT_COST + + VerifyCost::PENDING_WITHDRAW_NFT_COST + CommitCost::WITHDRAW_NFT_COST + AMORTIZED_COST_PER_CHUNK * (WithdrawNFTOp::CHUNKS as u64); pub(crate) const BASE_OLD_CHANGE_PUBKEY_OFFCHAIN_COST: u64 = diff --git a/core/lib/types/src/gas_counter.rs b/core/lib/types/src/gas_counter.rs index 53dccd916e..b009d1b0a4 100644 --- a/core/lib/types/src/gas_counter.rs +++ b/core/lib/types/src/gas_counter.rs @@ -99,10 +99,12 @@ impl VerifyCost { pub const TRANSFER_TO_NEW_COST: u64 = 0; pub const SWAP_COST: u64 = 0; pub const FULL_EXIT_COST: u64 = 30_000; - pub const WITHDRAW_COST: u64 = 48_000; + pub const WITHDRAW_COST: u64 = 30_000; + pub const PENDING_WITHDRAW_COST: u64 = 60_000; pub const FORCED_EXIT_COST: u64 = Self::WITHDRAW_COST; pub const MINT_NFT_COST: u64 = 0; - pub const WITHDRAW_NFT_COST: u64 = 200_000; + pub const WITHDRAW_NFT_COST: u64 = 80_000; + pub const PENDING_WITHDRAW_NFT_COST: u64 = 240_000; pub fn base_cost() -> U256 { U256::from(Self::BASE_COST)