Skip to content

API result does not indicate non-existent withdrawal request IDs #269

@asatzger

Description

@asatzger

For withdrawal request IDs above the latest one (see this Dune query; currently at c. 74045), the API response does not indicate that the withdrawal request ID does not exist and instead returns the default result for calling /calculate without a specified amount

(venv) ➜  lido-withdrawals-api-data git:(main) ✗ curl https://wq-api.lido.fi/v2/request-time/calculate
{"requestInfo":{"finalizationIn":415604000,"finalizationAt":"2025-03-15T12:30:22.723Z","type":"exitValidators"},"status":"calculated","nextCalculationAt":"2025-03-10T17:05:00.306Z"}%                                                                                     
(venv) ➜  lido-withdrawals-api-data git:(main) ✗ curl https://wq-api.lido.fi/v2/request-time\?ids\=7400000
[{"requestInfo":{"finalizationIn":415598000,"finalizationAt":"2025-03-15T12:30:22.734Z","type":"exitValidators","requestId":"7400000"},"status":"calculating","nextCalculationAt":"2025-03-10T17:05:00.306Z"}]%                                                            ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions