You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
430 B
12 lines
430 B
LimitBalance
|
|
=============================================
|
|
|
|
Base contract that provides mechanism for limiting the amount of funds a contract can hold.
|
|
|
|
LimitBalance(unit _limit)
|
|
""""""""""""""""""""""""""""
|
|
Constructor takes an unisgned integer and sets it as the limit of funds this contract can hold.
|
|
|
|
modifier limitedPayable()
|
|
""""""""""""""""""""""""""""
|
|
Throws an error if this contract's balance is already above the limit. |