Skip to content
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

GSW-1142 feat: gns (mint with permission) + pre-calculated halving amount #247

Merged

Conversation

r3v4s
Copy link
Member

@r3v4s r3v4s commented Jul 2, 2024

feat new gns

  1. mint with permission
    -> only emission contract can call

  2. mint with pre-calculated halving amount
    2.1 every single year, we (have plan to) mint different number of gns
    2.2 from yearly amount, calculate daily amount > then calculate single block amount
    2.3 with lastMintedHeight variable, calculate amount of gns to mint to emission
    --> which makes us we don't have to mint actually every block

@dongwon8247
Copy link
Member

I'm not sure if having the GNS token contract inside the GnoSwap contracts is better than having it outside of the contracts. I find most of the prominent DEXes have its tokens outside of their core contracts, like Uniswap, Ekubo etc. What is the benefit of each?

@mconcat
Copy link
Contributor

mconcat commented Jul 2, 2024

We may need to change the name of the gns_halving to something more canonical, as it can confuse the users. TBD

@r3v4s r3v4s merged commit 87a30e8 into main Jul 3, 2024
@r3v4s r3v4s deleted the GSW-1142-gns-mint-with-permission-and-pre-calculated-halving branch July 3, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants