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

feat: individual thresholds and reverse dutch auction #17

Merged
merged 17 commits into from
Aug 9, 2024

Conversation

xenide
Copy link
Contributor

@xenide xenide commented Jul 27, 2024

No description provided.

@xenide xenide requested a review from OliverNChalk July 27, 2024 22:26
@OliverNChalk
Copy link
Contributor

Is this ready to review, CI seems to be failing?

Copy link
Contributor

@OliverNChalk OliverNChalk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some reason this didnt submit ~8 hours ago when i reviewed...

src/libraries/RoutesLib.sol Outdated Show resolved Hide resolved
test/__fixtures/BaseTest.t.sol Outdated Show resolved Hide resolved
Comment on lines +138 to +139
(address[] memory lRoute,, uint256 lPrevPrice, uint256 lRewardThreshold) =
_getRouteDecimalDifferencePrice(lToken0, lToken1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(address[] memory lRoute,, uint256 lPrevPrice, uint256 lRewardThreshold) =
_getRouteDecimalDifferencePrice(lToken0, lToken1);
(address[] memory lRoute, , uint256 lPrevPrice, uint256 lRewardThreshold) =
_getRouteDecimalDifferencePrice(lToken0, lToken1);

make it more obvious you're dropping a variable

@@ -329,7 +342,7 @@ contract ReservoirPriceOracle is IPriceOracle, Owned(msg.sender), ReentrancyGuar
if (aAmount > Constants.MAX_AMOUNT_IN) revert OracleErrors.AmountInTooLarge();

(address lToken0, address lToken1) = Utils.sortTokens(aBase, aQuote);
(address[] memory lRoute, int256 lDecimalDiff, uint256 lPrice) =
(address[] memory lRoute, int256 lDecimalDiff, uint256 lPrice,) =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest maybe always putting a space after , when dropping a variable?

@xenide xenide merged commit 42e7c4a into dev Aug 9, 2024
5 checks passed
@xenide xenide deleted the feat/individual-thresholds branch August 9, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants