DeFiCh / ain

DeFi Blockchain - enabling decentralized finance on Bitcoin
https://defichain.com
MIT License
401 stars 119 forks source link

sample in help of futureswap is wrong #1172

Closed kuegi closed 2 years ago

kuegi commented 2 years ago

https://github.com/DeFiCh/ain/blob/92223dcbb672ae1df195fbbd30b2ee7228ec6baa/src/masternodes/rpc_accounts.cpp#L2062

states as sample of the futureswap call:

defi-cli futureswap dLb2jq51qkaUbVkLyCiVQCoEHzRSzRPEsJ 1000@DUSD TSLA

but the call requires a number (the dtoken Id not name) as destination. so it should be

defi-cli futureswap dLb2jq51qkaUbVkLyCiVQCoEHzRSzRPEsJ 1000@DUSD 19

defichain-bot commented 2 years ago

@kuegi: 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](https://github.com/DeFiCh) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/DeFiCh/ain/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.
Jouzo commented 2 years ago

This was fixed in commit ddd19f4f3ba24c4a8685825f786af5082e88897f. Destination can now be either 19 or TSLA