-
Notifications
You must be signed in to change notification settings - Fork 22
[review] MIP-54: The Biarritz Model #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
l-monninger
wants to merge
12
commits into
main
Choose a base branch
from
l-monninger/the-biarritz-model
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0b0e712
feat: the biarritz model.
l-monninger 475a97e
fix: table
l-monninger 83e010a
codeowners
apenzk cc4d6b4
Update MIP/mip-54/README.md
apenzk 19a1926
Update MIP/mip-54/README.md
apenzk 9bc77b7
Update MIP/mip-54/README.md
apenzk 67d8b70
Update MIP/mip-54/README.md
apenzk 1aefe14
Merge branch 'main' into l-monninger/the-biarritz-model
apenzk f35b597
add relayer component
apenzk 4544300
review Biarritz
apenzk 651b338
Merge branch 'main' into l-monninger/the-biarritz-model
apenzk f09ff1a
approval status
apenzk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # MIP-54: The Biarritz Model | ||
|
|
||
| - **Description**: Proposes an L2 model with a Native Bridge and Postconfirmation that features a Governed Gas Pool, a Bridge Insurance Fund, and moderate operational assumptions. | ||
| - **Authors**: [Liam Monninger](mailto:liam@movementlabs.xyz) | ||
| - **Desiderata**: [MD-38](https://github.com/movementlabsxyz/MIP/pull/38). | ||
| - **Approval**: :white_check_mark: | ||
|
|
||
| ## Abstract | ||
|
|
||
| We define the Biarritz Model as a Native Bridge (NB) w/ Postconfirmation protocol model that features a Governed Gas Pool, Bridge Insurance Fund, and moderate operational assumptions. At the core of this model is the progressive use of governance to safely perform liquidity operations which are difficult to synchronize in an early model. | ||
|
|
||
| The model may be extended beyond postconfirmation to feature a full Fast Finality Settlement (FFS), in which case we could refer to main characteristics also as **NB-FFS**. | ||
|
|
||
| ## Motivation | ||
|
|
||
| The Biarritz Model is motivated by the need for a [progressive L2 model](https://github.com/movementlabsxyz/MIP/pull/53) that can safely perform liquidity and more generally fund-moving operations which are difficult to operate in an early NB-FFS L2. This model is intended to be a stepping stone towards more complex L2 models that require more sophisticated governance and operational assumptions. | ||
|
|
||
| The Biarritz Model is intended as a complete response to [MD-38](https://github.com/movementlabsxyz/MIP/pull/38). | ||
|
|
||
| ## Specification | ||
|
|
||
| _The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174._ | ||
|
|
||
| _The conventions of [MIP-53: Conventions for Proposing Progressive L2 Models](../mip-53) are applied._ | ||
|
|
||
|  | ||
|
|
||
| | **Category** / _Criterion_ | Evaluation | | ||
| |-----------|------------| | ||
| | **General** | | | ||
| | _When to use_ | When a transition from a genesis or centralized phase form of the L2 system towards a more decentralized setting is appropriate, but the security and safeness of design and implementation are still contested.| | ||
| ||When a secondary centralized phase of the L2 system is desired alongside increasing transparency of centralized operations.| | ||
| | _Suitable preceding models_ | [MIP-55: The Bilbao Model](https://github.com/movementlabsxyz/MIP/pull/55) | | ||
| | _Suitable succeeding models_ | [MIP-40: NB-FFS Decoupled](https://github.com/movementlabsxyz/MIP/pull/40) (INCOMPLETE) | | ||
| | _Technological motivations_ | Contends with bridge fallibility under operational assumptions.| | ||
| || Begins formal governance, but continues to allow for manual flexibility and recovery. | | ||
| | _Usership motivations_ | Provides network which is more open than [MIP-55: The Bilbao Model](https://github.com/movementlabsxyz/MIP/pull/53), potentially encouraging adoption. | | ||
| | **Components** | | | ||
| | _[MIP-44: NB-FFS Governed Gas Pool](https://github.com/movementlabsxyz/MIP/pulls)_ | The Governed Gas Pool into which gas fees are deposited and from which the governing body disperses funds. | | ||
| | _[MIP-49: NB-FFS Governed Rewards and Fees](https://github.com/movementlabsxyz/MIP/pull/49)_ | The means by which gas fees and rewards are adjusted by the governing body. Rewards are migrated manually from the L2 to the L1 by the governing body. | | ||
| | _[MIP-50: Insured Bridge](https://github.com/movementlabsxyz/MIP/pull/50)_ | The Bridge Insurance Fund which is used to cover the cost of failed bridge operations. Insures atomically and synchronously that all losses from bridge failures can be covered. | | ||
| | _Relayer_ | A relayer operated by the governing body that facilitates message passing between L1 and L2. | | ||
| | _L1-L2 Token Correlation_ | The L1 token and the L2 token are bridged 1:1. Moreover the L2 token is the gas token and the L1 token is the staking token. | | ||
| | **Operational Assumptions** | | | ||
| | _Bridge Liveness_ | Operators can be relied upon to meet bridge liveness requirements. | | ||
| | _Security of Governance_ | Governing body's powers cannot be exploited. | | ||
| | _Trust of Governance_ | Users are willing to trust governing body. | | ||
|
|
||
| ### Pros | ||
|
|
||
| 1. **Delayed calculation of rewards to cover centralized expenses**: because fees are held in the gas pool, the governing body need not calculate rewards which would be used to cover their own operating expenses until control of the governance is transferred to the community. The governing body can, for example, decide to use a percentage of captured gas to pay the centralized operators when a more stable token price is known some time after the L2 has been operational. | ||
| 2. **On-chain safety of bridge**: the insurance of the bridge makes on-chain guarantees that all losses from bridge failures can be covered. This is a significant improvement over [The Bilbao Model](https://github.com/movementlabsxyz/MIP/pull/55) which requires off-chain coordination to cover losses. | ||
| 3. **Ease of migration**: the model is designed to be easily migrated to a more decentralized model. The governing body can be replaced by a DAO or other decentralized governance model with minimal changes to the operational assumptions. | ||
| 4. **Delayed migration of rewards**: the model allows for the governing body to manually migrate rewards from the L2 to the L1. This allows for a more gradual transition to a decentralized model and can avoid attacks available in more tightly integrated models. | ||
|
|
||
| ### Cons | ||
|
|
||
| 1. **High trust in governance**: the model requires a high level of trust in the governing body. When the governing body is narrowly defined, this may not be significantly more open than the Bilbao Model. | ||
| 2. **1:1 token correlation**: the model asserts a 1:1 token correlation between the L1 staking and L2 gas tokens. This may not be desirable in all cases as exploits on the bridge may compromise the security of staking on the L1 or sybil resistance on the L2. | ||
|
|
||
| ## Verification | ||
|
|
||
| ## Changelog | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.