Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insufficient Funds while transferring #913

Closed
Kindariegel opened this issue Nov 16, 2021 · 15 comments
Closed

Insufficient Funds while transferring #913

Kindariegel opened this issue Nov 16, 2021 · 15 comments

Comments

@Kindariegel
Copy link

Actual behavior:

I can not send from the DEFI Wallet to another DFI address.

Expected behavior:

I can send the DFI to another address w/o errors

How to reproduce it (as minimally and precisely as possible):

  1. Screenshot of my UTXO and tokens:
    image

  2. Send to address brings up an error:
    image

  3. Even with smaller amount, same error

  4. CMD line:

image

What are your environment parameters?

  • DeFiCh/app Version: 2.7.1.
  • Operating System (OS): macOS 11.6
    – RAM (GB): 32GB
    – CPU (Intel Core i5/i7/etc.): i7
  • Current free storage capacity: 300 GB free

Anything else we need to know?

Archive.zip

I started adding my issue to this bug BirthdayResearch/defichain-app#1049 but I see different behaviours.

Thank you for supporting

@defichain-bot
Copy link
Member

@Kindariegel: Thanks for opening an issue, it is currently awaiting triage.

The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.

In the meantime, you can:

  1. Checkout DeFiChain’s Github issue page to see if your issue has already been reported
  2. Submit any logs if you have them, this will greatly expedite the process for us.
  3. You can also join our Telegram or Reddit community channels.
Details

I am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository.

@izzycsy izzycsy transferred this issue from BirthdayResearch/defichain-app Nov 17, 2021
@defichain-bot
Copy link
Member

@Kindariegel: Thanks for opening an issue, it is currently awaiting triage.

The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.

Details

I am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository.

@izzycsy
Copy link
Member

izzycsy commented Nov 17, 2021

Hi @Kindariegel , thanks for creating an issue, the team is currently investigating. Moving it to https://github.com/DeFiCh/ain for it to be tracked. Thank you.

@SilverSurfer2000
Copy link

SilverSurfer2000 commented Nov 17, 2021

A few days ago I tried to swap DFI to dBTC.

The (desktop) wallet converted the DFI to UXTO, but the following swap to dBTC did not work.

When trying to send or convert or do anything with those UXTO, I now get the error message 'insufficient funds'.

I found those UXTO via 'listaddressgroupings' on an unknown address.

Those UXTO are now locked and I can't access them.

I already inserted the address manually to my wallet. With new DFI sent to this adress everything works ok (send, convert Token-UXTO, etc.).

However, the remaining UXTO from the swap 3 days ago remain locked and inaccessible.

Therefore every transaction in the wallet with the 'max' button results in an 'insufficient funds' error - I need to manually insert an amount lesser these 'locked' UXTO.


DeFi Wallet Version: 2.7.1
Operating System (OS): Win10 64bit

@DerFuchs
Copy link

I've got the same problem, too. Tried different things like sending new UTXO and Token to that address, but nothing seems to work.

@SilverSurfer2000
Copy link

I was able to reproduce the malfunction.

I swapped DFI->dBTC.

The wallet converted all my funds to UXTO, but sent them to an internally newly generated adress.

After performing the swap to dBTC the remaining OXTO on the new adress show up in the wallet (and with cli getbalance), but are inaccesible.

Every transaction triggers the error code 'insufficient funds'.

I tried to send with GUI, cli sendtoaddress, accounttoutxos , utxostoaccount - same error.

When I send DFI to this new address, I can perform any send/trade up to the amount of these new dfi.

Whenever the amount includes (parts 0f) the old (utxo-)dfi the error 'insufficient funds' is triggered again.

@ghost
Copy link

ghost commented Nov 18, 2021

Hi @izzycsy

I also have the same problem. I can't send or convert my utxos to another address.
I created a vault and send 140 tokens to the vault, But now all my other DFI are also on the same owner address. (I didn't send them to that)
And from there I can't send it anyway out.
Even utxostoaccount and deposittovault doesn't work. Always the same error message "insufficient funds"

Screenshot von 2021-11-18 08 54 46

getbalances
{
"mine": {
"trusted": 1942.73903334,
"untrusted_pending": 0,
"immature": 0
}
}

listaccounts {} false false true
[
{
"key": "a9144f76294934e34cbd9a7a7346e26a9ba3a456470b87@167",
"owner": "dLfSYvAgUTuj3j16WhdVhX68hKfBAn3hxE",
"amount": "59.00000000@GOLD#167"
},
{
"key": "a914716483a540650a45a6b9f702fc9827c6c1803f3587@167",
"owner": "dPkrPJVSEfzZGfnyVpDNpsvwj8EiXPa16S",
"amount": "59.00000000@GOLD#167"
},
{
"key": "a914959cc8a4ee3e40f028aec0beff8e7929324575e987@0",
"owner": "dT4N7tCMA26cyTw6vaKBiy7CgeW5MRz1wr", # <--- Owneraddress of my vault
"amount": "10.00000000@DFI"
}
]

We talk about much money, so please fix that before the stocks go live!

Thanks and kind regards!
Daniel

@SilverSurfer2000
Copy link

SilverSurfer2000 commented Nov 18, 2021

Could we merge this topic with issue #1049, the last updates there refer to the same problem.

BirthdayResearch/defichain-app#1049 (comment)

@SilverSurfer2000
Copy link

I found a workaround:

First you have to find out, on which address your UXTO are:
listaddressgroupings

Then use dumpprivkey in the CLI
dumpprivkey ADDRESS

I installed the saiive.live desktop wallet and imported the private keys under Konten (arrow up top right corner).

Never give private keys to anyone or insert them in apps you don't know/trust!

In the saiive Wallet the locked UXTO could be sent and swapped without problems.

As the errer continues to happen in my main defi-wallet each time I try to send/swap UXTO I will now import my private keys into a new instance of the defi-wallet and repalce the wallet.dat (keep enough backups of the old wallet.dat!).
OP_DEFI_TX_AUTO_AUTH_PREP) and can't be accessed anymore.

Maybe a timeout problem, maybe the wallet flags them incorrectly as locked...

@Kindariegel
Copy link
Author

I found a workaround:

First you have to find out, on which address your UXTO are: listaddressgroupings

Then use dumpprivkey in the CLI dumpprivkey ADDRESS

I installed the saiive.live desktop wallet and imported the private keys under Konten (arrow up top right corner).

Never give private keys to anyone or insert them in apps you don't know/trust!

In the saiive Wallet the locked UXTO could be sent and swapped without problems.

As the errer continues to happen in my main defi-wallet each time I try to send/swap UXTO I will now import my private keys into a new instance of the defi-wallet and repalce the wallet.dat (keep enough backups of the old wallet.dat!). OP_DEFI_TX_AUTO_AUTH_PREP) and can't be accessed anymore.

Maybe a timeout problem, maybe the wallet flags them incorrectly as locked...

Thanks @SilverSurfer2000 Your workaround works like a charm for me.
I think the bug is still open and solved for DEFI Wallet itself

@prasannavl
Copy link
Member

prasannavl commented Nov 18, 2021

Hi all - thank you for reporting this.

TL;DR

  • The next minor release expected shortly will fix this.
  • Please DO NOT use dumpprivkey unless you have already done it, and know exactly what you are doing and trust the computing environment completely.
  • More importantly, please DO NOT PASTE any of these output into any of these threads or anywhere else that you don't intend to. Once you lose control of it, there's no way to get it back.

Details

The source of this issue was identified and the fix for this had also already been merged into the master branch with #911. We do expect a release on top of the new 2.x very soon along with a number of quality of life fixes and improvements. We're are aiming to fast track the release to tomorrow, but should definitely be out in the few days.

Meanwhile, I see some of the comments have noted dumping the wallet keys to move it to a different wallet. Just wanted to add a note that, please do not use dumpprivkey ADDRESS unless you're aware of what it does, and the implications and nuances that come with exposing your raw private key. While it's a small step, unless you're aware of each of the steps in-between, where it's copied, how it's copied, clipboard software, and completely trust all of the programs running in your system and the target wallet software, I'd recommend and appreciate your patience until we have the next release out.

While the coin selection mechanism in the wallet caused this issue temporarily in some cases, the funds are unaffected and remain as they are. The next release should unblock this smoothly. However, if you chose to do the above private key dumping and if you lose control of your private keys in the process of transfer, please note that your funds may become irrecoverable.

@Kindariegel
Copy link
Author

Thank you @prasannavl for bringing this notes up.
I really appreciate your feedback regarding the upcoming release and fixing that issue

@dr-delphino
Copy link

dr-delphino commented Nov 20, 2021

Hello @prasannavl,

Thank you for your input!

Meanwhile, I see some of the comments have noted dumping the wallet keys to move it to a different wallet. Just wanted to add a note that, please do not use dumpprivkey ADDRESS unless you're aware of what it does, and the implications and nuances that come with exposing your raw private key. While it's a small step, unless you're aware of each of the steps in-between, where it's copied, how it's copied, clipboard software, and completely trust all of the programs running in your system and the target wallet software, I'd recommend and appreciate your patience until we have the next release out.

This is really interesting what you are addressing here. I'm really interested in learning more about this.
Is there a subtopic where these kind of issues are explained in more detail?

While it's a small step, unless you're aware of each of the steps in-between, where it's copied, how it's copied, clipboard software, and completely trust all of the programs running in your system

What kind of implication can you derive from these facts?

I did use the cmd "dumpprivkey" on my own computer, but I didn't know that you should not use it so lightly as you mentioned above.
There aro also many "how to tutorials" that suggest to save the private key as a "hard copy" on paper...(which I did)
I'm a little confused by your statement above and would like to know more about it.

@dr-delphino
Copy link

Hi there,

Can someone please help me or point me to an exisiting tutorial (if there is one- I couldn't find one that helped me so far).
I am currently having problems with liquidity mining on the Defi Chain Wallet.
It is not possible to add some liquidity (BTC - DFI) to a pool.

I tried again and again over the last few days, even with a lower amount of DFI.
But everytime I try, I get the error message "insufficient funds".

Even though I have ~4.766 DFI and ~ 0.00020906 dBTC.

  • OS windows 10
  • Defi chain wallet version 2.7.1

Wallet Balance:
wallet

Error message:
insuffcient funds

I also took a screenshot of some CL output of my balances and accounts:
accounts
accounts_2

@thedoublejay
Copy link
Member

Hi all, DeFi App v2.7.2 is updated with the fix for this issue. Please try it out and let us know if you're still facing this issue. Thanks - https://github.com/DeFiCh/app/releases/tag/v2.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants