Skip to content

Commit

Permalink
docs: add notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Jan 17, 2025
1 parent b529f7b commit 5215e35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/0.8.25/vaults/Dashboard.sol
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ contract Dashboard is AccessControlEnumerable {
}

/**
* @notice Burns wstETH tokens from the sender backed by the vault. Approvals for the passed amounts should be done before.
* @notice Burns wstETH tokens from the sender backed by the vault. Approvals for the passed amounts should be done before.
* @param _amountOfWstETH Amount of wstETH tokens to burn
* @dev The _amountOfWstETH = _amountOfShares by design
* @dev Will fail on ~1 wei (depending on current share rate) wstETH due to rounding error inside wstETH
*/
function burnWstETH(uint256 _amountOfWstETH) external virtual onlyRole(DEFAULT_ADMIN_ROLE) {
_burnWstETH(_amountOfWstETH);
Expand Down Expand Up @@ -405,6 +405,7 @@ contract Dashboard is AccessControlEnumerable {
* @notice Burns wstETH tokens backed by the vault from the sender using EIP-2612 Permit.
* @param _amountOfWstETH Amount of wstETH tokens to burn
* @param _permit data required for the wstETH.permit() method to set the allowance
* @dev Will fail on 1 wei (depending on current share rate) wstETH due to rounding error inside wstETH
*/
function burnWstETHWithPermit(
uint256 _amountOfWstETH,
Expand Down

0 comments on commit 5215e35

Please sign in to comment.