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

Inline toll access control and defend against malicious Chronicle diss #23

Merged
merged 6 commits into from
Mar 28, 2024

Conversation

pmerkleplant
Copy link
Member

Inlines the toll access control to only grant read access to an immutable bud set during deployment. Note though that address(0) has also read access (enables easier access via RPC calls, etherscan, etc).

This PR also wraps the Chronicle oracle read call into try-catch to defend against a malicious diss from Chronicle, ie defend against Chronicle removing Aggor's toll from the respective oracle.

Copy link

@hexonaut hexonaut left a comment

Choose a reason for hiding this comment

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

Looks great. Good catch on the try catch on the Chronicle.

src/Aggor.sol Outdated Show resolved Hide resolved
src/Aggor.sol Outdated Show resolved Hide resolved
src/Aggor.sol Outdated Show resolved Hide resolved
Copy link

@hexonaut hexonaut left a comment

Choose a reason for hiding this comment

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

LGTM

@pmerkleplant pmerkleplant merged commit 56472a7 into main Mar 28, 2024
3 checks passed
@pmerkleplant pmerkleplant deleted the hardcode_toll branch March 28, 2024 10:37
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