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
ElementsProject/peerswap#304 (comment)
We understand there is an option subtractfeefromamount, but prefer not to use it.