Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloMansanet committed Dec 23, 2024
1 parent c1013d7 commit 8dd5eab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn fee_for_msg(
};
message.validate(dest_chain, fee_token_config)?;

let fee_token_price = get_validated_token_price(&fee_token_config)?;
let fee_token_price = get_validated_token_price(fee_token_config)?;
let _packed_gas_price = get_validated_gas_price(dest_chain)?;

let network_fee = network_fee(
Expand Down Expand Up @@ -111,7 +111,7 @@ fn token_network_fees(
.ok_or(CcipRouterError::UnsupportedToken)?;

let bps_fee = if config_for_dest_chain.billing.deci_bps > 0 {
let token_price = get_validated_token_price(&config)?;
let token_price = get_validated_token_price(config)?;
// Calculate token transfer value, then apply fee ratio
// ratio represents multiples of 0.1bps, or 1e-5
Usd18Decimals(
Expand Down
2 changes: 1 addition & 1 deletion chains/solana/contracts/programs/ccip-router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ pub mod ccip_router {

Ok(fee_for_msg(
dest_chain_selector,
&message,
message,
&ctx.accounts.dest_chain_state,
&ctx.accounts.billing_token_config.config,
&token_billing_config_accounts,
Expand Down

0 comments on commit 8dd5eab

Please sign in to comment.