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

gnosis / dex-services / 4475
31%

Build:
DEFAULT BRANCH: master
Ran 31 Jul 2020 12:32PM UTC
Jobs 1
Files 88
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

31 Jul 2020 12:14PM UTC coverage: 28.257% (+0.01%) from 28.244%
4475

push

travis-pro

web-flow
Implement token price estimation in pricegraph (#1183)

This PR implements token price estimation in `pricegraph`. Additionally this PR modifies the `historic_prices` E2E script to use this method instead of the bid ask spread. This significantly modifies what the E2E script was testing, so a new E2E script has been introduced in #1218 to produce a more valuable metric to the one that previously existed.

Regarding the imprecision, the average error of the price estimate is 28000x :warning: (mostly because of some large outliers and non-liquid tokens). In recent batches for a token like WETH this is down to around 4% since the orderbook is more dense and therefore the estimates are much more accurate. Note that the previous promising analysis on price accuracy was using a different mechanism to estimate **exchange rates** between tokens and not token prices (in OWL reference token). 

### Test Plan

New unit tests in `pricegraph`, e2e historic prices now uses the new estimation API:
```
cargo run --release -p e2e --bin historic_prices -- --orderbook-file target/orderbook-file-mainnet
   Compiling e2e v1.0.0 (/var/home/nlordell/Developer/dex-services/e2e)
    Finished release [optimized] target(s) in 2.82s
     Running `target/release/historic_prices --orderbook-file target/orderbook-file-mainnet`
54285 / 54285 [===============================================] 100.00 % 222.25/s
Processed 13200 token prices: bad estimates 46.73%, average error 28770.95%.
```

11411 of 46079 branches covered (24.76%)

Branch coverage included in aggregate %.

2990 of 4886 relevant lines covered (61.2%)

12471.9 hits per line

Jobs
ID Job ID Ran Files Coverage
3 4475.3 (OPEN_SOLVER_VERSION=v0.0.11 PRIVATE_SOLVER_VERSION=v0.8.2) 31 Jul 2020 12:32PM UTC 0
28.26
Travis Job 4475.3
Source Files on build 4475
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4475
  • 0e233838 on github
  • Prev Build on master (#4471)
  • Next Build on master (#4477)
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