LimitBalance.sol 236 B

123456789101112131415161718
  1. pragma solidity ^0.4.4;
  2. contract LimitBalance {
  3. uint public limit;
  4. function LimitBalance(uint _limit) {
  5. limit = _limit;
  6. }
  7. modifier limitedPayable() {
  8. if (this.balance > limit) {
  9. throw;
  10. }
  11. _;
  12. }
  13. }