@moonbeam-network/mrl 1.0.0-dev.274 → 1.0.0-dev.276
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.mjs +3 -2
- package/build/index.mjs.map +1 -1
- package/package.json +6 -6
package/build/index.mjs
CHANGED
|
@@ -17508,6 +17508,7 @@ async function getProtocolFee({
|
|
|
17508
17508
|
const config = protocolFee?.build({
|
|
17509
17509
|
address,
|
|
17510
17510
|
asset,
|
|
17511
|
+
feeAsset,
|
|
17511
17512
|
balance,
|
|
17512
17513
|
destination,
|
|
17513
17514
|
source
|
|
@@ -17527,11 +17528,11 @@ async function getProtocolFee({
|
|
|
17527
17528
|
if (SubstrateQueryConfig.is(config) && EvmParachain3.isAnyParachain(source)) {
|
|
17528
17529
|
const polkadot = await PolkadotService2.create(source);
|
|
17529
17530
|
const amount = await polkadot.query(config);
|
|
17530
|
-
return AssetAmount2.fromChainAsset(
|
|
17531
|
+
return AssetAmount2.fromChainAsset(feeAsset, {
|
|
17531
17532
|
amount
|
|
17532
17533
|
});
|
|
17533
17534
|
}
|
|
17534
|
-
return AssetAmount2.fromChainAsset(
|
|
17535
|
+
return AssetAmount2.fromChainAsset(feeAsset, {
|
|
17535
17536
|
amount: 0n
|
|
17536
17537
|
});
|
|
17537
17538
|
}
|