Skip to content
New issue

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

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

Already on GitHub? # to your account

wrong result #590

Open
guotie opened this issue May 28, 2024 · 2 comments
Open

wrong result #590

guotie opened this issue May 28, 2024 · 2 comments

Comments

@guotie
Copy link

guotie commented May 28, 2024

  • I'm submitting a ...
    [x] question about the decisions made in the repository

  • Summary

I use the following base cli which is in README.md:

./bin/cli quote --tokenIn 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA --tokenOut 0x4200000000000000000000000000000000000006 --amount 1000 --exactIn --minSplits 1 --protocols v3 --router alpha --chainId 8453 

and the output is:

Best Route:
[V3] 100.00% = USDbC -- 0.05% [0x4C36388bE6F416A29C8d8Eee81C771cE6bE14B18] --> WETH
        Raw Quote Exact In:
                0.25
        Gas Adjusted Quote In:
                0.25

Gas Used Quote Token: 0.000003
Gas Used USD: 0.014250
Calldata: undefined
Value: undefined

  blockNumber: "15040322"
  estimatedGasUsed: "128000"
  gasPriceWei: "28528120"
Total ticks crossed: 1

why Quote Exact In is only 0.25?

why calldata is undefined?

@TNasiB
Copy link

TNasiB commented May 31, 2024

calldata is undefined because alpha router has a check for the parameters with which you call, if you call smart order router with configs as in the documentation, then calldata will return

@guotie
Copy link
Author

guotie commented Jun 3, 2024

add flag recipient will produce calldata

--recipient 0xxxxxxxx

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

No branches or pull requests

2 participants