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
Basically, we should let user got near directly when he withdraw wrapped-near. Now, this feature is implemented at frontend. It raise our ref withdraw. followed by a wrap.near::near_deposit action when it recognizes the token is wnear. But these chain transactions has a little probability that can be interrupted by accident like page close or temp network failure.
Actually, there is a way to get these two actions done in our ref contract level. That is, when user withdraw wnear, we first unwrap it as ref-contract and got near back in ref-contract account, and then transfer those native near from ref-contract to user's account. In that way, all work can be done in one contract call to the ref-contract with a total success or failure, nothing can interrupt the two actions due to the powerful NEAR cross-contract call technique.
The text was updated successfully, but these errors were encountered:
Basically, we should let user got near directly when he withdraw wrapped-near. Now, this feature is implemented at frontend. It raise our ref withdraw. followed by a wrap.near::near_deposit action when it recognizes the token is wnear. But these chain transactions has a little probability that can be interrupted by accident like page close or temp network failure.
Actually, there is a way to get these two actions done in our ref contract level. That is, when user withdraw wnear, we first unwrap it as ref-contract and got near back in ref-contract account, and then transfer those native near from ref-contract to user's account. In that way, all work can be done in one contract call to the ref-contract with a total success or failure, nothing can interrupt the two actions due to the powerful NEAR cross-contract call technique.
The text was updated successfully, but these errors were encountered: