Function: _mint(uint256 shares, address receiver)
This facilitates minting shares into the vault.
Inputs
sharesControl: Fully controlled by the caller.
Constraints: None.
Impact: The amount of shares to mint.
receiverControl: Fully controlled by the caller.
Constraints: None.
Impact: The address to mint the shares to.
Branches and code coverage (including function calls)
Intended branches
Deplete the balance of
msg.senderbyassets.Increase the balance of
address(this)byassets.Mint
sharestoreceiver.
Negative behavior
Should not allow depositing more assets than what was transferred. That is ensured in
safeTransferFromWithAmount.Should not allow the deposit inflation attack. Currently that is not enforced in code.
Should not allow for huge discrepancies between
previewMintand actual mint. Currently that is not enforced in code.