-
Notifications
You must be signed in to change notification settings - Fork 31
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
semi-fungible token #349
semi-fungible token #349
Conversation
@fiftyeightandeight Why is the |
- Test case files has bugs in imports - A change in token-wstx and token-usda get-decimals is questionable - Added mintFixed for now
USDA supports up to 6 decimals (https://github.com/arkadiko-dao/arkadiko/blob/master/clarity/contracts/usda-token.clar), hence. WBTC is a bit arbitrary, but I am thinking about standardising every token to 6 decimals to be consistent with STX (minor point is it might somewhat reduce errors in the last two digit decimals). |
@SaadTahirTintash once #324 is fixed, please let me know as we need to work through the test cases for this PR. |
Okay So I've added the mint function in the model but the test cases are not right for now. I am pushing the code which is subject to change from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to keep the scope to just reviewing things related to the semi-fungible token implementation. I like how you are using SFTs to capture all yield token variations in a single contract. Very nice.
Biggest thing is that the trait does not confirm to the latest draft of the SIP.
@@ -0,0 +1,39 @@ | |||
(define-trait semi-fungible-token-trait |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest using the trait from the SIP and then defining custom features in a separate ALEX-specific trait. This trait does not conform to the current draft which could cause issues down the line. (If it is ratified as-is.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SaadTahirTintash would you please help refactor this trait to reflect @MarvinJanssen 's comments?
…io/alex-v1 into feat/semi-fungible-token
@MarvinJanssen , as discussed, we will refactor trait to include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR feels a little stuffy, many changed files. I limited the review to just the SFT. Looks fine from what I can see.
…io/alex-v1 into feat/semi-fungible-token
closes #303