Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to donate to the prizes #92

Merged

Conversation

asselstine
Copy link
Contributor

No description provided.

Copy link

linear bot commented Feb 14, 2024

Copy link

LCOV of commit 8a7552a during Tests with 100% Coverage #427

Summary coverage rate:
  lines......: 100.0% (404 of 404 lines)
  functions..: 100.0% (65 of 65 functions)
  branches...: no data found

Files changed coverage rate:
                                             |Lines       |Functions  |Branches    
  Filename                                   |Rate     Num|Rate    Num|Rate     Num
  =================================================================================
  src/PrizePool.sol                          | 100%    178| 100%    36|    -      0

@@ -230,6 +230,8 @@ contract PrizePool is TieredLiquidityDistributor, Ownable {
/// @notice Records the last shutdown withdrawal for an account
mapping(address vault => mapping(address user => uint24 drawId)) internal _lastShutdownWithdrawal;

address public constant DONATOR = 0x000000000000000000000000000000000000F2EE;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing natspec

Also would be nice to know why this address was chosen.

@@ -355,6 +357,11 @@ contract PrizePool is TieredLiquidityDistributor, Ownable {
return _deltaBalance;
}

function donatePrizeTokens(uint256 _amount) external {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing natspec

@@ -579,7 +586,7 @@ contract PrizePool is TieredLiquidityDistributor, Ownable {
address _vault,
uint24 _startDrawIdInclusive,
uint24 _endDrawIdInclusive
) external view returns (uint256) {
) public view returns (uint256) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't need to be public

function getDonatedBetween(
uint24 _startDrawIdInclusive,
uint24 _endDrawIdInclusive
) public view returns (uint256) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't need to be public

Copy link

LCOV of commit 53efe95 during Tests with 100% Coverage #436

Summary coverage rate:
  lines......: 100.0% (402 of 402 lines)
  functions..: 100.0% (64 of 64 functions)
  branches...: no data found

Files changed coverage rate:
                                             |Lines       |Functions  |Branches    
  Filename                                   |Rate     Num|Rate    Num|Rate     Num
  =================================================================================
  src/PrizePool.sol                          | 100%    176| 100%    35|    -      0

@asselstine asselstine merged commit f23f668 into main Feb 19, 2024
2 checks passed
@asselstine asselstine deleted the gen-1081-add-ability-to-contribute-prizes-to-prize-pool branch February 19, 2024 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants