Replies: 1 comment
-
@mfornet In case of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a proposal to use Native NEAR token in Aurora instead of using Wrap NEAR.
Motivation
The third point can be addressed using the help of a smart contract, but still two first points remain.
Proposal
Create a contract on NEAR
IntoAurora
, and a contract on auroraNativeNear
with the following methods:Workflow
NEAR -> Aurora
One single call is enough to make the transfer effective:
IntoAurora.deposit(target, {attached_near: amount})
Aurora -> NEAR
Transfer the tokens to the implicit address controlled by the target account on NEAR.
`NativeNear.send(target, amount)
Withdraw the tokens
IntoAurora.withdraw(target, amount)
Improved UX for withdrawals
The previous described workflow, will require that the tokens are sent first to the implicit account of the NEAR account id receiving the tokens. Manage ERC20 tokens from such an account is a problem if the transfer is stopped mid-way. Instead of forcing this approach, we can allow burning the tokens owned by address A, from address B, if B has enough allowance to support this. In this case, a call needs to be scheduled anyway to approve the tokens, but the tokens are not sent before hand.
Ethereum <> Aurora transfers
Ethereum -> Aurora
To send $NEAR from Ethereum to Aurora, approach allowing transfer call is used, and the deposit function is invoked.
Aurora -> Ethereum
This will require a new withdrawal method that supports doing a function call after the withdrawal is successful (similar to ft_transfer_call from FT Standard).
Beta Was this translation helpful? Give feedback.
All reactions