You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context and scope
Teleporter takes in erc20 tokens as fees, but there are apps that interact primarily with the native token of the subnet. We shouldn't require users to hold other erc20 tokens, or need to figure out which tokens to pay relayers with.
Discussion and alternatives
Idea is to create an abstract contract that Teleporter apps can inherit from, and exchanges the native tokens held for a passed in erc20 token. For example WETH's deposit that has a 1:1 exchange. Then the Teleporter app can use the exchanged erc20 token to pay Teleporter fees.
Open questions
The abstract contract should be fixed to one erc20 token, likely passed in from constructor
How do we check if the erc20 has a deposit function?
Does deposit need to be 1:1
Should the abstract call Teleporter directly after exchange the tokens?
The text was updated successfully, but these errors were encountered:
Context and scope
Teleporter takes in erc20 tokens as fees, but there are apps that interact primarily with the native token of the subnet. We shouldn't require users to hold other erc20 tokens, or need to figure out which tokens to pay relayers with.
Discussion and alternatives
Idea is to create an abstract contract that Teleporter apps can inherit from, and exchanges the native tokens held for a passed in erc20 token. For example WETH's
deposit
that has a 1:1 exchange. Then the Teleporter app can use the exchanged erc20 token to pay Teleporter fees.Open questions
deposit
function?The text was updated successfully, but these errors were encountered: