-
Join Sherlock Discord
-
Submit findings using the issue page in your private contest repo (label issues as med or high)
A EVM cmpatible app-chain
-
USDC (also the gas token on the app-chain)
-
VUSD/hUSD - Our own ERC20 which is the custom unit of accounting in all of Hubble
-
Later some others as supported collateral in Margin Account
None
None
No
No
TRUSTED
TRUSTED
- There is a governance role.
- It basically refers to team multisig can update the system configuration parameters.
- Same as above
- N/A
Q: Is the code/contract expected to comply with any EIPs? Are there specific assumptions around adhering to those EIPs that Watsons should be aware of?
No
Things marked as @todo within the codebase
audits for the v1 (which has some common parts) - https://www.notion.so/hubbleexchange/Sherlock-Audit-Brief-974c91994103458cae91bb28ac5c9df7?pvs=4#9b112d9e59e942be87404f5bb33ad410
Q: Are there any off-chain mechanisms or off-chain procedures for the protocol (keeper bots, input validation expectations, etc)?
Decentralization of the Matching Engine
In Hubble Exchange, the Decentralized Limit Order Book and Matching Engine are embedded within the block-building process of the app-chain. As users place orders, the orders are confirmed and indexed locally in the validator node, which also maintains all information about open positions, margins, pending funding, and margin ratio.
When a validator is selected as the block producer, the buildBlock function fetches active markets and open orders from the indexer, evaluates open positions for potential liquidations, runs the matching engine, and then relays these operations as local transactions before continuing the normal transaction bundling process.
This system ensures that order matching is as decentralized as the validator set of the hubblenet, resulting in a truly decentralized orderbook and matching engine.
Q: In case of external protocol integrations, are the risks of external contracts pausing or executing an emergency withdrawal acceptable? If not, Watsons will submit issues related to these situations that can harm your protocol's functionality.
Yes, open to scenarios where disruption in layer0 service might be able to cause us a big damage, if any.
hubble-protocol @ d89714101dd3494b132a3e3f9fed9aca4e19aef6
- hubble-protocol/contracts/AMM.sol
- hubble-protocol/contracts/ClearingHouse.sol
- hubble-protocol/contracts/GenesisTUP.sol
- hubble-protocol/contracts/HGT.sol
- hubble-protocol/contracts/HGTCore.sol
- hubble-protocol/contracts/HGTRemote.sol
- hubble-protocol/contracts/InsuranceFund.sol
- hubble-protocol/contracts/Interfaces.sol
- hubble-protocol/contracts/MarginAccount.sol
- hubble-protocol/contracts/MarginAccountHelper.sol
- hubble-protocol/contracts/MinimalForwarder.sol
- hubble-protocol/contracts/Oracle.sol
- hubble-protocol/contracts/VUSD.sol
- hubble-protocol/contracts/orderbooks/OrderBook.sol