Skip to content

Commit

Permalink
fix: fixed relychain and parachain has different token decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
toints committed Sep 5, 2024
1 parent a47caa1 commit 896b4a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pallets/liquidation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ pub mod pallet {

let (collator, real_gas_cost) = match T::OrderGasCost::gas_cost(n) {
Ok(cost) => match cost {
Some((collator, real_gas_cost)) => (collator, real_gas_cost),
Some((collator, real_gas_cost)) => {
let adjusted_gas_cost = real_gas_cost * PARACHAIN_TO_RELAYCHAIN_UNIT;
(collator, adjusted_gas_cost)
},
None => return,
},
Err(_) => {
Expand Down

0 comments on commit 896b4a1

Please sign in to comment.