@moonbeam-network/mrl 1.0.0-dev.285 → 1.0.0-dev.286
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 -0
- package/build/index.mjs.map +1 -1
- package/package.json +6 -6
package/build/index.mjs
CHANGED
|
@@ -17265,6 +17265,9 @@ async function getBridgeChainGasLimit(params) {
|
|
|
17265
17265
|
return gasEstimation * 110n / 100n;
|
|
17266
17266
|
}
|
|
17267
17267
|
function getAmountForTransferSimulation(balance, protocolFee) {
|
|
17268
|
+
if (!balance.isSame(protocolFee)) {
|
|
17269
|
+
return balance;
|
|
17270
|
+
}
|
|
17268
17271
|
return balance.copyWith({
|
|
17269
17272
|
amount: balance.amount - protocolFee.amount > 0 ? balance.amount - protocolFee.amount : 0n
|
|
17270
17273
|
});
|