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

RigoBlock / v3-contracts / 13261352678

11 Feb 2025 10:59AM UTC coverage: 84.94% (+2.6%) from 82.368%
13261352678

Pull #622

github

web-flow
Merge f22d260e3 into 08bd3b51b
Pull Request #622: feat: automated nav

761 of 962 branches covered (79.11%)

Branch coverage included in aggregate %.

523 of 711 new or added lines in 28 files covered. (73.56%)

18 existing lines in 5 files now uncovered.

1698 of 1933 relevant lines covered (87.84%)

44.05 hits per line

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

87.5
/contracts/test/TestReentrancyAttack.sol
1
// SPDX-License-Identifier: Apache 2.0
2
pragma solidity >=0.8.0 <0.9.0;
3

4
import "../protocol/IRigoblockV3Pool.sol";
5

6
contract TestReentrancyAttack {
7
    address private immutable RIGOBLOCK_POOL;
8
    uint256 public count = 0;
9
    uint256 private maxLoopCount = 2;
10

11
    constructor(address rigoblockPool) {
12
        RIGOBLOCK_POOL = rigoblockPool;
3✔
13
    }
14

15
    function setMaxCount(uint256 maxCount) external {
16
        maxLoopCount = maxCount;
1✔
17
    }
18

19
    function mintPool() public {
20
        count += 1;
4✔
21
        if (count <= maxLoopCount) {
4✔
22
            try IRigoblockV3Pool(payable(RIGOBLOCK_POOL)).mint(address(this), 1e19, 1) {} catch Error(
3✔
23
                string memory reason
24
            ) {
UNCOV
25
                revert(reason);
×
26
            }
27
        }
28
    }
29
}
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