hashport-validator icon indicating copy to clipboard operation
hashport-validator copied to clipboard

Merkle Tree Implementation for Wrapped-to-Wrapped Portal Transfers

Open Petyo-Lukanov opened this issue 3 years ago • 0 comments

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.

Petyo-Lukanov avatar Jan 10 '22 11:01 Petyo-Lukanov