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
It is indeed misleading, that's why the method has such a clunky name. But
it is actually super helpful for application development as you can pretty
much hide the whole SOL wrap & unwrap from the react frontend code this
way. All the logic to actually handle wrap & unwrap would lie in easy-spl,
and the ui code can just call transfer or getBalance etc.
Below is an example I wrote. We use this as a convenience method to populate drop downs for deposits.
https://github.com/blockworks-foundation/mango-client-v3/blob/main/src/token.ts#L24
The text was updated successfully, but these errors were encountered: