olympus
AMM k: is it a constant (if so, what value) or is it updating every step?
self.k = prev_day.price and ((prev_day.liq_usd - self.reserves_in)**2 / prev_day.price) * (1 + self.reward_rate)**2 or 0
((prev_day.liq_usd - self.reserves_in)**2 / prev_day.price) * (1 + self.reward_rate)**2
? Why is there a reward_rate term?When calculating the bid/ask capacity (cushion), what does this term (self.k * self.lower_target_cushion) ** (1/2)
mean?
For example:
When calculating the bid/ask capacity (cushion), are those offers of bonds / swapping opportunities all being actualized? Or the amount being actualized is randomized by net_flow
?
Calculation regarding treasury reserves seems have a bug?
Treasury owned liquidity, in usd:
Then, treasury reserve:
Combined with liquidity, we can see that:
reserve = previous_day.reserve - (-2reserves_in + bid_change_usd - ask_change_usd) = previous_day.reserve - bid_change_usd + ask_change_usd + 2reserves_in
Wondering the term of "reserve_in" is wrong (should not be 2 times)??