/** * Checks if a transfer is compliant for the given amount of tokens, between the accounts. * @param initiator The address initiating the transfer. * @param from The from account. * @param to The to account. */ function checkRules(address initiator, address from, address to, uint8 fromKind, uint8 toKind, uint256 tokens) private { // Ensure the transfer is compliant with each rule matching the from account's kind. ComplianceRule[] storage rules = complianceRules[fromKind]; for (uint8 i = 0; i < rules.length; i++) { rules[i].check(initiator, from, to, toKind, tokens, store); } }
0.4.18