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

gnosis / dex-contracts / 5634 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 20 Nov 2020 04:57PM UTC
Files 8
Run time 2s
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

20 Nov 2020 04:43PM UTC coverage: 100.0%. Remained the same
NODE_OPTIONS=--max_old_space_size=4096

push

travis-ci-com

web-flow
Gas token solution submission (#1045)

This PR adds a wrapper contract around solution submissions that allows burning an appropriate amount of [gas tokens](https://1inch-exchange.medium.com/1inch-introduces-chi-gastoken-d0bd5bb0f92b) to offset the cost of settling an auction.

It's using the same signature for settlement as batch exchange but wraps the call into a modifier taken from the block article above (slightly adjusted to not use `freeFrom` as this is more expensive than if the wrapping contract actually had gas token balance).

It allows setting a threshold below which gas tokens would not be used (as it might not be worth burning tokens in times of loww gas prices)

In order to allow future withdrawl of fee rewards, it also exposes an "execute" method that can make arbitrary calls by the owner (by default the account deploying the contract). Submit solution itself is called permissionlessly by any account.

### Test Plan

Unit tests, once reviewed I will deploy on mainnet and run some "simulations" on how previous solution submissions would have performed before making the solver point at this contract instead of the real exchange.

100 of 100 branches covered (100.0%)

Branch coverage included in aggregate %.

277 of 277 relevant lines covered (100.0%)

82.51 hits per line

Source Files on job 5634.1 (NODE_OPTIONS=--max_old_space_size=4096)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 3978
  • Travis Job 5634.1
  • 793d8767 on github
  • Prev Job for NODE_OPTIONS=--max_old_space_size=4096 on master (#5605.1)
  • Next Job for NODE_OPTIONS=--max_old_space_size=4096 on master (#5635.1)
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