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

synapsecns / synapse-contracts / 5090308068
13%

Build:
DEFAULT BRANCH: master
Ran 26 May 2023 11:36AM UTC
Jobs 1
Files 121
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

Canceled at 18 Jul 2024 08:25PM UTC via web
5090308068

push

github

web-flow
Router [global bridge zap] (#193)

* lint

* add interfaces

* Add SwapQuoter

* New BridgeZap

* setup BridgeZap tests

* Tests: no swap bridging

* Tests: Swap & Bridge

* Tests: Bridge & Swap

* Tests: Swap & Bridge & Swap

* move adapter logic from Zap contract

* Support for add/remove liquidity requests

* Tests: zapAndDeposit

* Simplify Zap branching

* Remove Zap's special logic for nUSD

* Make BridgeZap upgradeable

* Add docs

* Remove cycle where it is not needed

* Optimize add liquidity

* Explicit naming in BridgeZap

* Check that depositAndSwap was requested

* Fix: custom allowance for wrapper tokens

* Tests: new zap + GMX on Avalanche

* Tests: new zap + Harmony JewelBridgeSwap

* Expose SwapQuoter methods in BridgeZap

* Tests: emulate bridge fees for bridge+swap

* Tests: unsupported tokens

* Separate calculation logic from SwapQuoter

* Return the exact quote for addLiquidity

* Expose generic calcAddLiquidity

* Expose other pool quote methods in BridgeZap

* Tests: unsupported swaps (origin/dest chain)

* Make sure user has no WETH before ETH tests

* Expose more views on BridgeZap

* Tests: BridgeZap views

* Refactor test to illustrate BridgeZap workflow

* Rename BridgeZap -> SynapseRouter

* Rename addBurnTokens -> addRedeemTokens

* Make SynapseRouter immutable

* Chore: SynapseAdapter comments

* Add missing revert tests for SwapQuoter

* Feat: Router swap (#197)

* Move SwapQuoter related stuff to SynapseAdapter

* Rename adapter swap method to prevent confusion

* Rework token pulling

* Add SynapseRouter.swap()

* Tests: SynapseRouter swaps

* Add tests with ignored "unwrapETH" param

* Add tests with incorrect swap params

* Add tests around swap reverts

* Feat: local bridge config (#199)

* Introduce LocalBridgeConfig

* Adjust tests

* Add bridge quote views for Router

* Test setup: E2E tests

* E2E tests ... (continued)

207 of 1320 branches covered (15.68%)

Branch coverage included in aggregate %.

416 of 416 new or added lines in 10 files covered. (100.0%)

664 of 2943 relevant lines covered (22.56%)

23.29 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
0.0
contracts/bridge/libraries/BridgeStructs.sol
4
0.0
contracts/bridge/utils/MulticallView.sol
18
0.0
contracts/bridge/libraries/UniversalToken.sol
23
0.0
contracts/bridge/wrappers/JewelBridgeSwap.sol
46
0.0
contracts/bridge/router/SynapseAdapter.sol
49
0.0
contracts/bridge/router/LocalBridgeConfig.sol
49
0.0
contracts/bridge/utils/BridgeConfigV3Lens.sol
69
0.0
contracts/bridge/router/SwapQuoter.sol
73
0.0
contracts/bridge/router/SynapseRouter.sol
81
0.0
contracts/bridge/router/SwapCalculator.sol
Jobs
ID Job ID Ran Files Coverage
1 5090308068.1 26 May 2023 11:36AM UTC 121
20.43
GitHub Action Run
Source Files on build 5090308068
  • Tree
  • List 121
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 75aa6234 on github
  • Prev Build on master (#5084913714)
  • Next Build on master (#5090331270)
  • Delete
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

© 2025 Coveralls, Inc