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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Third parties (i.e. chain teams) can fund a
Vaultthat 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
relayerFeefor each transferliquidityFeefor each transferProposed Solution
There is a whitelist that contains a
Vaultaddress on the domain. TheVaultis a contract that can be funded by the sponsor, and has the following interface:Then, a crosschain transfer would look like:
xcallwith a specified destination domain (domain is offering rewards)relayerFeeis specifiedexecuteis called on destination domainexecute, a whitelist is checked to see if the current domain is offering rebates. The whitelist is amapping(uint32 => Vault)onlyOwnerfunctionreimburseLiquidityFeesthat sends that amount to the routers liquidity if the asset is supported. If not, this fee is still levied against the user.reimburseRelayerFeesthat converts the specifiedrelayerFeeprovided by the user into the native asset of the destination domain and sends it back to thetorelayerFeeis still sent to the relayer in the expected assetPseudocode of
execute:Domain Requirements
Test Cases
Open Questions
Vaultadds 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
Vaultwith logic for reimbursements, ability to fund, and ability to configure dexes/oraclesexecuteBeta Was this translation helpful? Give feedback.
All reactions