{
    "Function": "updateTWAV",
    "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": [
        "getCurrentValuation",
        "_updateTWAV",
        "_rejectBuyout",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function updateTWAV() external override {\n        require(status == Status.buyout, \"NibblVault: Status!=Buyout\");\n        uint32 _blockTimestamp = uint32(block.timestamp % 2**32);\n        if (_blockTimestamp != lastBlockTimeStamp) {\n            _updateTWAV(getCurrentValuation(), _blockTimestamp);   \n            _rejectBuyout(); //For the case when TWAV goes up when updated externally\n        }\n    }"
}