Skip to content

Commit

Permalink
Require sender not in blacklist when withdraw
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqiushi committed Dec 17, 2024
1 parent 2208853 commit 046d840
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/dividend.sol
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,10 @@ contract DividendContract is Initializable, UUPSUpgradeable, ReentrancyGuardUpgr
function withdrawDividends(uint256[] calldata cycleIndexs, address[] calldata tokens) external nonReentrant {
require(cycleIndexs.length > 0, "No cycle index");
require(tokens.length > 0, "No token");

// blacklisted address cannot estimate
require(!isBlackListed(msg.sender), "Blacklisted address");

// require(UserStakeRecords[msg.sender].length > 0, "No stake record");

// Display the params
Expand Down

0 comments on commit 046d840

Please sign in to comment.