Skip to content

Commit

Permalink
feat: easier ramping condition
Browse files Browse the repository at this point in the history
Previous versions of cryptoswap had an eoa controlling the ramping so a more conservative condition was used to prevent multiple ramps in short time frames. Now that pools are controlled by the DAO this becomes much harder since consecutive ramps would require a chain of votes so we can simplify the ramping condition.
  • Loading branch information
AlbertoCentonze committed May 22, 2024
1 parent 4b94716 commit 866759c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/main/CurveTwocryptoOptimized.vy
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ def ramp_A_gamma(
@param future_time The timestamp at which the ramping will end.
"""
assert msg.sender == factory.admin() # dev: only owner
assert block.timestamp > self.initial_A_gamma_time + (MIN_RAMP_TIME - 1) # dev: ramp undergoing
assert block.timestamp > self.future_A_gamma_time # dev: ramp undergoing
assert future_time > block.timestamp + MIN_RAMP_TIME - 1 # dev: insufficient time

A_gamma: uint256[2] = self._A_gamma()
Expand Down

0 comments on commit 866759c

Please sign in to comment.