Skip to content

Commit

Permalink
fix(ddos): remove blocking transfer
Browse files Browse the repository at this point in the history
this transfer could block execution of batch requests
  • Loading branch information
clesaege authored Feb 25, 2019
1 parent 61f5389 commit 93e0df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/standard/permission/ArbitrableTokenList.sol
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ contract ArbitrableTokenList is PermissionInterface, Arbitrable {
}

emit RewardWithdrawal(_tokenID, _beneficiary, _request, _round, reward);
_beneficiary.transfer(reward);
_beneficiary.send(reward); // Its user responsability to accept ETH.
}

/** @dev Withdraws rewards and reimbursements of multiple rounds at once. This function is O(n) where n is the number of rounds. This could exceed gas limits, therefore this function should be used only as a utility and not be relied upon by other contracts.
Expand Down

0 comments on commit 93e0df2

Please sign in to comment.