• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gnosis / dex-services / 5395
31%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2020 06:09PM UTC
Jobs 1
Files 107
Run time 29s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Nov 2020 05:57PM UTC coverage: 28.887% (+0.2%) from 28.698%
5395

push

travis-pro

web-flow
Use query hops param for price estimation (#1501)

This PR implements part of #1369 namely the integration of the hops Query parameter into the price estimation API (I couldn't reuse the other PR because the merge conflicts were too severe). It reuses the idea of creating a TokenPairRange type that can be passed along when both the pair and hops are important.

Unlike the other PR it continues to use the unbound price estimator in the services (instead of setting it to 30 hops). This is mainly for performance considerations and with the assumption that our orderbook in practice wouldn't use more than 30 hops anyways (we might eventually want to pick a realistic small number but this is beyond the scope of this PR).

This PR also leaves the test cases mostly untouched (using unbounded estimation wherever possible) as the actually bounding logic is covered by unit tests inside the bellman ford module.

I also stripped off the benchmarking code as this seems suitable for another PR.

### Test Plan
Unit tests + loading a local web and making sure we can see the impact of changing the hops parameter in the orderbook view.

14111 of 55985 branches covered (25.2%)

Branch coverage included in aggregate %.

3751 of 5848 relevant lines covered (64.14%)

40487.66 hits per line

Jobs
ID Job ID Ran Files Coverage
3 5395.3 (OPEN_SOLVER_VERSION=v0.1.1 PRIVATE_SOLVER_VERSION=v0.8.5) 02 Nov 2020 06:09PM UTC 0
28.89
Travis Job 5395.3
Source Files on build 5395
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5395
  • 15d61cbe on github
  • Prev Build on master (#5390)
  • Next Build on master (#5398)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc