primitivefinance / portfolio

Portfolio is an automated market making protocol for implementing custom strategies at the lowest cost possible.

Home Page:https://www.primitive.xyz/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect getSpotPrice

Alexangelj opened this issue · comments

if (reserveXPerWad >= upperBoundX) return self.strikePriceWad; // Terminal price limit.

If x has reached its upper bound, it should return a 0 price.

On it!

Note that is function is not relied upon in the codebase, it's only exposed to make it easier to get information from the pool.