Skip to content

Commit

Permalink
natspec
Browse files Browse the repository at this point in the history
  • Loading branch information
haythemsellami committed Oct 21, 2024
1 parent 023641b commit 537d1bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/module/EulerEarnVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,10 @@ abstract contract EulerEarnVaultModule is ERC4626Upgradeable, ERC20VotesUpgradea

/// @dev Calculate the maximum amount of the underlying asset that can be withdrawn from the owner balance,
/// while simulating a harvest call before withdraw, returning the amounts of totalAssets and totalSupply to be expected.
/// @param _owner Owner address.
/// @return Expected totalAssets() after a harvest simulation.
/// @return Expected totalSupply() after a harvest simulation.
/// @return Max assets to withdraw.
function _maxWithdraw(address _owner) private view returns (uint256, uint256, uint256) {
uint256 ownerShares = _balanceOf(_owner);
uint256 assetsBeforeHarvest = _convertToAssets(ownerShares, Math.Rounding.Floor);
Expand Down

0 comments on commit 537d1bb

Please sign in to comment.