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

add comments, clean some stuff up, gas optimisations #307

Merged
merged 3 commits into from
Apr 26, 2022

Conversation

Paul4912
Copy link
Contributor

@Paul4912 Paul4912 commented Apr 26, 2022

Motivations:
Pickup some low hanging fruit fixes and changes before auditors look at it. They should focus on security and gas optimisations we missed, should not have to have them find heaps of minor things we could have saw coming already like not putting natspec on some functions.

Changes:
-Removed some unneeded fields in events. E.g currentdebt in event of paying debt with collateral is always going to be 0 so not really needed.
-Allow borrower split into allow LP and allow Non LP Borrower. Makes it easier to call the functions, not needing to know which to put true or false but just call the right functions. Also function is smaller with less checks so more gas efficient.
-Revoke borrower doesn't really need to know what type of borrower they are it revokes same anyway.
-Natspec when there not there
-Few minor stuff here and there

@c-n-o-t-e c-n-o-t-e merged commit d2d1718 into OlympusDAO:IncurDebt Apr 26, 2022
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