Layer2.Finance aims to democratize access to DeFi protocols for everyone. Users can aggregate their DeFi usage and save on Ethereum fees.
Funds can be stolen if
Funds can be frozen if
Users can be censored if
MEV can be extracted if
After some period of time, the published state root is assumed to be correct. For a certain time period, usually one week anyone can submit a fraud proof that shows that the state was incorrect. Unfortunately in case of Layer2.Finance only some fraud proofs revert blocks and every successful fraud proof pauses the contract requiring the owner to unpause.
Funds can be stolen if there is no one that checks the published state. Fraud proofs assume at least one honest and able validator.
Funds can be frozen if the problematic fraud proof mechanism is exploited (CRITICAL).
All the data that is used to construct the system state is published on chain in the form of cheap calldata. This ensures that it will always be available when needed.
The operator is the only entity that can propose blocks. A live and trustworthy operator is vital to the health of the system.
MEV can be extracted if the operator exploits their centralized position and frontruns user transactions.
Funds can be frozen if the sequencer halts its operations (CRITICAL).
The user initiates the withdrawal by submitting a transaction on L2. When the block containing that transaction is finalized the funds become available for withdrawal on L1. The process of block finalization usually takes several days to complete. Finally the user submits an L1 transaction to claim the funds. This transaction does not require a merkle proof.
Funds can be stolen if the operator does not include user's L2 withdrawal transactions (CRITICAL).
The system consists of the following smart contracts:
This contract stores the following tokens: BUSD, DAI, USDC, USDT, WETH.
The current deployment carries some associated risks:
Funds can be stolen if the owner calls owner-only functions that pause the contract and drain funds (CRITICAL).