Skip to content

Commit

Permalink
Merge 37b5d62 into 293e224
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Oct 14, 2021
2 parents 293e224 + 37b5d62 commit 3e9d5af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/prize-strategy/PrizeSplit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ abstract contract PrizeSplit is IPrizeSplit, Ownable {
* @notice Distributes prize split(s).
* @dev Distributes prize split(s) by awarding ticket or sponsorship tokens.
* @param _prize Starting prize award amount
* @return Total prize award distribution amount exlcuding the awarded prize split(s)
* @return The remainder after splits are taken
*/
function _distributePrizeSplits(uint256 _prize) internal returns (uint256) {
// Store temporary total prize amount for multiple calculations using initial prize amount.
Expand All @@ -160,7 +160,7 @@ abstract contract PrizeSplit is IPrizeSplit, Ownable {
_prizeTemp = _prizeTemp - _splitAmount;
}

return _prize;
return _prizeTemp;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/prize-strategy/PrizeSplitStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import "../interfaces/IPrizePool.sol";
interest transfered to the PrizeReserve. Additional PrizeSplits can be added, depending on
the deployers requirements (i.e. percentage to charity). In contrast to previous PoolTogether
iterations, interest can be captured independent of a new Draw. Ideally (to save gas) interest
is only captured when also distributing the captured prize(s) to applicable ClaimbableDraw(s).
is only captured when also distributing the captured prize(s) to applicable Prize Distributor(s).
*/
contract PrizeSplitStrategy is PrizeSplit, IStrategy {
/**
Expand Down

0 comments on commit 3e9d5af

Please sign in to comment.