-
Notifications
You must be signed in to change notification settings - Fork 4
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
Alternate reweighting formula #21
Comments
Ah. Yes, this was what I considered initially. But, we start running weight bound issues. This doesnt let the weights grow / shrink enough with AMPL marketcap changes.
Say you start with initial weights Using the geometric mean lets use space of weights more completely .. |
Hm, I see, interesting, thanks. |
Yea that makes sense. For a n token pool we'll still have to loop over to find the min/max? It could be cheaper than the square root though. Let me know if you try .. The current implementation still runs into bound issues.. but what you describe shouldn't .. I think |
Hi,
I’ve been looking into this dynamic weight pools, really interesting.
I wonder what would be the problem of using this alternate approach: leave all weights the same except Ampleforth’s one, which would be the target. I.e.:
Maybe I’m missing something, but if it works, the advantage would obviously be that it’s much simpler, in particular avoids the need for square roots, which is problematic in Solidity.
If we call
y = x/100
, before we had:while now we would have
So if we divide
w_ampl_new / w_ti_new
, in both cases we get1+y
(which is the supply change), meaning that he proportion between weights will be the same, and I think that’s what we want to ensure in the new approach. In particular, that means that prices will be the same too with the new approach.Let me know if I’m missing something, and in that case, I would love to get more context of why that original approach with the geometric mean instead of the target was chosen.
Thanks.
The text was updated successfully, but these errors were encountered: