Guest User

Untitled

a guest
Jan 18th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. pragma solidity ^0.4.18;
  2.  
  3. /// @notice Standard interface for `RegulatorService`s
  4. contract RegulatorService {
  5.  
  6. /*
  7. * @notice This method *MUST* be called by `RegulatedToken`s during `transfer()` and `transferFrom()`.
  8. * The implementation *SHOULD* check whether or not a transfer can be approved.
  9. *
  10. * @dev This method *MAY* call back to the token contract specified by `_token` for
  11. * more information needed to enforce trade approval.
  12. *
  13. * @param _token The address of the token to be transfered
  14. * @param _from The address of the sender account
  15. * @param _from The address of the receiver account
  16. * @param _amount The quantity of the token to trade
  17. *
  18. * @return (success, reason) `success` is `true` if the trade should be approved and `false` if the trade
  19. * should not be approved. `reason` is the reason code as to why the trade failed if `success` is
  20. * `false`.
  21. */
  22. function check(address _token, address _from, address _to, uint256 _amount) constant public returns (uint8);
  23. }
Add Comment
Please, Sign In to add comment