Fixed dynamic pricing for post tokens #13284
Open
+12
−19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Changes
Fixes post token dynamic pricing. Uses sigmoid function
Test Plan
Launch first post token, check how much it costs to buy an additional token.
Buy some more post token to increase price
Launch second post token, check that it costs more than step 1 to buy additional token.
Test Results
Same price, different burn amounts
Scenario 1, same token price, different burn amounts. Attempting to purchase 1 token.
Burning 1 token to launch

Burning 100000 tokens to launch:

Scenario 2, different token prices, same burn amounts. Attempting to purchase 1 token.
Burning 1 token to launch, 0.01 eth worth bought of launchpad token

Burning 1 token to launch, 1.01 eth worth bought of launchpad token. (USD price 1.5781583953784997e-7, connector weight 48851)
