remove some printf debugging
This commit is contained in:
parent
56eff48140
commit
e3135213fc
@ -96,8 +96,6 @@ export function getWithdrawDenomList(
|
|||||||
denoms = denoms.filter(isWithdrawableDenom);
|
denoms = denoms.filter(isWithdrawableDenom);
|
||||||
denoms.sort((d1, d2) => Amounts.cmp(d2.value, d1.value));
|
denoms.sort((d1, d2) => Amounts.cmp(d2.value, d1.value));
|
||||||
|
|
||||||
console.log("start remaining is", Amounts.stringify(remaining));
|
|
||||||
|
|
||||||
for (const d of denoms) {
|
for (const d of denoms) {
|
||||||
let count = 0;
|
let count = 0;
|
||||||
const cost = Amounts.add(d.value, d.feeWithdraw).amount;
|
const cost = Amounts.add(d.value, d.feeWithdraw).amount;
|
||||||
@ -107,10 +105,8 @@ export function getWithdrawDenomList(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
remaining = Amounts.sub(remaining, cost).amount;
|
remaining = Amounts.sub(remaining, cost).amount;
|
||||||
console.log("remaining is", Amounts.stringify(remaining));
|
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
console.log("count is", count);
|
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
totalCoinValue = Amounts.add(
|
totalCoinValue = Amounts.add(
|
||||||
totalCoinValue,
|
totalCoinValue,
|
||||||
|
Loading…
Reference in New Issue
Block a user