Skip to content

[I-03] Add function to Splitter for stray token recovery#46

Merged
alexkeating merged 1 commit into
mainfrom
i-03-splitter-recover
Apr 30, 2026
Merged

[I-03] Add function to Splitter for stray token recovery#46
alexkeating merged 1 commit into
mainfrom
i-03-splitter-recover

Conversation

@mikeghen
Copy link
Copy Markdown
Collaborator

Resolves: #40

Comment thread test/Splitter.t.sol Outdated
}

contract Recover is SplitterTest {
function testFuzz_RecoversTokens_WhenCalledByAdmin(address _to, uint256 _amount) public {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function testFuzz_RecoversTokens_WhenCalledByAdmin(address _to, uint256 _amount) public {
function testFuzz_RecoversTokensWhenCalledByAdmin(address _to, uint256 _amount) public {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the underscore for the rest if possible

Comment thread test/Splitter.t.sol

contract Recover is SplitterTest {
function testFuzz_RecoversTokens_WhenCalledByAdmin(address _to, uint256 _amount) public {
vm.assume(_to != address(0) && _to != address(splitter));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have tests for these assume cases?

@mikeghen mikeghen force-pushed the i-03-splitter-recover branch from aee54d4 to b62feaf Compare April 24, 2026 15:44
@mikeghen mikeghen force-pushed the i-03-splitter-recover branch from b62feaf to 8117cf1 Compare April 24, 2026 15:50
@github-actions
Copy link
Copy Markdown

Coverage after merging i-03-splitter-recover into main will be

100.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   FeeFlow.sol100%100%100%100%
   Splitter.sol100%100%100%100%

@alexkeating alexkeating merged commit 70e2f5a into main Apr 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[I-03] Splitter lacks a recover function for stray tokens

2 participants