-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update supply related attributes #16
Comments
Proposal: Updates to
|
If we keep receive(msg: JettonMint){
...
if (self.max_supply != null) {
nativeThrowIf(ERROR_MAX_SUPPLY_EXCEEDED, (self.current_supply + msg.amount) > self.max_supply!!);
}
...
}
There are couple of questions, if we make this feature:
|
Good questions, If we think jettons as tokens associated with the typical token value, i believe the minting process should be restricted, transparent, and simple. But for jettons that are used for exchange of computational services, with no implied intrinsic value, then fully controlling the minting makes total sense and should be the option to go. So for a jetton with implied intrinsic value, i would personally set some minting limits such as
Implementing all options is possible, but not gas effective and increases complexity What are your thoughts on this? How would this jetton fits in your vision? |
I like limits you suggested!
I was thinking about it. I'm not 100% sure how memory management works in Tact, but in theory if
Yes it could be an issue. Probably we should described this logic in documentation. |
I was thinking of using a single token as a governance and as intrinsic value. For example holders who have more than x amount can vote or holders who have the token locked for 6 months can vote (or both) How do you see that with TON and Tact. I have more exp in ETH Edit: Not sure if a single token to handle Gov and Rewards could be the best case for TON and how the chain is setup. I'll review the best approach on this case |
I wondered about DAO and governance tokens in TON, but I couldn't find any project that would implement this using smart contracts, not regular backend. I tried to design on-chain voting based on smart contracts in Tact in that repo. I have not done yet. I am not very experienced in web3 development. I work as backend web developer and develop smart contracts for TON as hobby. So i may not have base knowledge. Why is there will be an issue with using single token for voting and for other purposes? |
I've noticed your DAO repo, i didn't have the chance to play with it yet, but since i'm wondering with DAO as well i'll probably contribute to your DAO repo at some point. On top of my head, if a single jetton and or the minter contract gets too big with functionality and state variables, the rent will increase as well. So maybe we don't want to introduce this functionality to the jetton token and pay higher rent if the user will use the voting right only 2-3 times a year. Maybe its best to have a minter of government jettons when the vote takes place (at voting action), based on the user voting power, if that makes sense. I'm still exploring and researching ideas and TON in general so this might not be the best approach, apologies if its not. |
Hi @ya7on share your thoughts when you finilise how you like this jetton to take place. I'm actively working on TON contracts with Tact ( jetton, rewards-distributor , and a DAO ) so i will revisit this repo and contribute more at some point, but i wouldn't want to contribute logic that is not aligned with your vision 😄 |
Hello, @iamIcarus. I am very grateful for your interest. I apologize for not making these things clear. I will be opening issues in repos and try to describe my vision of project there. Would this be ok for you? |
max_supply
for controlling mintable
yes, i can contribute to some of the ideas that alight to what you have in mind. This repo is well written and makes it fun to work with 😄 |
Thank you! I really appreciate you like it! |
@ya7on , i'll pick the |
Great. Thank you so much! |
In #14 it was suggested to get rid ofmax_supply
field since it's implicit. It's more explicit and more optimized for gas consumption to use a boolean mintable, which takes 1 bit instead of 256 for coins type (uint256)mintable
attribute with boolean typemax_supply
attribute. Make it optionalJettonSetParameter
Considering the following limits:
mintable
attribute that can permanently disable the mintingmax_supply
is reached (if its not set to null for unlimited), it could be increased via JettonSetParametermax_supply
to be set to null (unlimited) outside the init process (JettonInit
message)The text was updated successfully, but these errors were encountered: