pipe-wallet icon indicating copy to clipboard operation
pipe-wallet copied to clipboard

Possible typo

Open OxMarco opened this issue 2 years ago • 3 comments

https://github.com/BennyTheDev/pipe-wallet/blob/93782aea0601d0ecd0040660acbf641e6cdb7248/pipe.mjs#L1448

Shouldn't this be amount + fee * 2n ?

OxMarco avatar Oct 22 '23 10:10 OxMarco

Here too

https://github.com/BennyTheDev/pipe-wallet/blob/93782aea0601d0ecd0040660acbf641e6cdb7248/pipe.mjs#L1626

OxMarco avatar Oct 22 '23 10:10 OxMarco

because if found is 2000 and rate is 10 and amount is 1000 so

2000 >= 1000 * 10 * 2n and got error

thewrlck avatar Oct 22 '23 10:10 thewrlck

No, it means that if more or equal is found, it will break the loop and use the unspents that have been collected to this point.

BennyTheDev avatar Oct 22 '23 12:10 BennyTheDev