This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async updatecache(lastBlock: number, reserves: Reserve[]) { | |
let aaveOrigin = lastBlock; | |
const current = await this.provider.getBlockNumber(); | |
// 3000 block range for RPC limits | |
const iterations = Math.floor((current - aaveOrigin) / 3000); | |
const promises = []; |