hashport-validator
hashport-validator copied to clipboard
Merkle Tree Implementation for Wrapped-to-Wrapped Portal Transfers
High-level spec link
The goal is to use a Merkle tree to store the validator's fees for the EVM wrapped to wrapped transfers and collect them manually on a request.
The user wants to bridge a wrapped token from one EVM network to another without a transfer on the native EVM network. The user will call the burn on the source chain. The fee will be calculated and the mint (requested amount - fee) will be executed on the target chain.
For example - The user wants to bridge the 1.5 WMATIC tokens from Ethereum (burn all of the 1.5) if the fee is 33% then 0.5 MATIC will stay locked on Polygon (native network) and 1 will go to Avalanche (mint) without the need for transfer of a Polygon MATIC (native) token. We aim to collect the 0.5 locked tokens and send them to each validator from the native (Polygon) network.