TL;DR
- Hyperliquid now allows direct token linking between HyperCore and HyperEVM, avoiding the use of external bridges and reducing risks.
- The linking process follows a specific technical scheme that ensures the correspondence of asset supply and validates the involved ERC20 contracts.
- Although the update improves interoperability, it is recommended to carefully review contracts and balances to avoid errors or asset loss.
Hyperliquid has implemented a technical update that allows token linking between HyperCore and HyperEVM, two key components within its infrastructure. The update aims to optimize asset movement and reduce reliance on external bridges, known to be vulnerable to security failures and cyberattacks.
The integration between HyperCore and HyperEVM follows a structured process that involves several technical steps. First, a token contract is deployed on HyperEVM, known as the “spot deployer,” which ensures the asset supply correspondence across both platforms. Then, it is verified that the corresponding ERC20 contract is correctly linked to the original HyperCore token.
How Token Linking Works
This verification process can be done through a transaction with a specific nonce, or if the contract was deployed by another contract like a multisig, the first storage slot is checked to point to the HyperCore deployer’s address. The final action is “finalization,” which ensures the correct token linkage and enables its use across both platforms.
The HYPE token, used as native gas on HyperEVM, can be transferred between HyperCore and HyperEVM without the need for additional ERC20 contracts. This movement is recorded through a specific event called “Received(address indexed user, uint256 amount).” To return to HyperCore, HYPE must be sent to the system address 0x222…2, a procedure designed to prevent asset loss during transfers.
Each token in HyperCore has its own system address, with the first byte being 0x20, and the token index is encoded in big-endian. The exception is the HYPE token, which uses the fixed address 0x222…2. This scheme simplifies asset management and minimizes allocation errors.
Hyperliquid Advises Caution to Users
Although token linking simplifies asset exchange, there may be risks associated with unverified contracts and potential discrepancies in token supply. The linked ERC20 contract must meet the established standards to avoid errors and asset loss. Additionally, improper synchronization of token supply and differences in accepted decimals can cause technical issues. Hyperliquid recommends thoroughly verifying the contract bytecode and the total balance before conducting significant transactions.
Hyperliquid’s technical update is a testament to its careful approach to security and efficiency within its DeFi infrastructure, seeking solutions that mitigate risks and optimize interoperability within its ecosystem