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

NexusMutual / smart-contracts / 9c7d0954-c16a-4c90-84b3-98c24641a8c9

pending completion
9c7d0954-c16a-4c90-84b3-98c24641a8c9

Pull #642

circleci

GitHub
Merge pull request #675 from NexusMutual/chore/fork-cleanup
Pull Request #642: Feature: Migrate PooledStaking

90 of 1160 branches covered (7.76%)

Branch coverage included in aggregate %.

419 of 2687 relevant lines covered (15.59%)

0.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/contracts/libraries/UncheckedMath.sol
1
// SPDX-License-Identifier: GPL-3.0-only
2

3
pragma solidity ^0.8.16;
4

5
/**
6
 * @dev Simple library that defines basic math functions that allow overflow
7
 */
8
library UncheckedMath {
9

10
  function uncheckedAdd(uint a, uint b) internal pure returns (uint) {
11
    unchecked { return a + b; }
×
12
  }
13

14
  function uncheckedSub(uint a, uint b) internal pure returns (uint) {
15
    unchecked { return a - b; }
×
16
  }
17

18
  function uncheckedMul(uint a, uint b) internal pure returns (uint) {
19
    unchecked { return a * b; }
×
20
  }
21

22
  function uncheckedDiv(uint a, uint b) internal pure returns (uint) {
23
    unchecked { return a / b; }
×
24
  }
25

26
}
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