How can I handle multiple token deposits and refunds in a Solidity IFO contract? #139481
Replies: 4 comments
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Great question! Here's how you can approach this: 1. Setting Target Amounts: 2. Refund Logic: 3. User Trust: A public dashboard showing live progress toward the funding targets. |
Beta Was this translation helpful? Give feedback.
-
Setting Target Amounts: Refund Logic: |
Beta Was this translation helpful? Give feedback.
-
Please see this comment for reference to why this discussion was closed and locked. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Product Feedback
Body
I'm currently working on an Initial Farm Offering (IFO) smart contract in Solidity that supports multiple token deposits (e.g., ETH-USDT LP tokens or USDT-DAI LP tokens). I need advice on the best approach for managing the following:
1. Setting target amounts: Should I set specific target amounts for each token pair or handle the total across all deposits?
2. Refund logic: How should I handle refunds if the target is not met? Is there a best practice for calculating refunds when multiple tokens are involved?
3. User trust: What strategies can be employed to build user trust in the refund process, especially in cases where partial deposits are refunded?
Any insights or suggestions for optimizing gas costs and security in this scenario would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions