Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoka committed Jan 3, 2025
1 parent 094c186 commit 2c7936d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions runtime/adapters/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,7 @@ where
let referrals_used = if asset == NativeAsset::get() {
None
} else {
pallet_referrals::Pallet::<Runtime>::process_trade_fee(
fee_account.clone(),
trader,
asset.into(),
amount,
)?
pallet_referrals::Pallet::<Runtime>::process_trade_fee(fee_account.clone(), trader, asset.into(), amount)?
};

let referral_amount = referrals_used.clone().map(|(balance, _)| balance).unwrap_or_default();
Expand Down

0 comments on commit 2c7936d

Please sign in to comment.