Third Party Sponsoring Fees #935
Replies: 2 comments 2 replies
-
I think It may not be a good idea to sponsor the relayer fee with the current |
Beta Was this translation helpful? Give feedback.
-
I think what I'm most concerned about is how to handle the |
Beta Was this translation helpful? Give feedback.
-
Summary
Third parties (i.e. chain teams) can fund a
Vault
that will pay the liquidity and relayer fee (up to a cap) in for each transfer. This will allow them to create free onboarding onto their chain via subsidies, and give our users a better UX by (1) covering fees and (2) providing them with gas on the chain immediately.Motivation
Allowing third parties to sponsor transfers would create an opportunity for domain teams to support free bridging. Coupled with providing liquidity incentives for routers who support the domain, this creates an easy onboarding incentive program and experience.
With nomad, we are able to be the default bridge on many new domains as they launch, and allowing domain teams to sponsor transfers and liquidity would be the base for a great incentive program.
Design Requirements
relayerFee
for each transferliquidityFee
for each transferProposed Solution
There is a whitelist that contains a
Vault
address on the domain. TheVault
is a contract that can be funded by the sponsor, and has the following interface:Then, a crosschain transfer would look like:
xcall
with a specified destination domain (domain is offering rewards)relayerFee
is specifiedexecute
is called on destination domainexecute
, a whitelist is checked to see if the current domain is offering rebates. The whitelist is amapping(uint32 => Vault)
onlyOwner
functionreimburseLiquidityFees
that sends that amount to the routers liquidity if the asset is supported. If not, this fee is still levied against the user.reimburseRelayerFees
that converts the specifiedrelayerFee
provided by the user into the native asset of the destination domain and sends it back to theto
relayerFee
is still sent to the relayer in the expected assetPseudocode of
execute
:Domain Requirements
Test Cases
Open Questions
Vault
adds gas that will be paid by the relayer, should the vaults be aware of this and add a premium on top of the estimated fees?Tasks
Vault
with logic for reimbursements, ability to fund, and ability to configure dexes/oraclesexecute
Beta Was this translation helpful? Give feedback.
All reactions