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

[Bug]: None quote for CERES-XOR-DAI route with some amounts #1248

Open
ra9mls opened this issue Oct 22, 2024 · 0 comments
Open

[Bug]: None quote for CERES-XOR-DAI route with some amounts #1248

ra9mls opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ra9mls
Copy link

ra9mls commented Oct 22, 2024

Preconditions

XOR total supply: 1,000,002,028,048,760,456,746,216,764,000,000,000
CERES total supply: 2 ECERES
DAI supply: 1.0000 EDAI
Order books params:

{
  orderBookId: {
    dexId: 0
    base: {
      code: 0x0200060000000000000000000000000000000000000000000000000000000000
    }
    quote: {
      code: 0x0200000000000000000000000000000000000000000000000000000000000000
    }
  }
  status: Trade
  lastOrderId: 10
  tickSize: {
    inner: 10,000,000,000,000,000,000
    isDivisible: true
  }
  stepLotSize: {
    inner: 1,000,000,000,000,000,000
    isDivisible: true
  }
  minLotSize: {
    inner: 1,000,000,000,000,000,000
    isDivisible: true
  }
  maxLotSize: {
    inner: 1,000,000,000,000,000,000,000
    isDivisible: true
  }
  techStatus: Ready
}

Order books, limit orders:

[
  [
    [
      {
        dexId: 0
        base: {
          code: 0x0200060000000000000000000000000000000000000000000000000000000000
        }
        quote: {
          code: 0x0200000000000000000000000000000000000000000000000000000000000000
        }
      }
      9
    ]
    {
      id: 9
      owner: cnTcozghXT3ZqyGx2gMapzVb3695y3mQkLTcqVbucSyuBKPHH
      side: Sell
      price: {
        inner: 30,000,000,000,000,000,000,000
        isDivisible: true
      }
      originalAmount: {
        inner: 3,000,000,000,000,000,000,000
        isDivisible: true
      }
      amount: {
        inner: 3,000,000,000,000,000,000,000
        isDivisible: true
      }
      time: 1,731,588,192,002
      lifespan: 2,592,000,000
      expiresAt: 776,033
    }
  ]
  [
    [
      {
        dexId: 0
        base: {
          code: 0x0200060000000000000000000000000000000000000000000000000000000000
        }
        quote: {
          code: 0x0200000000000000000000000000000000000000000000000000000000000000
        }
      }
      10
    ]
    {
      id: 10
      owner: cnTcozghXT3ZqyGx2gMapzVb3695y3mQkLTcqVbucSyuBKPHH
      side: Sell
      price: {
        inner: 30,000,000,000,000,000,000,000
        isDivisible: true
      }
      originalAmount: {
        inner: 3,000,000,000,000,000,000,000
        isDivisible: true
      }
      amount: {
        inner: 3,000,000,000,000,000,000,000
        isDivisible: true
      }
      time: 1,731,588,198,001
      lifespan: 2,592,000,000
      expiresAt: 776,034
    }
  ]
]

xyk XOR-DAI reserves:

[
  990,375,400,920,260,004,352,410,099
  18,702,000,740,880,000,000,000
]

xyk XOR-CERES reserves:

[
  80,000,000,000,000,000,000,000,000
  80,000,000,000,000,000,000,000,000
]

Steps to reproduce

Get quote 100 000 000 CERES-DAI with desired input!

Actual behavior

liquidityProxy.quote: Option
'none'

Expected behaviour

quote is valid

Environment

{"label"=>"PROD"}

@ra9mls ra9mls added the bug Something isn't working label Oct 22, 2024
@ra9mls ra9mls changed the title [Bug]: Investigation. Swap executes with ordrer book with Forbid filter for ASSET-XOR-DAI route [Bug]: Investigation. None quote for ASSET-XOR-DAI route with some anounts Nov 14, 2024
@ra9mls ra9mls changed the title [Bug]: Investigation. None quote for ASSET-XOR-DAI route with some anounts [Bug]: Investigation. None quote for CERES-XOR-DAI route with some anounts Nov 14, 2024
@ra9mls ra9mls changed the title [Bug]: Investigation. None quote for CERES-XOR-DAI route with some anounts [Bug]: None quote for CERES-XOR-DAI route with some anounts Nov 15, 2024
@ra9mls ra9mls changed the title [Bug]: None quote for CERES-XOR-DAI route with some anounts [Bug]: None quote for CERES-XOR-DAI route with some amounts Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants