Skip to content

Commit

Permalink
Fellowship entities get free xcm execution (#107)
Browse files Browse the repository at this point in the history
Fellowship entities get free xcm execution.

Same as the Fellowship entities allowed to pass `UnpaidExecution`
command to bypass the fees charged by `Trader` impl, we include the
Fellowship locations to `WaivedLocations` to not be charged by
`FeeManager` impl.

Co-authored-by: Bastian Köcher <[email protected]>
  • Loading branch information
muharem and bkchr authored Dec 1, 2023
1 parent 16e5564 commit b8df4b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,12 @@ match_types! {
/// Locations that will not be charged fees in the executor,
/// either execution or delivery.
/// We only waive fees for system functions, which these locations represent.
pub type WaivedLocations =
(RelayOrOtherSystemParachains<SystemParachains, Runtime>, Equals<RelayTreasuryLocation>);
pub type WaivedLocations = (
RelayOrOtherSystemParachains<SystemParachains, Runtime>,
Equals<RelayTreasuryLocation>,
FellowsPlurality,
FellowshipSalaryPallet,
);

/// Cases where a remote origin is accepted as trusted Teleporter for a given asset:
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,11 @@ match_types! {
/// Locations that will not be charged fees in the executor,
/// either execution or delivery.
/// We only waive fees for system functions, which these locations represent.
pub type WaivedLocations =
(RelayOrOtherSystemParachains<SystemParachains, Runtime>, Equals<RelayTreasuryLocation>);
pub type WaivedLocations = (
RelayOrOtherSystemParachains<SystemParachains, Runtime>,
Equals<RelayTreasuryLocation>,
FellowsPlurality,
);

/// Cases where a remote origin is accepted as trusted Teleporter for a given asset:
/// - DOT with the parent Relay Chain and sibling parachains.
Expand Down

0 comments on commit b8df4b0

Please sign in to comment.