You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use bp_bridge_hub_polkadot::snowbridge::EthereumNetwork;
21
27
use bp_messages::LegacyLaneId;
22
28
use bp_relayers::RewardsAccountParams;
23
29
use codec::{Decode,DecodeWithMemTracking,Encode,MaxEncodedLen};
24
30
use frame_support::parameter_types;
25
31
use polkadot_runtime_constants as constants;
26
32
use scale_info::TypeInfo;
27
-
use xcm::VersionedLocation;
33
+
use system_parachains_constants::polkadot::locations::AssetHubLocation;
34
+
use xcm::{opaque::latest::Location,VersionedLocation};
35
+
use xcm_executor::XcmExecutor;
28
36
29
37
parameter_types!{
30
38
/// Reserve identifier, used by the `pallet_bridge_relayers` to hold funds of registered relayer.
@@ -111,7 +119,27 @@ impl bp_relayers::PaymentProcedure<AccountId, BridgeReward, u128> for BridgeRewa
111
119
BridgeRewardBeneficiaries::AssetHubLocation(_) => Err(Self::Error::Other("`AssetHubLocation` beneficiary is not supported for `PolkadotKusamaBridge` rewards!")),
112
120
}
113
121
},
114
-
BridgeReward::Snowbridge => Err(Self::Error::Other("Not supported for `Snowbridge` rewards yet!")),
122
+
BridgeReward::Snowbridge => {
123
+
match beneficiary {
124
+
BridgeRewardBeneficiaries::LocalAccount(_) => Err(Self::Error::Other("`LocalAccount` beneficiary is not supported for `Snowbridge` rewards!")),
0 commit comments