We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a31c9b7 commit cbd06f9Copy full SHA for cbd06f9
src/mappings/helpers/helpers.ts
@@ -1175,7 +1175,8 @@ export function calculateCapacitiesHorizon(indexer: Indexer): Indexer {
1175
.minus(indexer.thawingTokens)
1176
.plus(indexer.delegatedCapacity)
1177
indexer.availableStake = indexer.tokenCapacity
1178
- .minus(indexer.allocatedTokens)
+ .minus(indexer.allocatedTokens) // this includes both legacy and horizon allos
1179
+ .plus(indexer.legacyAllocatedTokens) // so we add the legacy tokens back
1180
return indexer
1181
}
1182
0 commit comments