Comment on page
Used by Keepers to trigger the events that condition the Vaults.
TriggerEndEpoch => function that if the epoch has ended, will transfer the Premium Vault deposit to Collateral Vault, and close that epoch.
TriggerDepeg => function that if the epoch has not ended and the oracle reports a price lower than the Vault Market strike price, will swap Collateral vault deposits with Premium vault, and close that epoch.
TriggerNullEpoch => function that if, after the insurance epoch has begun and one of the Vault Markets has zero deposits, will allow everyone to withdraw their deposits has there is no possibility to resolve this Market.
Withdraw fee in V2 is deducted when the vault is settled. The user's entitlement is then calculated based on the percentage of shares they had in the Vault before the insurance epoch began.
Users can opt to rollover existing positions into the next available epoch using the
enlistInRolloverfunction, specifying the epochId, shares, and receiver. To cease rollovers, users can invoke the
delistInRolloverfunction. Pending rollovers can be minted by anyone calling the
mintRolloversfunction during an active deposit window.
V2 permits users to deposit at any time using the deposit function with an
0. A QueueItem is minted and later redeemed for a position in the next epoch deposit window. Any party can call the
mintDepositInQueuefunction during an active deposit window to redeem all stored QueueItems.