Skip to content

Commit

Permalink
fix: use _stored_rates() in get_p()
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Sep 16, 2023
1 parent 8a8d2e7 commit 34535cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/implementations/plain-2/Plain2Price.vy
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def _get_p(xp: uint256[N_COINS], amp: uint256, D: uint256) -> uint256:
@view
def get_p() -> uint256:
amp: uint256 = self._A()
xp: uint256[N_COINS] = self._xp_mem(self.rate_multipliers, self.balances)
xp: uint256[N_COINS] = self._xp_mem(self._stored_rates(), self.balances)
D: uint256 = self.get_D(xp, amp)
return self._get_p(xp, amp, D)

Expand Down

0 comments on commit 34535cf

Please sign in to comment.