Skip to content

Commit

Permalink
Merge origin/master into add-leap-wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Sep 28, 2022
2 parents e58988a + 66fa909 commit 9325413
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/autostake/NetworkRunner.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class NetworkRunner {
}

getBalance() {
let timeout = this.opts.queryTimeout
let timeout = this.opts.delegationsTimeout
return this.queryClient.getBalance(this.operator.botAddress, this.network.denom, { timeout })
.then(
(balance) => {
Expand All @@ -117,14 +117,14 @@ export default class NetworkRunner {

async getGrantedAddresses(addresses) {
const { botAddress, address } = this.operator
let timeout = this.opts.queryTimeout
let timeout = this.opts.delegationsTimeout
let pageSize = this.opts.batchPageSize
let allGrants
try {
allGrants = await this.queryClient.getGranteeGrants(botAddress, { timeout, pageSize }, (pages) => {
timeStamp("...batch", pages.length)
return this.throttleQuery()
})
timeStamp("...batch", pages.length)
return this.throttleQuery()
})
} catch (e) { }
let grantCalls = addresses.map(item => {
return async () => {
Expand Down

0 comments on commit 9325413

Please sign in to comment.