{
    "Function": "mint",
    "File": "contracts/libraries/NAV.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "_mint",
        "_mint",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function mint(\n        Data storage self,\n        uint _balance,\n        address _recipient\n    ) internal returns (uint shares) {\n        uint amount = _balance - self.lastBalance;\n        uint _totalSupply = self.totalSupply;\n        if (_totalSupply != 0) {\n            shares = (amount * _totalSupply) / self.lastBalance;\n        } else {\n            shares = amount - INITIAL_QUANTITY;\n            _mint(self, address(0), INITIAL_QUANTITY);\n        }\n        require(shares > 0, \"NAV: INSUFFICIENT_AMOUNT\");\n        _mint(self, _recipient, shares);\n    }"
}