```\nfunction getSavedOrSpotOraclePrice(address asset) internal view returns (uint256) {\n    if (LibOrders.getOffsetTime() - getTime(asset) < 15 minutes) {\n        return getPrice(asset);\n    } else {\n        return getOraclePrice(asset);\n    }\n}\n```\n