From 62cac91ae0f6fa18d711c6ff7acf6e592638e384 Mon Sep 17 00:00:00 2001 From: "Mark.B" Date: Tue, 20 Aug 2024 19:53:48 +0200 Subject: [PATCH 1/3] implement new values for oracle for one month per GY suggestions --- src/PriceOracle.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PriceOracle.sol b/src/PriceOracle.sol index 5f670f46..f5a685d4 100644 --- a/src/PriceOracle.sol +++ b/src/PriceOracle.sol @@ -28,12 +28,12 @@ contract PriceOracle is AccessControl { uint32 public minimumPriceUpscaled = 24000 << 10; // we upscale it by 2^10 // The priceBase to modulate the price - uint32 public priceBase = 524288; + uint32 public priceBase = 1048576; uint64 public currentPriceUpScaled = minimumPriceUpscaled; // Constants used to modulate the price, see below usage - uint32[9] public changeRate = [524324, 524315, 524306, 524297, 524288, 524279, 524270, 524261, 524252]; + uint32[9] public changeRate = [1049417, 1049206, 1048996, 1048786, 1048576, 1048366, 1048156, 1047946, 1047736]; // Role allowed to update price bytes32 public immutable PRICE_UPDATER_ROLE; From d118419d03413ec45194c01d9e363470ccaab371 Mon Sep 17 00:00:00 2001 From: "Mark.B" Date: Fri, 6 Sep 2024 18:34:46 +0200 Subject: [PATCH 2/3] change tests values --- test/PriceOracle.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/PriceOracle.test.ts b/test/PriceOracle.test.ts index 674896f4..739cca1b 100644 --- a/test/PriceOracle.test.ts +++ b/test/PriceOracle.test.ts @@ -16,7 +16,7 @@ before(async function () { others = await getUnnamedAccounts(); }); -const changeRate = [524324, 524315, 524306, 524297, 524288, 524279, 524270, 524261, 524252]; +const changeRate = [1049417, 1049206, 1048996, 1048786, 1048576, 1048366, 1048156, 1047946, 1047736]; const roundLength = 152; const errors = { From 90a0fae9aa4f20cc98caebcf2d820ec19acae65a Mon Sep 17 00:00:00 2001 From: "Mark.B" Date: Fri, 6 Sep 2024 18:41:05 +0200 Subject: [PATCH 3/3] fix oracle values in redis as well --- test/Redistribution.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Redistribution.test.ts b/test/Redistribution.test.ts index 2c8e8d51..c0c60d22 100644 --- a/test/Redistribution.test.ts +++ b/test/Redistribution.test.ts @@ -38,7 +38,7 @@ const { read, execute } = deployments; const phaseLength = 38; const roundLength = 152; -const increaseRate = [524324, 524315, 524306, 524297, 524288, 524279, 524270, 524261, 524252]; +const increaseRate = [1049417, 1049206, 1048996, 1048786, 1048576, 1048366, 1048156, 1047946, 1047736]; // round anchor after startRoundFixture() const round2Anchor = '0xac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b';