Add EffectiveValue extension
MODIFY
WalletWasabi/Extensions/NBitcoinExtensions.cs
WalletWasabi/Extensions/NBitcoinExtensions.cs
@@ -9,6 +9,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Blockchain.Keys;
+using WalletWasabi.Blockchain.TransactionOutputs;
using WalletWasabi.Blockchain.Transactions;
using WalletWasabi.Helpers;
using WalletWasabi.Logging;
@@ -470,6 +471,9 @@ namespace NBitcoin
public static Money EffectiveValue(this Coin coin, FeeRate feeRate) =>
coin.Amount - feeRate.GetFee(coin.ScriptPubKey.EstimateInputVsize());
+ public static Money EffectiveValue(this SmartCoin coin, FeeRate feeRate) =>
+ EffectiveValue(coin.Coin, feeRate);
+
public static T FromBytes<T>(byte[] input) where T : IBitcoinSerializable, new()
{
BitcoinStream inputStream = new(input);

Add EffectiveValue extension