The method "testpoolswap" calculates the wrong value from DFI to DUSD
What happened:
A poolswap from 1 DFI in DUSD gives 1.12 DUSD, but testpoolswap from 1 DFI in DUSD gives you 0.79 DUSD.
The testpoolswap calculation of DFI in DUSD is wrong.
Is it possible that the stabilization fee is deducted?
What you expected to happen:
Same calculation like poolswap
How to reproduce it (as minimally and precisely as possible):
What are your environment parameters:
DeFiChain Node 2.9.2
Anything else we need to know?:
Maybe it is since the new stable pools are life? Is it possible that the stabilization fee is deducted?
@Kolibri1990: 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.
I was about to report the same issue. I am also on 2.9.2 and this is what I have tried:
./defi-cli.exe testpoolswap '{"amountFrom":1000.0,"tokenFrom":"DFI","tokenTo":"DUSD","from":"dLXs788fWMpGoar1WzDnLoNCNYyZVPPozv","to":"dLXs788fWMpGoar1WzDnLoNCNYyZVPPozv"}' "auto"
Results in 797.70634644@15 which is much lower than expected.
I have also checked that the correct pool was chosen and this seems to be the case.
path=direct, pools=[17]