Puffer 백서

Puffer

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 14쪽 중 8쪽

t { uint256 n = withdrawals.length; for (uint256 i; i < n; ++i) { _completeQueuedWithdrawal(withdrawals[i], tokens[i], receiveAsTokens[i]); // <<< } } 4. _wrapETH() can fail with low level WETH deposit error if there are no assets - wethBalance ETH present on the balance at InstitutionalVault.sol#L435. Recommendation: Consider: 1. Returning shares from depositETH(), adding to the description. 2. Adding mint() to IInstitutionalVault, replacing minted with consumed. 3. To reduce operational mistakes surface (i.e. the attempts to use completeQueuedWithdrawals() as an array based version) consider simplifying, e.g. making it function completeQueued- Withdrawal(IDelegationManagerTypes.Withdrawal calldata withdrawal, bool calldata receiveAsTokens) (i.e. also removing plural by Noah's comment). 4. Applying the similar logic as in _unwrapWETH(), e.g.: 11 • InstitutionalVault.sol#L432-L436: uint256 wethBalance = WETH.balanceOf(address(this)); - if (wethBalance < assets) { - WETH.deposit{ value: assets - wethBalance }(); - } + if (wethBalance >= assets) { + return; + } + uint256 amountToWrap; + unchecked { amountToWrap = assets - balance; } + if (address(this).balance >= amountToWrap) { + WETH.deposit(amountToWrap); + } else { + revert NotEnoughETH(); + } Puffer Finance: Did some fixes and updated the readme to address some concerns in PR 8. • (2) The natspec is correct if you are refering to this minted /** * @notice Deposit ETH into the vault * Depositor receives institutionalETH shares in return * @param receiver The address to receive the shares * @return shares The amount of shares (institutionalETH) minted */ function depositETH(address receiver) external payable returns (uint256); /** * @notice Override the deposit function to allow for the deposit of shares (institutionalETH) * Restricted modifier is used to pause/unpause the deposit function * @param assets The amount of assets (WETH) to deposit * @param receiver The address to receive the shares * @return shares The amount of shares (institutionalETH) minted */ function deposit(uint256 assets, address receiver) external returns (uint256); 3. We will skip this fix. Cantina Managed: Fixed and acknowledged. 12 ## /yield/protocol/guiding-principles On this page info Puffer aims to make Ethereum validating not just accessible but profitable 💪🐡 The protocol strives to improve Ethereum validator diversity. In this spirit, the Puffer Protocol was designed to be... Safety first ​ The protocol must reduce staking and restaking risk for its stakers and the networks they are supporting. Puffer's NoOps run anti-slashing hardware and lock collateral to mitigate slashing risk. Puffer introduces a novel approach to validator collateral with better long-term NoOp incentives. Learn more 👉 validator tickets incentives . Puffer uses a highly-aligned security counsel to reduce inactivity risk. Learn more 👉 Guardian duties . Puffer places strict guardrails around which AVSs are allowed as the restaking ecosystem evolves. Learn more 👉 restaking AVSs . Puffer places strict guardrails around who can operate AVSs as the restaking ecosystem evolves. Learn more 👉 restaking operators . Puffer adjusts risk by allocating the protocol's ETH amongst different Eigenlayer AVSs and Restaking Operators. Learn more 👉 allocating ETH to modules . Ethos-aligned ​ The protocol must be aligned with Ethereum's ethos. Puffer is preemptively self-capping its protocol size to 22% to protect Ethereum's credible neutrality. Learn more 👉 burst threshold to self-cap . Puffer is designed with a roadmap to complete decentralization. Learn more 👉 decentralizing the Guardians . Puffer helps increase Ethereum's Proof of Stake stability since NoOps have long-term commitments. Learn more 👉 validator tickets . Puffer received an Ethereum Foundation grant for our anti-slashing technology. Permissionless ​ The protocol must allow anyone to run a validator. Puffer allows anyone with a 2 ETH bond (any hardware) to run an Ethereum validator. Learn more 👉 NoOp Requirements . Low barriers ​ The protocol must be capital efficient to attract NoOps. Puffer reduces the ETH amount needed to become an Ethereum validator to as little as 2 ETH, inviting more participants. Learn more 👉 validator tickets . Puffer gives NoOps restaking exposure with less than 32 ETH. Learn more 👉 modules . Profitable ​ The protocol must be profitable to attract NoOps. Puffer allows NoOps to increase their profit margins through Eigenlayer restaking exposure. Learn more 👉 modules . Scalable ​ The protocol must be scalable to compete with centralized liquid staking protocols. Puffer helps the protocol grow by allowing stakers to bring any amount of ETH. Learn more 👉 minting pufETH . Puffer supercharges rewards for pufETH holders through restaking exposure. Learn more 👉 nLRTs . Puffer is designed so that pufETH can grow in value even if validator queues are very long. Learn more 👉 validator tickets . Puffer stakers earn rewards even if the protocol's validators underperform. Learn more 👉 NoOp incentives . Safety first Ethos-aligned Permissionless Low barriers Profitable Scalable ## /yield/protocol/validator-tickets-calculation On this page info This page is a guide to help you understand how Validator Tickets (VTs) are calculated. VT Consumption Calculation Summary ​ The VT (Validator Tickets) consumption calculation is a critical process for managing node operators within the Puffer Protocol. This process ensures that node operators maintain sufficient VT balances to support their active validators. Here's a breakdown of how VT consumption is calculated: Node Operator Address Validation : The process begins by validating the node operator's address to ensure it is in the correct format. Fetching VT Balance : The current VT balance of the node operator is retrieved from the Puffer Protocol. This balance represents the total VTs available for consumption by the node operator's validators. note Exited but Not Finalized Validators : These are validators that have started the exit process from the beacon chain. Although they are no longer actively validating, the exit process is not fully complete until the bond is returned to the user. This stage is crucial as it ensures that validators are properly accounted for and that their resources are returned once all exit conditions are met. Epoch and Validator Data Retrieval : The latest epoch is fetched from the beacon chain, along with the list of active validators and those that have exited but not yet finalized. Active validators consume VTs daily, while exited validators may still consume VTs until they are fully finalized. VT Consumption Calculation : Active Validators : The total VT consumption for active validators is calculated based on the number of epochs they have been active. Exited Validators : Similarly, the VT consumption for exited but not finalized validators is calculated for the epochs they were active until their exit. Present VT Balance Calculation : The present VT balance is determined by subtracting the total VT consumption from the initial balance. This balance indicates the remaining VTs available to the node operator. tip Basically 1 VT is consumed daily per validator. Minimum VT Requirement Check : The system checks if the present VT balance meets the minimum required VTs per validator. If the balance is below this threshold, ALL of the node operator's validators will be ejected to prevent further VT consumption. note The threshold is currently set to 5 days, meaning node operators must maintain a VT balance sufficient for at least 5 days before running out of VT or ejection will be triggered. A warning message will be issued when there are 8 days left before reaching the threshold, allowing node operators to take necessary actions to avoid ejection. When Do We Eject? ​ Ejection of validators is a critical process in the Puffer Protocol to ensure the stability and integrity of the network. Validators are ejected under specific conditions related to their VT (Validator Ticket) balance. Here's a detailed explanation of when ejection occurs: Low VT Balance Detection : The system continuously monitors the VT balance of node operators. If the balance falls below a predefined threshold, it triggers a potential ejection process. The threshold is defined as the minimum required VTs per active validator. Active Validators Check : The system checks the number of active validators associated with a node operator. If there are no active validators, ejection is not necessary. Ejection Decision : If the present VT balance is less than the minimum required VTs for the active validators, the system logs a warning and proceeds to eject the validators. The ejection process submits a request to eject the validators due to low VT balance. APIs and Instructions for Checking VT Status ​ To check your VT consumption and validator status, you can use the Puffer API. Here's how to do it: Endpoint ​ GET https://api.puffer.fi/puffer-withdrawal-service/api/v1/noop/consumption/calculate/{node_address} Replace {node_address} with your node operator's Ethereum address. Request ​ curl -X 'GET' \ 'https://api.puffer.fi/puffer-withdrawal-service/api/v1/noop/consumption/calculate/{node_address}' \ -H 'accept: application/json' Response ​ { "vtBalance": "string", // Your current VT balance "activeValidators": 0, // Number of active validators "exitedButNotFinalizedValidators": 0, // Number of validators in exit state "shouldEject": true, // Whether validators should be ejected "ticketsConsumed": "string", // Total VTs consumed "showWarning": true // Whether low VT balance warning should be shown } This API provides real-time information about your VT status and validator health. Since the VT consumption is calculated per epoch the response is updated every epoch. Important Notice for Node Operators It is the responsibility of node operators to actively monitor their VT balance and ensure timely deposits. Do not wait until the last minute to deposit additional VTs, as this may lead to unwanted results. If your balance falls below the defined threshold, all validators associated with your node operator address will be ejected from the protocol. Best practices: Regularly check your VT balance using the API Set up monitoring alerts for low balance warnings Plan VT deposits well in advance of depletion Maintain a buffer above the minimum required balance VT Consumption Calculation Summary When Do We Eject? APIs and Instructions for Checking VT Status ## /yield/protocol/rewards On this page info Stakers and NoOps can earn more due to native restaking. Rewards Overview ​ The protocol receives rewards from the validator tickets minted to run validators and from restaking rewards generated by restaking operators as they operate AVSs . Together, these rewards increase the amount of ETH backing pufETH, increasing the conversion rate between the two and thus the value of pufETH. This section will outline how rewards are distributed among the protocol's participants. Who Gets Rewards? ​ Stakers ​ They earn PoS and restaking rewards by holding the pufETH nLRT . NoOps ​ They get all the PoS rewards their validators make. They earn more by holding pufETH and from deploying their validators in PufferModules . Restaking Operators ​ They get a fee for running AVSs on behalf of PufferModules . Guardians ​ They get fees for doing their jobs and to help with their gas costs. Puffer Protocol ​ It gets a fee to support its growth and to give the governance token more utility . Rewards Breakdown ​ Consensus Rewards ​ Due to validator tickets, NoOps receive 100% of consensus rewards . These consensus rewards are directed to the withdrawal credentials which will, in this case, be the module's EigenPod . However, these rewards are not immediately accessible for withdrawal. After a delay, NoOps can withdraw their consensus rewards using a merkle rewards tree. EigenLayer Partial Withdrawals Proofs are being improved 🚧 Currently it is cost-prohibitive to withdraw consensus rewards from EigenPods but the EigenLayer team is working to decrease these costs. Until then, withdrawing consensus rewards is temporarily disabled. Execution Rewards ​ Thanks to validator tickets, NoOps also receive 100% of execution rewards . This arrangement grants NoOps full control over their MEV (Maximal Extractable Value) strategy, without any mandatory software constraints such as MEV-Boost , allowing for potentially more censorship resistance. Execution rewards are immediately liquid as they are routed automatically to the NoOps' specified wallet using their own fee_recipient address. Restaking Rewards ​ Restaking rewards are the fees derived from operating AVSs. While some protocols, like EigenDA, remit their payments in ETH and are straightforward to manage, others might use ERC20 tokens for payment. In such cases, these ERC20 rewards must be converted into ETH before being distributed to the Puffer protocol's participants. EigenLayer Specs not finalized 🚧 EigenLayer is in active development with more detailed information regarding AVS payments coming soon. Validator Tickets ​ Validator Tickets cost ETH to mint and are allocated as follows: Guardians are paid a fee to incentivize honest behavior and cover gas-fees. The treasury is allocated a portion as a protocol fee. Stakers get the remainder deposited to the PufferVault. Rewards Overview Who Gets Rewards? Rewards Breakdown ## /yield/reference/faq On this page 🐙 What is Puffer's Mission? ​ Puffer's mission is to define a new industry standard for secure validator operations, with the primary objective of preserving the decentralization of Ethereum. Through our anti-slashing technology, we are reducing the risk of correlated slashing events across Ethereum while simultaneously promoting decentralization by lowering the barrier to entry for at-home validators and allowing for a more diverse node operator set. However, reducing barriers to entry is one thing, but creating a more profitable platform for validators is crucial and is why Puffer has been pioneering in native restaking. Ultimately, through Puffer's protocol, we hope to extend Ethereum's decentralization runway while its roadmap is being implemented. 🐡 Explain ETH Liquid staking to me like I'm five? ​ Liquid staking is a simple and convenient way to gain exposure to ETH staking without having to meet the technical or financial requirements associated with vanilla staking, such as running your own node setup or having access to large amounts of capital (32 ETH). Instead, liquid staking protocols (LSPs) take user deposits and stake them on behalf of their users using their own node operator set, taking on the heavy lifting for the user. In return, users receive tokens from the LSP that represents their deposit. These tokens can be redeemed from the LSP for ETH, traded on the open market, or used throughout DeFi as collateral. ✌️ Explain restaking to me like I'm five? ​ With 32 ETH you can stake to run a solo validator. Your ETH is used solely for the purpose of PoS. Restaking lets you use this ETH for running other jobs, allowing for more rewards but also more risk since you can get slashed from these new jobs. Puffer likes restaking because it allows validators to earn more with their existing hardware which isn't being fully taken advantage of through PoS alone. 🐟 What problems do LSPs currently face? ​ Although decentralized liquid staking sounds great in theory, the market will always favor centralized services in practice. This is because centralized staking providers can attract more liquidity by offering stakers higher yields than their decentralized competitors. This dilemma results from centralized services running a small and permissioned node operator set that allows them to scale much faster and operate more cost-effectively. For example, a node operator with 1024 ETH can operate 32x more validators than a node operator with 32 ETH when solo staking while paying the same hardware costs. In the context of liquid staking, centralized protocols with permissioned validators do not require their operators to put down collateral. Rather, they rely on reputation to ensure they behave honestly. In practice, some operators run tens of thousands of validators each. For a decentralized liquid staking protocol, running this many validators requires operators to have tens of thousands of ETH. Puffer's goal is to break this cycle by empowering decentralized validators with higher rewards while lowering their barrier to entry. 🦈 How does Puffer help address some of these pain points? ​ Puffer is taking a unique approach to solving this problem by allowing node operators to earn additional revenue by utilizing their latent compute power. This allows node operators to amortize their infrastructure and operating costs without requiring additional capital to run parallel validators. This drastically lowers the barrier to entry for node operators, allowing decentralized LSPs to flourish and compete with centralized services that currently dominate the space. Over the coming months, we will be providing more information on our plans for generating additional yield for Puffer node operators. 🧜‍♀️ How much ETH do I need to run a Puffer node? ​ As preserving decentralization is our top priority, the minimum collateral requirement will start at 2 ETH for Puffer node operators. This lowers the barrier to entry for solo stakers, allowing for a robust and scalable permissionless node operator set. 🐢 When did Puffer launch? ​ Puffer deployed on mainnet on 31st January 2024. 🦐 Can I get slashed if I go offline? ​ No, inactivity is not considered a slashable offense. Refer to Slashing on Ethereum PoS . 🪼 How many validators have been slashed? Should we even care about slashable offenses? ​ At the time of writing, there have been 472 slashing events . While this number may seem low, slashing poses an existential threat to all Ethereum validators and LST holders. For example, assume there is a bug in one of the five consensus clients that causes a slashing rule to be broken (for simplicity, assume each consensus client is used by 20% of the validators). The anti-correlation penalty causes the slashing amount to increase as the number of offenders increases, in this case to 1 + 3 ∗ 20 % ∗ 32 = 20.2 1 + 3*20\%*32 = 20.2 1 + 3 ∗ 20% ∗ 32 = 20.2 ETH. Unfortunately, 20% of the validators using this consensus client would face a 20.2 ETH slashing penalty. This would wipe out years of staking revenue for the nodes and LST holders. 🐊 Why don't other permissionless pools reduce their bond requirement to 2 ETH? ​ Reducing the bond requirement increases node and staker risk which Puffer mitigates through Guardian support . Also as the bond requirement decreases, the threat of "rug-pulling" increases, which Puffer's Validator Tickets address. 🐙 What is Puffer's Mission? 🐡 Explain ETH Liquid staking to me like I'm five? ✌️ Explain restaking to me like I'm five? 🐟 What problems do LSPs currently face? 🦈 How does Puffer help address some of these pain points? 🧜‍♀️ How much ETH do I need to run a Puffer node? 🐢 When did Puffer launch? 🦐 Can I get slashed if I go offline? 🪼 How many validators have been slashed? Should we even care about slashable offenses? 🐊 Why don't other permissionless pools reduce their bond requirement to 2 ETH? ## /yield/setup On this page Setup Beacon Node and Execution Node ​ In order to run a validator , you will need to run an Execution Layer client, a Consensus Layer client, and the validator software. note Puffer is live on Mainnet! If you wish to setup a testnet validator, we're using the 🦁 Holesky testnet , so make sure to set the network to holesky , otherwise use m
프로젝트로 돌아가기