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

Optimization/weekly 0328 #9

Merged
merged 4 commits into from
Apr 9, 2024
Merged

Optimization/weekly 0328 #9

merged 4 commits into from
Apr 9, 2024

Conversation

chefburger
Copy link
Collaborator

Context

Some updates from weekly discussion:

  1. inline literal number for src/libraries/SettlementGuard.sol
  2. uniform the swap fee boundry check rule (allow swap fee 100%)

uint256 constant UNSETTLED_DELTAS_COUNT = uint256(keccak256("SETTLEMENT_UNSETTLEMENTD_DELTAS_COUNT")) - 1;
uint256 constant CURRENCY_DELTA = uint256(keccak256("SETTLEMENT_CURRENCY_DELTA")) - 1;
// uint256 constant LOCKER_SLOT = uint256(keccak256("SETTLEMENT_LOCKER")) - 1;
uint256 constant LOCKER_SLOT = 0xedda7c051899c54dd66eaf5e13c031326ab4729812a579bed198ab93fd313d70;
Copy link
Collaborator

Choose a reason for hiding this comment

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

verified this on my end too 👍

ChefMist
ChefMist previously approved these changes Apr 8, 2024
@chefburger chefburger merged commit f760085 into main Apr 9, 2024
2 checks passed
@chefburger chefburger deleted the optimization/weekly-0328 branch April 9, 2024 06:56
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