Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 430 Bytes

limitbalance.rst

File metadata and controls

12 lines (9 loc) · 430 Bytes

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.