Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batch payments contract #881

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

batch payments contract #881

wants to merge 6 commits into from

Conversation

alexcos20
Copy link
Member

Fixes # .

Changes proposed in this PR:

@alexcos20 alexcos20 self-assigned this Sep 16, 2024
contracts/rewards/BatchPayments.sol Dismissed Show dismissed Hide dismissed
contracts/rewards/BatchPayments.sol Dismissed Show dismissed Hide dismissed
contracts/rewards/BatchPayments.sol Dismissed Show dismissed Hide dismissed
Copy link

openzeppelin-code bot commented Sep 16, 2024

batch payments contract

Generated at commit: 9a3bf5a0a045b7a24f9ce0367a0f248cb3b1ff91

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
1
0
9
40
52
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@alexcos20 alexcos20 marked this pull request as ready for review September 16, 2024 05:17
contracts/rewards/BatchPayments.sol Dismissed Show dismissed Hide dismissed
Comment on lines +16 to +26
function sendEther(address[] memory list, uint256[] memory amounts) external payable {
require(list.length == amounts.length,"Arrays must have same length");
for (uint256 i = 0; i < list.length; i++)
payable(list[i]).transfer(amounts[i]);
uint256 balance = address(this).balance;
// make sure that we return any excess to the caller
// Later TODO: Check for gas
if (balance > 23000)
payable(msg.sender).call{value: balance}("");
//payable(msg.sender).transfer(balance);
}

Check warning

Code scanning / Slither

Low-level calls Warning

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.

1 participant