From 866759c9645ddc25248c84703a3721f600e76c3d Mon Sep 17 00:00:00 2001 From: Alberto Date: Wed, 22 May 2024 17:31:39 +0200 Subject: [PATCH] feat: easier ramping condition 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. --- contracts/main/CurveTwocryptoOptimized.vy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/main/CurveTwocryptoOptimized.vy b/contracts/main/CurveTwocryptoOptimized.vy index 1cba540e..8deb2e79 100644 --- a/contracts/main/CurveTwocryptoOptimized.vy +++ b/contracts/main/CurveTwocryptoOptimized.vy @@ -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()