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
|
@override
|
||||||
Amount roughFeeEstimate(int inputCount, int outputCount, int feeRatePerKB) {
|
Amount roughFeeEstimate(int inputCount, int outputCount, int feeRatePerKB) {
|
||||||
return Amount(
|
// TODO: check ppc fee stuff
|
||||||
rawValue: BigInt.from(
|
throw Exception("TODO");
|
||||||
((42 + (272 * inputCount) + (128 * outputCount)) / 4).ceil() *
|
// return Amount(
|
||||||
(feeRatePerKB / 1000).ceil(),
|
// rawValue: BigInt.from(
|
||||||
),
|
// ((42 + (272 * inputCount) + (128 * outputCount)) / 4).ceil() *
|
||||||
fractionDigits: cryptoCurrency.fractionDigits,
|
// (feeRatePerKB / 1000).ceil(),
|
||||||
);
|
// ),
|
||||||
|
// fractionDigits: cryptoCurrency.fractionDigits,
|
||||||
|
// );
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int estimateTxFee({required int vSize, required int feeRatePerKB}) {
|
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