{
    "Function": "redeem",
    "File": "contracts/NibblVault.sol",
    "Parent Contracts": [
        "contracts/Utilities/EIP712Base.sol",
        "contracts/Twav/Twav.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol",
        "contracts/Bancor/BancorFormula.sol",
        "contracts/Interfaces/INibblVault.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "balanceOf",
        "totalSupply",
        "_burn",
        "boughtOut",
        "balance(address)",
        "safeTransferETH"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function redeem(address payable _to) external override boughtOut returns(uint256 _amtOut){\n        uint256 _balance = balanceOf(msg.sender);\n        _amtOut = ((address(this).balance - feeAccruedCurator - totalUnsettledBids) * _balance) / totalSupply();\n        _burn(msg.sender, _balance);\n        safeTransferETH(_to, _amtOut);\n    }"
}