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

Add reserve increasing #2

Conversation

dylandesrosier
Copy link
Contributor

No description provided.

Copy link
Member

@trmid trmid left a comment

Choose a reason for hiding this comment

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

small grammar change

src/PrizePool.sol Outdated Show resolved Hide resolved
Co-authored-by: Trevor Richard <40277611+trmid@users.noreply.github.com>
/// @param user The user attempting to increase the reserve
/// @param balance The user's current balance
/// @param amount The amount that the reserve is being increased by
error InsufficientPrizeTokenBalance(address user, uint256 balance, uint256 amount);
Copy link
Contributor

Choose a reason for hiding this comment

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

Where did this come from?

@@ -167,6 +173,10 @@ contract PrizePool is TieredLiquidityDistributor {
/// @param amount The amount of assets transferred
event WithdrawReserve(address indexed to, uint256 amount);

/// @notice Emitted when the reserve is manually increased.
/// @param amount The amount of assets transferred
event IncreaseReserve(uint256 amount);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should prob include the user that increased?

@asselstine asselstine merged commit 78e58e9 into main Jul 6, 2023
0 of 2 checks passed
@asselstine asselstine deleted the dylan/gen-63-allow-someone-to-deposit-directly-into-the-prizepool-reserve branch July 6, 2023 22:10
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.

None yet

3 participants