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

Last buyer should get reduced amout of how much token are left #78

Open
martinkrung opened this issue Jun 21, 2021 · 1 comment
Open
Labels
enhancement New feature or request fixed price V2 deploy after audit

Comments

@martinkrung
Copy link
Member

No description provided.

@martinkrung martinkrung added enhancement New feature or request fixed price V2 deploy after audit labels Jun 21, 2021
@martinkrung martinkrung added this to the Extended Product - Next Version milestone Jun 21, 2021
@martinkrung
Copy link
Member Author

If a buyTokens call is going over the amount of total token it fails. Better would be reducing to what's left, so tokensForSale is maxed out.

https://github.com/cryptonative-ch/mesa-smartcontracts/blob/cabdc1682dd3a7754938c30aee30f47d1aa7284a/contracts/sales/FixedPriceSale.sol#L141

Screenshot at 2021-06-21 16-30-40.png

@rossneilson rossneilson modified the milestones: Extended Product - Next Version, Extended Product - Vision Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed price V2 deploy after audit
Projects
None yet
Development

No branches or pull requests

2 participants