Skip to content
New issue

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

SOR - Returning path with failing Gyro #1567

Open
johngrantuk opened this issue Feb 5, 2025 · 1 comment · May be fixed by #1620
Open

SOR - Returning path with failing Gyro #1567

johngrantuk opened this issue Feb 5, 2025 · 1 comment · May be fixed by #1620
Assignees

Comments

@johngrantuk
Copy link
Member

Query returning a path that fails on query. Needs investigations/confirmation.

 metaMessages: [
    'Contract Call:',
    '  address:   0x300ab2038eac391f26d9f895dc61f8f66a548833\n' +
      '  function:  queryBatchSwap(uint8 kind, (bytes32 poolId, uint256 assetInIndex, uint256 assetOutIndex, uint256 amount, bytes userData)[], address[] assets, (address sender, bool fromInternalBalance, address recipient, bool toInternalBalance))\n' +
      '  args: (0, 
      [{
        "poolId":"0x70d7c473034dbaaa22c03772e804238663a3ce0a0002000000000000000001b5",
        "assetInIndex":"0",
        "assetOutIndex":"1",
        "amount":"500000000000000000",
        "userData":"0x"
      },
      {
        "poolId":"0xc8fe41d2456d578ca9db99af9e4f36db923321d80001000000000000000001a4",
        "assetInIndex":"1",
        "assetOutIndex":"2",
        "amount":"0",
        "userData":
        "0x"
      }], 
      ["0x4200000000000000000000000000000000000006","0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf","0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"], 
      {"sender":"0x0000000000000000000000000000000000000000","recipient":"0x0000000000000000000000000000000000000000",
        "fromInternalBalance":false,
        "toInternalBalance":false
      })'
  ],
  shortMessage: 'The contract function "queryBatchSwap" reverted with the following reason:\n' +
    'GYR#357',
  version: '2.22.19',
@coccoinomane
Copy link

With Exact Out, when I ask for more tokens than available, I get a GYR#357 error > https://d.pr/i/838HMO

This seems to be a code for a MALICIOUS_QUERY_REVERT error > https://d.pr/i/5kFITH

@mkflow27 mkflow27 linked a pull request Feb 14, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants