Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task: new values for oracle #268

Merged
merged 3 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading