mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 20:54:33 +00:00
uncomment code needed to run
TODO: recomment?
This commit is contained in:
parent
0230575575
commit
2e3f559bf7
1 changed files with 11 additions and 11 deletions
|
@ -2329,9 +2329,9 @@ class NamecoinWallet extends CoinServiceAPI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// int estimateTxFee({required int vSize, required int feeRatePerKB}) {
|
int estimateTxFee({required int vSize, required int feeRatePerKB}) {
|
||||||
// return vSize * (feeRatePerKB / 1000).ceil();
|
return vSize * (feeRatePerKB / 1000).ceil();
|
||||||
// }
|
}
|
||||||
|
|
||||||
/// The coinselection algorithm decides whether or not the user is eligible to make the transaction
|
/// The coinselection algorithm decides whether or not the user is eligible to make the transaction
|
||||||
/// with [satoshiAmountToSend] and [selectedTxFeeRate]. If so, it will call buildTrasaction() and return
|
/// with [satoshiAmountToSend] and [selectedTxFeeRate]. If so, it will call buildTrasaction() and return
|
||||||
|
@ -3405,14 +3405,14 @@ class NamecoinWallet extends CoinServiceAPI
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Check if this is the correct formula for namecoin
|
// TODO: Check if this is the correct formula for namecoin
|
||||||
// Amount roughFeeEstimate(int inputCount, int outputCount, int feeRatePerKB) {
|
Amount roughFeeEstimate(int inputCount, int outputCount, int feeRatePerKB) {
|
||||||
// return Amount(
|
return Amount(
|
||||||
// rawValue: BigInt.from(
|
rawValue: BigInt.from(
|
||||||
// ((42 + (272 * inputCount) + (128 * outputCount)) / 4).ceil() *
|
((42 + (272 * inputCount) + (128 * outputCount)) / 4).ceil() *
|
||||||
// (feeRatePerKB / 1000).ceil()),
|
(feeRatePerKB / 1000).ceil()),
|
||||||
// fractionDigits: coin.decimals,
|
fractionDigits: coin.decimals,
|
||||||
// );
|
);
|
||||||
// }
|
}
|
||||||
|
|
||||||
Future<Amount> sweepAllEstimate(int feeRate) async {
|
Future<Amount> sweepAllEstimate(int feeRate) async {
|
||||||
int available = 0;
|
int available = 0;
|
||||||
|
|
Loading…
Reference in a new issue