-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(protocol): use american english (#15899)
Co-authored-by: Daniel Wang <[email protected]> Co-authored-by: d1onys1us <[email protected]>
- Loading branch information
1 parent
b00d0b1
commit 220957d
Showing
4 changed files
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
Taiko's briding concept is a lock-and-mint type. It simply means (the red path above) on the canonical chain we take custody of the assets and on the destination chain we mint the wrapped counterpart. When someone wants to bridge back (from destination to canonical) it will first burn the tokens, then release the funds on the canonical chain. | ||
This comment has been minimized.
Sorry, something went wrong.
VictoryWekwa
|
||
|
||
But there might be some incentives (e.g.: adoption, liquidity fragmentation, etc.) when deploying a native token on the destination chain is beneficial. For this reason Taiko introduced the possibilty of deploying the canonical assets (together with all their sub/parent/proxy contracts) and plug it into our ERC20Vault via adaptors (green path). | ||
But there might be some incentives (e.g.: adoption, liquidity fragmentation, etc.) when deploying a native token on the destination chain is beneficial. For this reason Taiko introduced the possibilty of deploying the canonical assets (together with all their sub/parent/proxy contracts) and plug it into our ERC20Vault via adapters (green path). | ||
|
||
Important to note that while wrapped asset briding is 'automatical', the native one requires the willingness and efforts from Taiko side (and maybe also original token issuer green light to recognise officially as "native"), to support that type of asset-transfer. | ||
|
||
|
@@ -13,8 +13,8 @@ Important to note that while wrapped asset briding is 'automatical', the native | |
There are some steps to do in order to facilitate native token bridging. In the next steps, here is a TLDR breakdown how we do it with USDC. | ||
|
||
1. Deploy the same (bytecode equivalent) ERC-20 token on L2. An example of the contracts + deployments can be found in our [USDC repo](https://github.com/taikoxyz/USDC). | ||
2. Deploy adaptor (e.g.: [USDC adaptor](../contracts/tokenvault/adaptors/USDCAdaptor.sol)). As this will serve as the plug-in to our `ERC20Vault` for custom (native) tokens. This adaptor serves multiple purposes. It is also a wrapper around the native token in a way - that it matches our conform `ERC20Vault` interfaces so that we can be sure any kind of native ERC-20 can be supported on L2. Also can handle custom logic required by the native asset (roles handling, specific logic, etc.). | ||
2. Deploy adapter (e.g.: [USDC adapter](../contracts/tokenvault/adapters/USDCAdapter.sol)). As this will serve as the plug-in to our `ERC20Vault` for custom (native) tokens. This adapter serves multiple purposes. It is also a wrapper around the native token in a way - that it matches our conform `ERC20Vault` interfaces so that we can be sure any kind of native ERC-20 can be supported on L2. Also can handle custom logic required by the native asset (roles handling, specific logic, etc.). | ||
3. Transfer the ownership (if not already owned by) to `ERC20Vault` owner since those 2 have to be owned by the same address. (!IMPORTANT! Not the token owned by the same owner, but the token adpter! USDC owner will still be Circle on L2.) | ||
4. Since our bridge is permissionless, there might have been some USDC bridge operations in the past. It would mean, there is already an existing `BridgedUSDC` on our L2. To overcome liquidity fragmentation, we (Taiko) need to call `ERC20Vault` `changeBridgedToken()` function with the appropriate parameters. This way the "old" `BridgedUSDC` can be migrated to this new native token and the bridging operation will mint into the new token frm that point on. | ||
|
||
The above steps (2. - 4.) is incorporated into the script [DeployUSDCAdaptor.s.sol](../script/DeployUSDCAdaptor.s.sol). | ||
The above steps (2. - 4.) is incorporated into the script [DeployUSDCAdapter.s.sol](../script/DeployUSDCAdapter.s.sol). |
This file contains 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
2 comments
on commit 220957d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi
ID,Collection,ENS,Minting Date,Tx Count,Power
6290128,0xdc4aa7278a728e2e5c31a1a4d56e82d4ed5e5e77,,Sat Feb 04 2023 13:05:30 GMT+0100 (Central European Standard Time),1,3
6089401,0xbefaadd4a558637646a7f0697022e1f767c7b491,,Thu Dec 15 2022 15:35:10 GMT+0100 (Central European Standard Time),1,1
6088740,0x8c2ae1c8d6d1b3294488294dadb3a1a53b00d909,,Thu Dec 15 2022 10:23:50 GMT+0100 (Central European Standard Time),1,1
6025863,0x84f734c6c6fe7bb628e0ff04ff0a5776b8d68f9f,cygen.eth,Thu Dec 08 2022 13:26:20 GMT+0100 (Central European Standard Time),1,20
6025819,0xfac906b02e9e1f54c5b9f891db5e8fe428889448,,Thu Dec 08 2022 12:57:55 GMT+0100 (Central European Standard Time),1,12
6015868,0xbad465d4ff92605c26978bb75ac93f07057d9e21,okarin.eth,Tue Dec 06 2022 16:16:40 GMT+0100 (Central European Standard Time),2,17
5987335,0x183bdb344a07ee3d27f07ac4799a56e4a2fe5439,,Thu Dec 01 2022 19:40:25 GMT+0100 (Central European Standard Time),1,2075