Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
arman37 committed Jan 10, 2022
1 parent a497038 commit cfa78e7
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions sdk/api.js
Expand Up @@ -281,47 +281,6 @@ module.exports = {
chunk: { param: 'targets', length: 1000, combine: 'balances' },
}),
},
util: {
getLogs: (options) => util('getLogs', { ...options }),
supportedTokens: () => util('supportedTokens'),
tokenList: () => util('tokenList'),
kyberTokens: () => util('kyberTokens'),
getEthCallCount: () => util('getEthCallCount'),
resetEthCallCount: () => util('resetEthCallCount'),
toSymbols: (data, chain = null) => util('toSymbols', { data, chain }),
unwrap: (options) => util('unwrap', { ...options }),
lookupBlock: _lookupBlock,
/**
*
* @param {Number} block
* @param {Number} timestamp
* @param {Object} project
* @param {Object} tokenBalanceMap
* @returns {Promise<*>}
*/
testAdapter: ((block, timestamp, project, tokenBalanceMap) => {
return _testAdapter(block, timestamp, project, tokenBalanceMap);
}),
/**
*
* @param {Number} timestamp
* @param {String} depositor
* @returns {Promise<*>}
*/
testStakingAdapter: ((timestamp, depositor) => {
return _testStakingAdapter(timestamp, depositor);
}),
/**
*
*/
isCallable: _isCallable,
/**
*
* @param {String} str
* @returns {boolean}
*/
isString: (str) => typeof str === 'string',
},
aave: {
getAssetsLocked: (options) => aave('getAssetsLocked', {
...options,
Expand All @@ -338,7 +297,7 @@ module.exports = {
resetEthCallCount: () => util('resetEthCallCount'),
toSymbols: (data, chain = null) => util('toSymbols', { data, chain }),
unwrap: (options) => util('unwrap', { ...options }),
lookupBlock: (timestamp) => util('lookupBlock', { timestamp }),
lookupBlock: _lookupBlock,

This comment has been minimized.

Copy link
@ruffrey

ruffrey Jan 12, 2022

Contributor

This causes the lookupBlock function to be hardcoded to use the staging indexer. I don't think we want that here, right?

/**
*
* @param {Number} block
Expand Down

0 comments on commit cfa78e7

Please sign in to comment.