You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Chain Predeposit Module (CPM) is a sophisticated system designed to facilitate predeposit campaigns for chains that want to have pre-committed liquidity into their protocols on day one. It consists of two main components: the ```PredepositLocker``` on the source chain and the ```PredepositExecutor``` on the destination chain.
3
+
The Cross-Chain Deposit Module (CDM) is a sophisticated system designed to facilitate cross-chain deposit campaigns for chains that want users to commit liquidity from the source chain into their protocols on the destination chain. It consists of two main components: the ```DepositLocker``` on the source chain and the ```DepositExecutor``` on the destination chain.
4
4
5
5
## Overview
6
6
@@ -14,18 +14,18 @@ This module allows users to deposit funds on one chain and have those funds brid
14
14
- Allows APs to execute withdraw recipes to reclaim their funds as per the market's parameters
15
15
16
16
1.**[WeirollWallet](https://github.com/roycoprotocol/royco/blob/main/src/WeirollWallet.sol)**: Smart contract wallets used to execute recipes
17
-
- Used on the source chain to deposit funds to bridge and withdraw funds (rage quit) to/from the PredepositLocker
17
+
- Used on the source chain to deposit funds to bridge and withdraw funds (rage quit) to/from the DepositLocker
18
18
- Used on the destination chain to hold a depositor's position, execute deposits upon bridging, and withdrawals after an absolute locktime
19
19
20
-
2.**[PredepositLocker](https://github.com/roycoprotocol/chain-predeposit-module/blob/main/src/PredepositLocker.sol)**: Deployed on the source chain
20
+
2.**[DepositLocker](https://github.com/roycoprotocol/chain-Deposit-module/blob/main/src/DepositLocker.sol)**: Deployed on the source chain
21
21
- Integrates with Royco's RecipeMarketHub to facilitate deposits and withdrawals
22
-
- Accepts deposits from users' Weiroll Wallets upon an AP filling an offer in any predeposit market
22
+
- Accepts deposits from users' Weiroll Wallets upon an AP filling an offer in any Deposit market
23
23
- Allows for withdrawals until deposits are bridged
24
24
- Handles bridging funds to the destination chain in addition to composing destination execution logic via LayerZero
25
25
26
-
3.**[PredepositExecutor](https://github.com/roycoprotocol/chain-predeposit-module/blob/main/src/PredepositExecutor.sol)**: Deployed on the destination chain
26
+
3.**[DepositExecutor](https://github.com/roycoprotocol/chain-Deposit-module/blob/main/src/DepositExecutor.sol)**: Deployed on the destination chain
27
27
- Receives the bridged funds and composed payload via LayerZero and atomically creates Weiroll Wallets for all bridged depositors
28
-
- Executes deposit scripts ONCE after bridge (either by the depositor or the owner of the predeposit campaign)
28
+
- Executes deposit scripts ONCE after bridge (either by the depositor or the owner of the Deposit campaign)
29
29
- Allows the depositor to execute the withdrawal recipe after the absolute locktime has passed
30
30
31
31
## Key Features
@@ -35,10 +35,10 @@ This module allows users to deposit funds on one chain and have those funds brid
35
35
- Weiroll Wallets created for each depositor on the destination chain with the ability to deposit and withdraw assets as specified by the campaign's recipes
36
36
37
37
## CPM Flow
38
-
1. AP (depositor) fills an offer for a predeposit market in the RecipeMarketHub
39
-
2. The RecipeMarketHub automatically creates a Weiroll Wallet for the user and deposits them into the PredepositLocker
38
+
1. AP (depositor) fills an offer for a Deposit market in the RecipeMarketHub
39
+
2. The RecipeMarketHub automatically creates a Weiroll Wallet for the user and deposits them into the DepositLocker
40
40
3. Depositors can withdraw deposits anytime through the RecipeMarketHub before their deposits are bridged
41
-
4. Once green light is given, anyone can bridge funds to the destination chain from the PredepositLocker
42
-
5.PredepositExecutor receives bridged funds and creates Weiroll Wallets for each depositor based on data in composed payload
41
+
4. Once green light is given, anyone can bridge funds to the destination chain from the DepositLocker
42
+
5.DepositExecutor receives bridged funds and creates Weiroll Wallets for each depositor based on data in composed payload
43
43
6. Deposit recipes are executed on the destination chain
44
44
7. Users can withdraw funds after the absolute unlock timestamp
0 commit comments