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

Baseline Callback Fixes #24

Merged
merged 14 commits into from
Sep 10, 2024
Merged

Baseline Callback Fixes #24

merged 14 commits into from
Sep 10, 2024

Conversation

0xJem
Copy link
Collaborator

@0xJem 0xJem commented Aug 30, 2024

  • Fix: provide pool target tick to Baseline callbacks
  • Adjust maximum floorReservesPercent to 99%
  • Fixes the CI build by adding SSH key authenticated to check out the Baseline repo
  • Linting (due to forge fmt changes)

@0xJem 0xJem self-assigned this Aug 30, 2024
revert Callback_Params_InvalidPoolTargetTick(anchorRangeLower, anchorRangeUpper);
}
poolTargetTick = cbData.poolTargetTick;

// Set the anchor range
Copy link

Choose a reason for hiding this comment

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

another useful check would be to ensure the pools active tick == poolTargetTick

Copy link

Choose a reason for hiding this comment

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

but should be fine without it.

Copy link
Contributor

Choose a reason for hiding this comment

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

This can be DoS'd by moving it prior to auction creation, which is the same reason we pass it in instead of reading from the pool.

@0xJem 0xJem changed the title Fix: provide pool target tick to Baseline callbacks Baseline Callback Fixes Sep 4, 2024
@0xJem
Copy link
Collaborator Author

0xJem commented Sep 4, 2024

All tests passing

@0xJem 0xJem requested a review from Oighty September 4, 2024 08:14
@Oighty Oighty merged commit 5c0b6a0 into develop Sep 10, 2024
1 check passed
@0xJem 0xJem deleted the fix/baseline-target-price branch September 11, 2024 06:41
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.

3 participants