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

fix sell coin issue #50

Closed
wants to merge 4 commits into from

Conversation

mubarak23
Copy link

@mubarak23 mubarak23 commented Aug 22, 2024

PR base on issue: #47

@mubarak23
Copy link
Author

@MSghais kindly review this,

llet me know what is missing

@MSghais MSghais self-requested a review August 22, 2024 16:27
Copy link
Member

@MSghais MSghais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some comments to change

@@ -1060,6 +1062,15 @@ mod LaunchpadMarketplace {
let pool_coin = self.launched_coins.read(coin_address);
let total_supply = pool_coin.total_supply.clone();
let current_supply = pool_coin.token_holded.clone();
if (!is_decreased) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's not the correct condition, this is the formula for the is_decreased == true no?

Also, can you delete the parenthesis? Not needed in Rust/Cairo I think

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see

@MSghais MSghais closed this Sep 3, 2024
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.

2 participants