Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Nov 8, 2023
1 parent 19ff82a commit 5d643a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/main/CurveStableSwapNGAOracle.vy
Original file line number Diff line number Diff line change
Expand Up @@ -1170,8 +1170,8 @@ def _A() -> uint256:
uint256
)

assert fetched_A < A_PRECISION * MAX_A # dev: fetched A is too high
assert fetched_A > A_PRECISION # dev: fetched A is too low
assert fetched_A <= A_PRECISION * MAX_A # dev: fetched A is too high
assert fetched_A >= A_PRECISION # dev: fetched A is too low

return fetched_A

Expand Down Expand Up @@ -1829,7 +1829,7 @@ def set_A_oracle(_oracle: address, _method_id: bytes4):
"""
@notice Set the address and method id of the external contract that
governs Amplification Factor
@dev Only settable by the Pool Manager. Pool manager can change A oracle whenever.
@dev Only settable by the Pool Manager once.
"""
assert POOL_MANAGER == tx.origin # dev: only pool manager
assert self.A_oracle == 0 # dev: A_oracle already set
Expand Down

0 comments on commit 5d643a6

Please sign in to comment.