Skip to content

Commit

Permalink
Public functions unused locally changed to external
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Sep 11, 2020
1 parent d3d11ca commit e562ea0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions contracts/prize-pool/PrizePool.sol
Expand Up @@ -416,14 +416,14 @@ abstract contract PrizePool is YieldSource, OwnableUpgradeSafe, RelayRecipient,

/// @notice Gets the current prize.
/// @return The total amount of assets to be awarded for the current prize
function awardBalance() public view returns (uint256) {
function awardBalance() external view returns (uint256) {
return _currentAwardBalance;
}

/// @notice Updates and returns the current prize.
/// @dev Updates the internal current award balance and captures reserve fees
/// @return The total amount of assets to be awarded for the current prize
function captureAwardBalance() public returns (uint256) {
function captureAwardBalance() external nonReentrant returns (uint256) {
uint256 tokenTotalSupply = _tokenTotalSupply();
uint256 currentBalance = _balance();
uint256 totalInterest = (currentBalance > tokenTotalSupply) ? currentBalance.sub(tokenTotalSupply) : 0;
Expand Down Expand Up @@ -897,7 +897,7 @@ abstract contract PrizePool is YieldSource, OwnableUpgradeSafe, RelayRecipient,

/// @notice Check if the Prize Pool has an active Prize Strategy
/// @dev When the prize strategy is detached deposits are disabled, and only withdrawals are permitted
function isShutdown() public view returns (bool) {
function isShutdown() external view returns (bool) {
return address(comptroller) != address(0);
}

Expand Down
Expand Up @@ -157,7 +157,7 @@ contract SingleRandomWinner is SingleRandomWinnerStorage,

/// @notice Returns the number of seconds remaining until the prize can be awarded.
/// @return The number of seconds remaining until the prize can be awarded.
function prizePeriodRemainingSeconds() public view returns (uint256) {
function prizePeriodRemainingSeconds() external view returns (uint256) {
return _prizePeriodRemainingSeconds();
}

Expand Down Expand Up @@ -356,13 +356,13 @@ contract SingleRandomWinner is SingleRandomWinnerStorage,

/// @notice Returns the block number that the current RNG request has been locked to
/// @return The block number that the RNG request is locked to
function getLastRngLockBlock() public view returns (uint32) {
function getLastRngLockBlock() external view returns (uint32) {
return rngRequest.lockBlock;
}

/// @notice Returns the current RNG Request ID
/// @return The current Request ID
function getLastRngRequestId() public view returns (uint32) {
function getLastRngRequestId() external view returns (uint32) {
return rngRequest.id;
}

Expand Down

0 comments on commit e562ea0

Please sign in to comment.