Skip to content

Conversation

@tnkshuuhei
Copy link
Member

No description provided.

@github-actions
Copy link

github-actions bot commented Apr 28, 2025

Slither report

THIS CHECKLIST IS NOT COMPLETE. Use --show-ignored-findings to show all the results.
Summary

shadowing-local

Impact: Low
Confidence: High

function mintClaim(address account, uint256 units, string memory uri, TransferRestrictions restrictions) external;

calls-loop

Impact: Low
Confidence: Medium

function _batchTransfer(address[] memory recipients, uint256[] memory fractionIds) internal {
uint256 length = recipients.length;
for (uint256 i = 0; i < length; i++) {
address recipient = recipients[i];
uint256 fractionId = fractionIds[i];
require(hypercertToken.ownerOf(fractionId) == msg.sender, INVALID_CALLER(msg.sender));
hypercertToken.safeTransferFrom(msg.sender, recipient, fractionId, 1, "");
}
emit BatchFractionTransfer(msg.sender, recipients, fractionIds);
}

function _batchTransfer(address[] memory recipients, uint256[] memory fractionIds) internal {
uint256 length = recipients.length;
for (uint256 i = 0; i < length; i++) {
address recipient = recipients[i];
uint256 fractionId = fractionIds[i];
require(hypercertToken.ownerOf(fractionId) == msg.sender, INVALID_CALLER(msg.sender));
hypercertToken.safeTransferFrom(msg.sender, recipient, fractionId, 1, "");
}
emit BatchFractionTransfer(msg.sender, recipients, fractionIds);
}

reentrancy-events

Impact: Low
Confidence: Medium

function _batchTransfer(address[] memory recipients, uint256[] memory fractionIds) internal {
uint256 length = recipients.length;
for (uint256 i = 0; i < length; i++) {
address recipient = recipients[i];
uint256 fractionId = fractionIds[i];
require(hypercertToken.ownerOf(fractionId) == msg.sender, INVALID_CALLER(msg.sender));
hypercertToken.safeTransferFrom(msg.sender, recipient, fractionId, 1, "");
}
emit BatchFractionTransfer(msg.sender, recipients, fractionIds);
}

@github-actions
Copy link

Coverage after merging refactor/batchtransfer into main will be

100.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   BatchTransferFraction.sol100%100%100%100%

@tnkshuuhei tnkshuuhei self-assigned this Apr 28, 2025
@tnkshuuhei tnkshuuhei merged commit 7f566d8 into main Apr 28, 2025
1 check passed
@tnkshuuhei tnkshuuhei deleted the refactor/batchtransfer branch April 28, 2025 15:43
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.

2 participants