Skip to content

Commit

Permalink
task: new values for oracle (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError authored Oct 11, 2024
1 parent c7ba4b7 commit a39a031
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/PriceOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/PriceOracle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion test/Redistribution.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit a39a031

Please sign in to comment.