Skip to content

Commit

Permalink
update tokenEnd variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
kamescg committed Jul 12, 2021
1 parent a6a7e39 commit f6dd924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/prize-pool/PrizePool.sol
Expand Up @@ -1058,8 +1058,8 @@ abstract contract PrizePool is PrizePoolInterface, OwnableUpgradeable, Reentranc
function _tokenTotalSupply() internal view returns (uint256) {
uint256 total = timelockTotalSupply.add(reserveTotalSupply);
address currentToken = _tokens.start();
address _tokenEnd = _tokens.end();
while (currentToken != _tokenEnd) {
address tokenEnd = _tokens.end();
while (currentToken != tokenEnd) {
total = total.add(IERC20Upgradeable(currentToken).totalSupply());
currentToken = _tokens.next(currentToken);
}
Expand Down

0 comments on commit f6dd924

Please sign in to comment.