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

gnosis / dex-contracts / 5634
100%

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

pending completion
5634

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

Jobs
ID Job ID Ran Files Coverage
1 5634.1 (NODE_OPTIONS=--max_old_space_size=4096) 20 Nov 2020 04:57PM UTC 0
100.0
Travis Job 5634.1
Source Files on build 5634
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #5634
  • 793d8767 on github
  • Prev Build on master (#5605)
  • Next Build on master (#5635)
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