removed the entire loop for market/exchange completion objects

This commit is contained in:
Alexandru Stefan committed 2021-11-24 18:03:23 +02:00
1 parent 88c3958419
commit e31699a3a4
1 file changed
+4 -4
@@ -332,7 +332,7 @@ function newFoundationsCodeEditorEditorPage() {
})
// Enrich chart data with market and exchange structure
UI.projects.foundations.spaces.designSpace.workspace.workspaceNode.rootNodes.forEach(node => {
/* UI.projects.foundations.spaces.designSpace.workspace.workspaceNode.rootNodes.forEach(node => {
if (node.type === 'Crypto Ecosystem') {
node.cryptoExchanges.forEach(cxs => {
cxs.exchanges.forEach(exchange => {
@@ -342,10 +342,10 @@ function newFoundationsCodeEditorEditorPage() {
let baseAsset = marketPair.split('/')[0]
let quotedAsset = marketPair.split('/')[1]
stringObjects.forEach(chartObj => {
/**
/!**
* We will provide auto-complete only for assets pair found in Markets
* Doing so we will avoid providing completion for assets that are not used in a market
*/
*!/
//TODO: Disabled on purpose, causes high memory consumption when multiple exchanges are loaded
let market = marketPrefix + baseAsset + dot + quotedAsset + dot + chartObj
@@ -356,7 +356,7 @@ function newFoundationsCodeEditorEditorPage() {
})
})
}
})
})*/
//Actually building the objects for chart, market and exchange, no need for multiple objects, as one is enough for the autocomplete to work
stringObjects.forEach(stringRepresentation => {