Skip to content

Commit 5dbf505

Browse files
committed
Silence compiler warnings
1 parent 0a85fb2 commit 5dbf505

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/Aggor.sol

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ contract Aggor is IAggor, IToll, Auth {
125125
uniswapBaseTokenDecimals = uniswapBaseTokenDecimals_;
126126
uniswapLookback = uniswapLookback_;
127127

128-
// Emit event indicating address(0) and _bud are tolled.
128+
// Emit events indicating address(0) and _bud are tolled.
129129
// Note to use address(0) as caller to indicate address was toll'ed
130130
// during deployment.
131131
emit TollGranted(address(0), address(0));
@@ -262,6 +262,7 @@ contract Aggor is IAggor, IToll, Auth {
262262

263263
return (true, uint128(val));
264264
} catch {
265+
// assert(!IToll(chronicle).tolled(address(this)));
265266
return (false, 0);
266267
}
267268
}
@@ -423,12 +424,18 @@ contract Aggor is IAggor, IToll, Auth {
423424
/// @inheritdoc IToll
424425
/// @dev Function is disabled!
425426
function kiss(address who) external view auth {
427+
// No-op to silence compiler warnings.
428+
require(who == address(0) || who != address(0));
429+
426430
revert();
427431
}
428432

429433
/// @inheritdoc IToll
430434
/// @dev Function is disabled!
431435
function diss(address who) external view auth {
436+
// No-op to silence compiler warnings.
437+
require(who == address(0) || who != address(0));
438+
432439
revert();
433440
}
434441

@@ -475,7 +482,7 @@ contract Aggor_BASE_QUOTE_COUNTER is Aggor {
475482
// @todo ^^^^ ^^^^^ ^^^^^^^ Adjust name of Aggor instance
476483
constructor(
477484
address initialAuthed,
478-
address oracle_,
485+
address bud_,
479486
address chronicle_,
480487
address chainlink_,
481488
address uniswapPool_,
@@ -488,7 +495,7 @@ contract Aggor_BASE_QUOTE_COUNTER is Aggor {
488495
)
489496
Aggor(
490497
initialAuthed,
491-
oracle_,
498+
bud_,
492499
chronicle_,
493500
chainlink_,
494501
uniswapPool_,

test/mocks/UniswapPoolMock.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ contract UniswapPoolMock {
5555
view
5656
returns (int56[] memory, uint160[] memory)
5757
{
58+
// No-op to silence compiler warnings.
59+
require(secondsAgo.length != 0 || secondsAgo.length == 0);
60+
5861
int56[] memory tickCumulatives = new int56[](2);
5962
uint160[] memory secondsPerLiquidityCumulativeX128s = new uint160[](2);
6063

0 commit comments

Comments
 (0)