BirthdayResearch / defichain-app

DeFi Blockchain desktop app for Windows, Linux and Mac.
https://defichain.com
MIT License
157 stars 57 forks source link

Test PoolSwapTx execution failed: tx must have at least one input from account owner #1098

Closed ghost closed 2 years ago

ghost commented 2 years ago

Actual behavior:

I can't swap DFI on the DEX to another coin.

Expected behavior:

I can swap from DFI to any coin :-)

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

Want to swap 10 DFI to DUSD or USDC

--> Test PoolSwapTx execution failed: tx must have at least one input from account owner

What are your environment parameters?

Debug Logfile entry:

2021-12-10T10:58:59Z [wallet.dat] Fee Calculation: Fee:262 Bytes:227 Needed:262 Tgt:6 (requested 6) Reason:"Half Target 60% Threshold" Decay 0.96200: Estimation: (1102.5 - 1157.62) 100.00% 352.4/(352.4 0 mem 0.0 out) Fail: (0 - 1102.5) 100.00% 0.4/(0.4 0 mem 0.0 out)

The other side, from DUSD to DFI worked!

defichain-bot commented 2 years ago

@cyrus1683: 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](https://github.com/DeFiCh) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/DeFiCh/app/blob/master/.github/governance.yml) 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](https://github.com/DeFiCh/oss-governance-bot) repository.
izzycsy commented 2 years ago

Hi @cyrus1683 , may I check that you've more than 1 DFI (UTXO)? Do you have multiple addresses?

Difference between DFI (UTXO) & DFI (Token) can be found here: https://github.com/DeFiCh/app/discussions/846

ghost commented 2 years ago

@izzycsy Thanks, that was the problem. It's solved now!