Function: checkBarriers(address vaultAddress)
Checks if a knock-in event occurred due to a drop in an option barrier token's price.
Inputs
vaultAddress
Control: Fully controlled.
Constraints: Vault must have a status of
Traded
.Impact: Vault metadata might potentially be updated to account for knock-in status.
Branches and code coverage (including function calls)
Intended branches
Should account for knock-in state correctly.
Negative behaviour
Should revert if the vault state is not
Traded
.Should fail if an oracle does not exist for this option barrier's token.