Skip to content

Commit

Permalink
lint: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xenide committed Nov 18, 2024
1 parent 33218e2 commit bc0e657
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
8 changes: 4 additions & 4 deletions script/optimized-deployer-meta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"constant_product_hash": "0xbd78fb88c65e9a8804773c3a0e0350627ae244d6daf312a549fc1e08ef9bf56e",
"factory_hash": "0x84e232ec0f6ea2ec4c9e4cfa7e5469dab805cb65ffaab4a7ee9c7c602f91345a",
"oracle_caller_hash": "0xed0f7d96dcba353321d583022005b03c09088f7de3800703dc8324b1da6c77a6",
"stable_hash": "0x24174b50e2a4c46e25d5367496b6a2ca38bf33dceb07ef3aba32e2c1266a6bf1"
"constant_product_hash": "0xcca943b7eec19aae52ad87aeca4df38893019d58384e4882eb5a1e6a6194f81a",
"factory_hash": "0x24b019b4c3d3f659b456d9bf80771f46628e18807869d97904e329ec2879ddbc",
"oracle_caller_hash": "0x29eabcba90aca48a9c998425e3fbdeeb83836a29178fbeb199c41b2ff504f0b1",
"stable_hash": "0xa66d1a8660918ddf22e0735671b7c38b0ab793af9639b5c6359af0b606681b9e"
}
8 changes: 4 additions & 4 deletions src/ReservoirDeployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ contract ReservoirDeployer {
uint256 public step = 0;

// Bytecode hashes.
bytes32 public constant FACTORY_HASH = bytes32(0xae59efa1baf1113957e748f189c8eb9271c4a0d919c8af03d26ae4fbddb51e81);
bytes32 public constant FACTORY_HASH = bytes32(0x24b019b4c3d3f659b456d9bf80771f46628e18807869d97904e329ec2879ddbc);
bytes32 public constant CONSTANT_PRODUCT_HASH =
bytes32(0x356ae496acb4119a46481b3326102cb38281aad285e579d14598f6c5bb76f5e2);
bytes32 public constant STABLE_HASH = bytes32(0xa4bb872f2e22f611d0fd1ff88d960edc58283528282cb20aab4fbe14da557300);
bytes32(0xcca943b7eec19aae52ad87aeca4df38893019d58384e4882eb5a1e6a6194f81a);
bytes32 public constant STABLE_HASH = bytes32(0xa66d1a8660918ddf22e0735671b7c38b0ab793af9639b5c6359af0b606681b9e);
bytes32 public constant ORACLE_CALLER_HASH =
bytes32(0xf130f5cb7eebcf57bac9f5d273fd8cc18dfb1b3f48d114a5e6a8230440d50e0f);
bytes32(0x29eabcba90aca48a9c998425e3fbdeeb83836a29178fbeb199c41b2ff504f0b1);

// Deployment addresses.
GenericFactory public factory;
Expand Down
2 changes: 1 addition & 1 deletion test/integration/Aave.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ contract AaveIntegrationTest is BaseTest {
_stepTime(5000);
uint256 lBalAfterTimePair = _manager.getBalance(_pair, USDC);
uint256 lBalAfterTimeOther = _manager.getBalance(lOtherPair, USDC);
uint256 lClaimed = _manager.claimRewardForMarket(lUSDCMarket, lWavax);
_manager.claimRewardForMarket(lUSDCMarket, lWavax);
// commenting out for now as AAVE is not currently giving out additional AVAX rewards
// assertGt(lClaimed, 0);
// dummy amount of proceeds from selling the rewards
Expand Down
2 changes: 1 addition & 1 deletion test/interfaces/IUSDC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ^0.8.0;

interface IUSDC {
function masterMinter() view external returns (address);
function masterMinter() external view returns (address);
function mint(address dst, uint256 amount) external;
function configureMinter(address minter, uint256 minterAllowedAmount) external returns (bool);
}
3 changes: 0 additions & 3 deletions test/unit/OracleWriter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -566,14 +566,11 @@ contract OracleWriterTest is BaseTest {
// but clamped price is at 2.98M
assertApproxEqRel(LogCompression.fromLowResLog(lObs.logInstantClampedPrice), 2_984_969e18, 0.01e18);

uint256 lTimeStart = block.timestamp;
while (LogCompression.fromLowResLog(lObs.logInstantClampedPrice) > 3495e18) {
_stepTime(30);
lCP.sync();
(,,, lIndex) = lCP.getReserves();
lObs = _oracleCaller.observation(lCP, lIndex);
console.log(LogCompression.fromLowResLog(lObs.logInstantClampedPrice));
}
console.log("it took", block.timestamp - lTimeStart, "secs to get the clamped price to the true price");
}
}

0 comments on commit bc0e657

Please sign in to comment.