// Ensures that the _qty is non-zero and the user has enough balance modifier validAmountCheck(mapping(address => uint256) storage _balance, uint256 _qty) { require(_qty > 0, "Amount cannot be zero!"); require(_qty <= _balance[msg.sender], "Insufficient amount"); _; } // Restricts withdraw, swap feature till liquidity is added to the pool modifier activePool() { require(totalShares > 0, "Zero Liquidity"); _; }
0.4.18