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

Price decrease mint #174

Open
CoftheTMP opened this issue Oct 29, 2024 · 9 comments
Open

Price decrease mint #174

CoftheTMP opened this issue Oct 29, 2024 · 9 comments

Comments

@CoftheTMP
Copy link
Collaborator

Tuesday evening, Prices 230. Thresholds changed to 1 and 2 days. So on Friday, the next mint should go up at 220
image

@CoftheTMP
Copy link
Collaborator Author

Ok! I've minted a batch after 25 hours and its come out the same price... This is exactly what we would hope for.

Still need to wait 24 hours longer and see if we can get a price decrease
1, I'll try minting another batch without a purchase
2, I'll try purchasing a batch, knowing the sale took over 2 days, and then mint a batch
3, I'll then wait another 25 hours and mint another batch.

This will complete this test.

image

@CoftheTMP
Copy link
Collaborator Author

Ok, I've minted a new batch without buying any. It has come out at 210. This is the first lower mint!! Wooo!
Now I expected it to be 220, not 210, so I'm curious what is happening. It seems like it might be decreasing by the Price Adjustmet Delta every single day after the threshold, so accumulating decrease. So I'm going to wait another day. And mint another batch WITHOUT buying any.

image

@CoftheTMP
Copy link
Collaborator Author

Will the next mint be 210, or 200?? I'll test tomorrow

@CoftheTMP
Copy link
Collaborator Author

Ok I've minted another batch it has come out at 210 again. Which is good, because once one is minted, you don't want it to decrease again for the next mint. I suppose I need to wait again 2 days?
image

@orpheuslummis
Copy link
Owner

The price is indeed decreasing by the Price Adjustment Delta (10 USDC) for each day after the threshold (4 days), which is why you're seeing the price drop to 210 instead of 220.

Here's how it works:

  1. Starting price was 230 USDC
  2. After 4 days (threshold), nothing happens
    1. On day 5 (1 day over threshold): -10 USDC
  3. On day 6 (2 days over threshold): -10 USDC more
  4. So total decrease: -20 USDC, bringing it to 210 USDC

If you mint another batch tomorrow without any purchases, it will decrease by another 10 USDC (to 200 USDC), and so on until it hits the price floor (40 USDC).

If you'd like to mitigate the price decrease rate, you can use the existing admin functions to adjust parameters like priceAdjustDelta or dayDecreaseThreshold.

Given the development budget the code can't be adjusted (by me) further unless critical bug is found.

@CoftheTMP
Copy link
Collaborator Author

So new mint today, came out at £210. We thought it might be £200, maybe if I wait until a little later I will be able to mint at £200.
image

@CoftheTMP
Copy link
Collaborator Author

Ok, no problem so just to check.
If the purchase time is Greater than the threshold, the new mint would just be the Price Adjustment Delta lower?

Or
does is mint for 10 higher for every day before the threshold and
10 lower for every day after the decrease threshold?

Or
Does it only mint 10 higher if its below the threshold,
and
10 less multiplied by the number of days after the threshold that it is minted?

@CoftheTMP
Copy link
Collaborator Author

Ok so the new mint batch is $200.

image

@CoftheTMP
Copy link
Collaborator Author

Batch 9 200$
image

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

No branches or pull requests

2 participants