-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TASK] Support Native and PSP22 Token in the Mixer contract #40
Comments
I noticed that work on this issue has not yet started. Can I take a stab at it? In my attempt to understand what the issue requires I have a question regarding the desired interface for the mixer module. I looked at the vanchor contract and noticed that there are separate functions for dealing with native and PSP22 tokens. ref1 | ref2 |
This might be supported already but I’ll defer to Dami atm. Nonetheless
there’s difference in what you mentioned for the vanchor.
A PSP22 token is only ever deposited into the vanchor. Specifically, it is
a PSP22 token that can be minted by wrapping either a native token or
another PSP22 token (it’s configurable).
If you do see missing functionality, we always welcome PRs. Please make
sure to add tests as well to ensure that your changes work. Although, do
make sure this doesn’t exist because I thought we may already have added
this support.
…On Thu, Jul 14, 2022 at 3:10 PM Femi Bankole ***@***.***> wrote:
Hi @dharjeezy <https://github.com/dharjeezy> @dutterbutter
<https://github.com/dutterbutter>
I noticed that work on this issue has not yet started. Can I take a stab
at it?
In my attempt to understand what the issue requires I have a question
regarding the desired interface for the mixer module.
I looked at the vanchor contract and noticed that there are separate
functions for dealing with native and PSP22 tokens. ref1
<https://github.com/webb-tools/protocol-ink/blob/bf9a4fda175d0c94390c9e394c86b873927b8325/contracts/vanchor/lib.rs#L393>
| ref2
<https://github.com/webb-tools/protocol-ink/blob/bf9a4fda175d0c94390c9e394c86b873927b8325/contracts/vanchor/lib.rs#L458>
Should there be separate functions for handling native and psp22 token
depositions into, and withdrawals from the mixer?
—
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADELLFZDWVVW75XHQG4QZCTVUBQZTANCNFSM5XVCICBA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
So, @iTranscend you will need to do these:
|
Oh, great. Thanks a lot for the detailed responses @drewstone & @dharjeezy. |
We are following the PSP22 Token standard which is similar to the ERC-20. We need to ensure that the contract is able to do transfer both in native tokens and psp22 standard token.
A todo was put up here
The text was updated successfully, but these errors were encountered: