redeemAtom() is used to redeem shares to send an asset to receiver, However,Natspec states different. As per function Natspec redeem assets from an atom vault which is not correct.
Consider below changes:
- /// @notice redeem assets from an atom vault
+ /// @notice redeem shares from an atom vault
///
/// @param shares the amount of shares to redeem
/// @param receiver the address to receiver the assets
/// @param id the vault ID of the atom
///
/// @return assets the amount of assets/eth withdrawn
/// NOTE: Emergency redemptions without any fees being charged are always possible, even if the contract is paused
/// See `getRedeemAssetsAndFees` for more details on the fees charged
function redeemAtom(uint256 shares, address receiver, uint256 id) external nonReentrant returns (uint256) {
Github username: -- Twitter username: -- Submission hash (on-chain): 0xf7a015f3ddf4340c4b05c50a50ed383c0990d8ac664a64fdd0e0f799156cf447 Severity: low
Description: Description\
redeemAtom()
is used to redeem shares to send an asset to receiver, However,Natspec states different. As per function Natspecredeem assets from an atom vault
which is not correct.Consider below changes: