ElementsProject / ElementsProject/elements

[Bug] Elements-23.2.2 with CT discount cannot send full balance less fee

Open
#1,358 1 comment 0 reactions 0 assignees View on GitHub
needs reproduction
Dominant language
C++
Stars
1.2k
Forks
416
Avg merge
1d 23h
Merged PRs (30d)
15

Description

When `sendtoaddress` is called to send the whole liquid balance less margin for fee (75-200 sats) CT discount is not applied and results in:
```
error code: -6
error message:
Insufficient funds
```

https://github.com/ElementsProject/peerswap/pull/304#issuecomment-2303931071

We understand there is an option `subtractfeefromamount`, but prefer not to use it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.