function getCurrentICOPhaseBonus() public view returns (uint _bonus, uint icoPhaseId) {
        require(icoPhaseCounter > 0);
        uint currentTimestamp = block.timestamp; 

        for (uint i = 0; i < icoPhaseCounter; i++) {
            
            ICOPhase storage ico = phases[i];

            if (currentTimestamp >= ico.fromTimestamp && currentTimestamp <= ico.toTimestamp) {
                return (ico.bonus, i);
            }
        }

    }