//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f.
pragma solidity ^0.4.18;
address[] private refundAddresses;
mapping (address => uint) public refunds;
// bad
function refundAll() public {
for(uint x; x < refundAddresses.length; x++) { // Vòng lặp chuyển tiền cho từng nhà đầu tư
require(refundAddresses[x].send(refunds[refundAddresses[x]])) // Vấn đề là nếu việc chuyển tiền cho một nhà đầu tư cụ thể, hệ thống sẽ dừng lại.
}
}