We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2021/06/19 02:27:36 HandleSwapExactTokensForETH 2021/06/19 02:27:36 map[amountInMax:576555332232884166 amountOut:256060094057007769383412171 deadline:1624070816 path:[0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2] to:0x6cef5a51dEFf4f7DcC6d4C74D9eC1cC619272343]
This golang function is for Uniswap contract function swapExactTokensForETH.
swapExactTokensForETH
However, the arguments do not match up. I suspect that the wrong byte signature is used.
amountIn | uint | The amount of input tokens to send. -- | -- | -- amountOutMin | uint | The minimum amount of output tokens that must be received for the transaction not to revert. path | address[] calldata | An array of token addresses. path.length must be >= 2. Pools for each consecutive pair of addresses must exist and have liquidity. to | address | Recipient of the ETH. deadline | uint | Unix timestamp after which the transaction will revert. | | amounts | uint[] memory | The input token amount and all subsequent output token amounts. <h2 id="swapethforexacttokens" style="box-sizing: inherit; padding: 0px; color: rgb(1, 1, 1); font-family: "GT Haptik Regular"; font-weight: 400; text-rendering: optimizelegibility; line-height: 1.1; margin: 0px 0px 1.45rem; font-size: 1.5rem; font-style: normal; font-variant-ligatures: none; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(247, 248, 250); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; position: relative;"><a href="https://uniswap.org/docs/v2/smart-contracts/router02/#swapethforexacttokens" aria-label="swapethforexacttokens permalink" class="anchor before" style="box-sizing: inherit; background-color: transparent; color: rgb(255, 0, 122); text-decoration: none; position: absolute; top: 0px; font-size: 24px; left: -1.5rem; letter-spacing: -1px; width: 24px;"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a></h2><br class="Apple-interchange-newline">
The text was updated successfully, but these errors were encountered:
This was actually my copy paste issue 😭
Sorry, something went wrong.
No branches or pull requests
2021/06/19 02:27:36 HandleSwapExactTokensForETH
2021/06/19 02:27:36 map[amountInMax:576555332232884166 amountOut:256060094057007769383412171 deadline:1624070816 path:[0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2] to:0x6cef5a51dEFf4f7DcC6d4C74D9eC1cC619272343]
This golang function is for Uniswap contract function
swapExactTokensForETH
.However, the arguments do not match up. I suspect that the wrong byte signature is used.
The text was updated successfully, but these errors were encountered: