💻System Architecture
Speculate on pegged assets, multifold your earnings
Last updated
Speculate on pegged assets, multifold your earnings
Last updated
A function used by Keepers to initiate events that affect the Vaults.
TriggerEndEpoch: Triggers the end of an epoch and transfers the Hedge vault premium to the Risk Vault, closing the epoch.
TriggerDepeg: Triggers if the epoch has not ended and the oracle reports a price lower than the Vault Market strike price, swapping the Hedge Vault premium with the Risk Vault, and closing the epoch.
TriggerNullEpoch: Triggers if, after the insurance epoch has begun and one of the Vault Markets has zero deposits, allowing everyone to withdraw their deposits since there is no possibility to resolve this Market.
A function used by Users to create ERC 1155 positions, where the ID of the token is represented by the Unix Timestamp of the last second of an Insurance Epoch.
Deposit: Transfers WETH and creates 1 to 1 an ERC1155 token corresponding to that epoch.
Withdraw: Takes a fee if there is profit in this position and calculates the user's entitlement, which corresponds to the user's % shares of this Vault before the insurance epoch began.
The "Create Market" function is utilized by Bubble Bot administrators to establish Markets and their corresponding Vaults. It also facilitates the deployment of new epochs for existing Markets. This functionality empowers administrators to manage and expand the Bubble bot ecosystem effectively, enabling the introduction of new assets and opportunities for users within the platform.
We have implemented a feature that enables users to deposit their Vault Market tokens (ERC1155 tokens) into Staking Rewards. By doing so, they can earn $Bubble tokens as rewards. This incentive system encourages users to deposit their tokens into specific Vault Market Positions, with the amount of Bubble tokens earned being contingent on market conditions. This mechanism enhances user engagement and participation within the Bubble bot ecosystem.