helix-bridge / contracts

MIT License
7 stars 3 forks source link

relayer sign the fee for some special bridge(to ethereum) #58

Open xiaoch05 opened 6 months ago

xiaoch05 commented 6 months ago

current the relayer's fee is fixed in the contract LnBridgeSource, and when the cost of the relay tx on target chain updated, the relayer need to send a tx to source chain to update the fee charge from users. This may cause many update txs when the gasPrice change frequently on the target chain. Solution: Relayer sign the bridge fee for user to send cross-chain tx. This fee has an expire time to protect relayer.