mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 17:29:23 +00:00
add todo stubs
This commit is contained in:
parent
68c5ec4f44
commit
c34791ea96
1 changed files with 12 additions and 8 deletions
|
@ -49,18 +49,22 @@ class PeercoinWallet extends Bip39HDWallet
|
|||
|
||||
@override
|
||||
Amount roughFeeEstimate(int inputCount, int outputCount, int feeRatePerKB) {
|
||||
return Amount(
|
||||
rawValue: BigInt.from(
|
||||
((42 + (272 * inputCount) + (128 * outputCount)) / 4).ceil() *
|
||||
(feeRatePerKB / 1000).ceil(),
|
||||
),
|
||||
fractionDigits: cryptoCurrency.fractionDigits,
|
||||
);
|
||||
// TODO: check ppc fee stuff
|
||||
throw Exception("TODO");
|
||||
// return Amount(
|
||||
// rawValue: BigInt.from(
|
||||
// ((42 + (272 * inputCount) + (128 * outputCount)) / 4).ceil() *
|
||||
// (feeRatePerKB / 1000).ceil(),
|
||||
// ),
|
||||
// fractionDigits: cryptoCurrency.fractionDigits,
|
||||
// );
|
||||
}
|
||||
|
||||
@override
|
||||
int estimateTxFee({required int vSize, required int feeRatePerKB}) {
|
||||
return vSize * (feeRatePerKB / 1000).ceil();
|
||||
// TODO: check ppc fee stuff
|
||||
throw Exception("TODO");
|
||||
// return vSize * (feeRatePerKB / 1000).ceil();
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
|
Loading…
Reference in a new issue