-
Notifications
You must be signed in to change notification settings - Fork 33
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
Launchpad fix sell_coin #47
Comments
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI am a smart contract developer, and i can work on the issue |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI'm a smart contract developer How I plan on tackling this issueUse the bonding curve to determine how many tokens the user can sell for the given quote amount. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI'm Poulav Bhowmick, a software engineer at Invisible Studios with a robust background in TypeScript, Rust, Solidity Cairo, fullstack development and blockchain technology. My experience includes building robust applications, optimizing functionalities and blockchain integration. I have actively participated in events and open source contributions, enhancing my capability to tackle real-world tech challenges. My projects can be viewed on my GitHub Profile and OnlyDust Profile. Plus I´m active member of Starknet community🇷. How I plan on tackling this issueI'll address the issue with the sell_coin function by implementing the following steps: Calculate Sellable Tokens: I'll first calculate the amount of tokens that can be sold based on the quote_amount provided. This calculation will take into account the bonding curve formula, ensuring that the correct number of tokens is derived from the quoted amount. Before proceeding with the sale, I'll add a verification step to ensure that the user has already purchased the corresponding amount of tokens. This will involve checking the user's share in the contract state and confirming that the amount they wish to sell does not exceed their purchased balance. Once the sale is validated, I'll update the relevant contract states. This includes: After successfully updating the states, I'll ensure that appropriate events are emitted to reflect the transaction. This will include details like the amount sold, the price received, and the fees deducted. I'll also write unit tests to verify the correctness of the sell_coin function with various edge cases, including scenarios where the user attempts to sell more tokens than they own or where the bonding curve might affect the pricing. ETA- 1-2 days |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI am a Cairo smart contract developer with experience working on projects such as Just Art Peace, Dojo, Kart, TBA, and Shinigami. Before transitioning to Cairo development, I was a backend developer specializing in Rust. My recent work with cairo starknet
How I plan on tackling this issuei should complete this in 1 DAYS |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI have experience in Cairo and smart contract development, including implementing and refining functionality in complex systems. I would approach this problem by:
How I plan on tackling this issueTo address the issue with the
|
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI am a blockchain developer How I plan on tackling this issueI would approach this issue with following steps Calculating the Correct Sellable Token Amount: |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedHi, I am a cairo dev with experience contributing to lots of other cairo projects, you can check my profile to confirm this. How I plan on tackling this issue
|
The maintainer MSghais has assigned mubarak23 to this issue via OnlyDust Platform. |
Gm! I appreciate the description and the ETA etc in your application! Just assigned one other person that's want to work on Cairo side before you (we discuss it) Can you the AFK TG group please https://t.me/afk_aligned_fam_kernel? Also ping me in TG, my handle is MSG_Encrypted. We can discuss other issues incoming in the Contract side for Cairo and Solidity |
https://diwakar-portfolio.vercel.app/ i want to work on this issue |
Hi @DIWAKARKASHYAP! |
I will like to work on this |
hey, im willing to work on this issue. |
Hi @MSghais ! |
Fix sell coin to get the correct amount with the bonding curve, the token already buy.
The sell function need to:
Located here:
afk_monorepo/onchain/cairo/src/launchpad/launchpad.cairo
Line 571 in de78fee
The text was updated successfully, but these errors were encountered: