> For the complete documentation index, see [llms.txt](https://docs.ariaprotocol.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ariaprotocol.xyz/technical-docs/contract-docs/iprwa/vault/lib/vaultstatechecker.md).

# VaultStateChecker

Library for checking and updating the vault state based on expiration time.

## Functions

### \_checkAndUpdateState

*Checks if the vault has passed its expiration time and updates the state to Closed if needed.*

```solidity
function _checkAndUpdateState(VaultFundraiseStorage.FundraiseLayout storage $) internal;
```

**Parameters**

| Name | Type                                    | Description                       |
| ---- | --------------------------------------- | --------------------------------- |
| `$`  | `VaultFundraiseStorage.FundraiseLayout` | The vault storage layout pointer. |
