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

PufferDepositor and access #42

Merged
merged 4 commits into from
Feb 19, 2024
Merged

PufferDepositor and access #42

merged 4 commits into from
Feb 19, 2024

Conversation

bxmmm1
Copy link
Contributor

@bxmmm1 bxmmm1 commented Feb 16, 2024

  • Remove unused code from the PufferDepositor
  • Create a helper script for access management

@bxmmm1 bxmmm1 self-assigned this Feb 16, 2024
@bxmmm1 bxmmm1 changed the base branch from feature/mainnet to main February 16, 2024 15:25
bytes4[] memory publicSelectors = new bytes4[](6);
publicSelectors[0] = PufferVaultMainnet.withdraw.selector;
publicSelectors[1] = PufferVaultMainnet.redeem.selector;
publicSelectors[2] = PufferVaultMainnet.redeem.selector;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why 2 selectors for redeem?

@@ -189,6 +228,8 @@ contract PufferVaultMainnet is PufferVault {

/**
* @notice Allows the `msg.sender` to burn his shares
* @dev Restricted to PufferProtocol smart contract
* We use it to burn the bond if the node operator gets slashed
* @param shares The amount of shares to burn
*/
function burn(uint256 shares) public restricted {
Copy link
Contributor

@CheyenneAtapour CheyenneAtapour Feb 17, 2024

Choose a reason for hiding this comment

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

Nbd, but we mentioned we could allow anyone to call this to basically make a donation. The alternative they'd have is to send to something like address(0), but doesn't really burn the token / change the exchange ratio.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Less things to think about. If somebody wants to donate, they can do so by depositing ETH/stETH/WETH

@CheyenneAtapour CheyenneAtapour self-requested a review February 17, 2024 01:26
Copy link
Contributor

@CheyenneAtapour CheyenneAtapour left a comment

Choose a reason for hiding this comment

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

duplicate selector and public burn (see comments)

@bxmmm1 bxmmm1 marked this pull request as ready for review February 19, 2024 17:09
@bxmmm1 bxmmm1 merged commit 9bc3c52 into main Feb 19, 2024
4 checks passed
@bxmmm1 bxmmm1 deleted the pufferDepositorMainnet branch May 2, 2024 13:18
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