zingolabs / zingolib

An API and test-app that exposes zcash functionality for app consumption
MIT License
15 stars 19 forks source link

Send to Self Shielded #1267

Closed zancas closed 1 week ago

zancas commented 1 week ago

I sent from the Sapling to the Orchard pool, at first I think the funding note was unconfirmed so I received an insufficient funds error. This is correct, but because we're using PTFM, and this is a cross pool transfer I believe the fee should have been 20_000 which doesn't match the reported shortfall here:

(main) Block:2563173 (type 'help') >> quicksend zs1ncjvkr466f55lnn7s529rdk7063205esznk6f4kfqn920t3cexutuqjj2n8jw34h65ahzs703e3 229877
{
  "error": "propose send Proposal(InsufficientFunds { available: Zatoshis(0), required: Zatoshis(239877) })"
}

Required in this case should have been 229877 not 2239877`.

zancas commented 1 week ago

Here's another observation of this issue:

required_off_by_10_000_oneway_or_another