function setRate(uint256 _whitelistedRate, uint256 _publicRate) public onlyOwnerOrOracle {
        require(_whitelistedRate > 0);
        require(_publicRate > 0);

        whitelistedRate = _whitelistedRate;
        publicRate = _publicRate;

        emit RateUpdated(_whitelistedRate, _publicRate);
    }