Skip to main content
9 events
when toggle format what by license comment
Dec 29, 2023 at 7:19 history edited Ademola CC BY-SA 4.0
added 653 characters in body
Dec 29, 2023 at 7:17 comment added Ademola Sounds interesting! I'll update my answer to take into account the additional context you've just provided. If you don't mind, can you also do the same for your question?(Kindly indicate that it's an edit).
Dec 29, 2023 at 3:10 comment added Kise My apologies, I didn't understand your answer well, as I thought the 10MB max size only applies to the regular account, not PDA. Now that I got it, I think it's a very solid idea. Thank you very much!
Dec 29, 2023 at 2:47 comment added Kise There's more to it but hopefully you get why I need to access this information on-chain. I've been searching around but it looks like this use case is not very popular on Solana.
Dec 29, 2023 at 2:41 comment added Kise So with that requirements I need to keep track of A, B, C, along with their purchases. And that's just 3 users, imagine there's a lot of users involved which cannot be estimated.
Dec 29, 2023 at 2:39 comment added Kise Thanks for the reply. I don't think increasing the data size would work as there is a size limit (10MB iirc) so it'll run out eventually. My dApp is a presale contract, which allows users to purchase my token with SOL. The part I'm struggling with is I need to modify the amount of token an user receives based on how much OTHER users purchase. For example: - User A and B both purchase 50 SOL, which amounts to 50 tokens; - User C purchases 200 SOL, crossing a threshold of 100 SOL. The excessive SOL will be distributed to all users below that threshold (in this case A and B).
Dec 28, 2023 at 19:38 history edited Ademola CC BY-SA 4.0
Provided extra information
Dec 28, 2023 at 19:33 history edited Ademola CC BY-SA 4.0
added 42 characters in body
Dec 28, 2023 at 19:25 history answered Ademola CC BY-SA 4.0