-
Notifications
You must be signed in to change notification settings - Fork 3
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
BrainPass Nft Contract #4
base: master
Are you sure you want to change the base?
Conversation
src/BrainPass/BrainPass.sol
Outdated
uint256 maxTokens; | ||
uint256 discount; |
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.
whats maxTokens & discount?
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 think maxTokens should be the max no of NFTS that can be minted (in the case of a limited supply). and for the discount, we felt we might want to give a bit of discount to those subscribing for a long time at once(say a yr subscriptions).
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.
you mention here that the discount param is "to those subscribing for a long time at once". Code doesnt do that at all. it just apply a generic discount to price. which its the same to not having that param and reduce the price per day.
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 has never been addressed. Please review my comments before asking for a new code review
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.
third time: please remove discount. it doesnt make any sense current implementation.
if you do a 10% discount its the same that if you just reduce price by 10%.
@Emmanueldmlr did u review this contract? There are obvious bugs here like the 1e18 hardcoded and very poor testsuite. Please make sure you carefully review this things before escalates to me. This looks like a rushed contract with many security flags. A bug in the UI its something that we can easily fix, but a bug in a contract its something it will be irreversible and will damage IQ reputation. |
@kesar , those updates were pushed yesterday night which I haven't reviewed. Initially, we just wanted to get your review about the scope of the contract. I reviewed the contract personally early yesterday which I gave my review to @OleanjiKingCode after the test and I believe he's currently working on resolving them. I will ensure those issues you pointed out are fixed too. |
@kesar most of all the issues here were me correcting and then testing what @Emmanueldmlr saw yesterday and some changes haven't committed, my pc died yesternight |
ok, then @Softdev1 pls ensure you have syncd w emmanuel and both are sure code is good enough to be reviewed. I got today a message from Steve that need my input in this PR and that you already have reviewed it. If you want the scope of a contract / task I dont need to review the implementation, most likely i would need to review a readme with an interface well documented which its way easier and faster than understanding 400 LoC. 👍🏻 |
makes sense. I just see a problem of communication, lets try to get better on that so I dont waste time reviewing a partial contract, and I actually can spend enough time reviewing when you both feel its ready to go. Again, if you need my input on the functionalities you should have a proper documentation on a readme / interfaces / etc and a proper test suite that helps me to understand how it works 👍🏻 |
Okay sir will do a readme doc |
No problem sir |
@OleanjiKingCode let me know once you are done with the readme doc . |
overall looks good, just some minor improvements 👍🏻 |
Okay @kesar I'll make those changes |
Contract Description
Linked issues
closes EveripediaNetwork/issues#1358