Update commit costs
@@ -23,20 +23,20 @@ impl CommitCost {
// TODO: overvalued for quick fix of tx fails (ZKS-109).
pub const BASE_COST: u64 = 40_000;
- pub const DEPOSIT_COST: u64 = 7_000;
+ pub const DEPOSIT_COST: u64 = 7_700;
// TODO: estimate after changepubkey gas cost estimation is fixed [ZKS-554]
pub const OLD_CHANGE_PUBKEY_COST_OFFCHAIN: u64 = 25_000;
- pub const CHANGE_PUBKEY_COST_OFFCHAIN: u64 = 11_050;
- pub const CHANGE_PUBKEY_COST_ONCHAIN: u64 = 5_530;
- pub const CHANGE_PUBKEY_COST_CREATE2: u64 = 7_330;
- pub const TRANSFER_COST: u64 = 250;
- pub const TRANSFER_TO_NEW_COST: u64 = 780;
- pub const FULL_EXIT_COST: u64 = 7_000;
- pub const WITHDRAW_COST: u64 = 3_500;
- pub const WITHDRAW_NFT_COST: u64 = 3_500; // TODO Verify value
+ pub const CHANGE_PUBKEY_COST_OFFCHAIN: u64 = 12_700;
+ pub const CHANGE_PUBKEY_COST_ONCHAIN: u64 = 6_400;
+ pub const CHANGE_PUBKEY_COST_CREATE2: u64 = 8_450;
+ pub const TRANSFER_COST: u64 = 300;
+ pub const TRANSFER_TO_NEW_COST: u64 = 940;
+ pub const FULL_EXIT_COST: u64 = 10_000;
+ pub const WITHDRAW_COST: u64 = 3_900;
+ pub const WITHDRAW_NFT_COST: u64 = 5_150;
pub const FORCED_EXIT_COST: u64 = Self::WITHDRAW_COST; // TODO: Verify value (ZKS-109).
- pub const MINT_TOKEN_COST: u64 = 3_500;
- pub const SWAP_COST: u64 = 600;
+ pub const MINT_TOKEN_COST: u64 = 920;
+ pub const SWAP_COST: u64 = 710;
pub fn base_cost() -> U256 {
U256::from(Self::BASE_COST)
