Skip to content

Commit

Permalink
fix: updated BUY_EXECUTION_REFUND_ON_FAILURE and BUY_EXECUTION_REFUND…
Browse files Browse the repository at this point in the history
… values for dancebox tests after updating dependencies
  • Loading branch information
Aleksandar Brayanov committed Nov 21, 2024
1 parent ea4d27b commit f7fb378
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runtime/dancebox/src/tests/common/xcm/core_buyer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ const ROCOCO_ED: u128 = rococo_runtime_constants::currency::EXISTENTIAL_DEPOSIT;
const BUY_EXECUTION_COST: u128 = crate::xcm_config::XCM_BUY_EXECUTION_COST_ROCOCO;
// Difference between BUY_EXECUTION_COST and the actual cost that depends on the weight of the XCM
// message, gets refunded on successful execution of core buying extrinsic.
const BUY_EXECUTION_REFUND: u128 = 3334777;
const BUY_EXECUTION_REFUND: u128 = 3076488;
// Difference between BUY_EXECUTION_COST and the actual cost that depends on the weight of the XCM
// message, gets refunded on un-successful execution of core buying extrinsic.
const BUY_EXECUTION_REFUND_ON_FAILURE: u128 = 1001467;
const BUY_EXECUTION_REFUND_ON_FAILURE: u128 = 743178;

#[test]
fn constants() {
Expand Down
4 changes: 2 additions & 2 deletions runtime/dancebox/src/tests/common/xcm/core_buyer_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ pub const ROCOCO_ED: u128 = rococo_runtime_constants::currency::EXISTENTIAL_DEPO
pub const BUY_EXECUTION_COST: u128 = crate::xcm_config::XCM_BUY_EXECUTION_COST_ROCOCO;
// Difference between BUY_EXECUTION_COST and the actual cost that depends on the weight of the XCM
// message, gets refunded on successful execution of core buying extrinsic.
pub const BUY_EXECUTION_REFUND: u128 = 3334777;
pub const BUY_EXECUTION_REFUND: u128 = 3076488;
// Difference between BUY_EXECUTION_COST and the actual cost that depends on the weight of the XCM
// message, gets refunded on un-successful execution of core buying extrinsic.
pub const BUY_EXECUTION_REFUND_ON_FAILURE: u128 = 1001467;
pub const BUY_EXECUTION_REFUND_ON_FAILURE: u128 = 743178;

pub const PLACE_ORDER_WEIGHT_AT_MOST: Weight = Weight::from_parts(1_000_000_000, 100_000);

Expand Down

0 comments on commit f7fb378

Please sign in to comment.