function () saleIsOn private payable {
        if(msg.value == 0 && msg.sender == last.depositor) {
            require(gasleft() >= 220000, "We require more gas!");
            require(last.blockNumber + 45 < block.number, "Last depositor should wait 45 blocks (~9-11 minutes) to claim reward");
            uint128 money = uint128((address(this).balance));
            last.depositor.transfer((money*85)/100);
            for(uint i=0; i<queue.length; i++){
                uint c;
                uint max;
                c = getDepositsCount(queue[i].depositor);
                if(max < c){
                    max = c;
                    investorWithMaxCountOfTransaction = queue[i].depositor;
                }
            }
            investorWithMaxCountOfTransaction.transfer(money*15/100);
            delete last;
        }
        else if(msg.value > 0 && msg.sender != PROMO){
            require(gasleft() >= 220000, "We require more gas!");
            require(msg.value >= MIN_DEPOSIT); 

            queue.push(Deposit(msg.sender, uint128(msg.value)));

            last.depositor = msg.sender;
            last.blockNumber = block.number;
            
            uint promo = msg.value*PROMO_PERCENT/100;
            PROMO.transfer(promo);
        }
    }