LimitBalance
contract LimitBalance
Simple contract to limit the balance of child contract. Note this doesn't prevent other contracts to send funds by using selfdestruct(address); See: https://github.com/ConsenSys/smart-contract-best-practices#remember-that-ether-can-be-forcibly-sent-to-an-account.
Source: LimitBalance.sol
Reference
Modifiers
limitedPayable
modifier limitedPayable()
Checks if limit was reached. Case true, it throws.
Functions
fallback
function (uint256 _limit) public
Constructor that sets the passed value as a limit.
- Parameters:
_limit
- uint256 to represent the limit.