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

M-03, M-04, CR-03 (OZ Audit) #25

Merged
merged 4 commits into from Jan 18, 2024
Merged

M-03, M-04, CR-03 (OZ Audit) #25

merged 4 commits into from Jan 18, 2024

Conversation

HrikB
Copy link
Collaborator

@HrikB HrikB commented Jan 3, 2024

  • Deadline checks for swap-related txs on leverage contracts

  • Whitelisting support on leverage contracts

  • Check whitelist on IonPool against the position owner user instead of msg.sender

Implications:

For supply(), this allows anybody to create a position for a whitelisted user, but msg.sender would be funding the position.

For borrow(), this would allow operators to create a position on user's behalf, otherwise only user would be able to create borrow position for themselves.

For depositCollateral(), anybody would be able to deposit collateral on behalf of user, but they would be funding the gem.

@HrikB HrikB merged commit bcbb6c4 into master Jan 18, 2024
@HrikB HrikB deleted the hrikb/M-03 branch January 18, 2024 06:07
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.

None yet

1 participant