Skip to content

Certora improvements #10

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

Merged
merged 1 commit into from
May 22, 2025
Merged

Certora improvements #10

merged 1 commit into from
May 22, 2025

Conversation

sunbreak1211
Copy link
Contributor

No description provided.

@sunbreak1211 sunbreak1211 requested review from telome and oldchili May 7, 2025 20:59
@sunbreak1211 sunbreak1211 merged commit 1155518 into newchief May 22, 2025
7 checks passed
sunbreak1211 added a commit that referenced this pull request May 26, 2025
* DSChief => DssChief

* Add constant for empty slate

* Use unchecked for loops counter

* Gas optimization

Co-authored-by: telome <[email protected]>

* Remove IOU

* EMPTY_SLATE should be constant

* Use ++i instead of i++

* Remove spacings

* Extract TokenMock to separate file and change pragma for test file

* Fix copyright TokenMock

* Use Foundry default structure

* Add tests CI

* Fix CI

* Fix test file name

* No need of ETH_RPC_URL for CI

* Spacing

* Add Certora specs (#2)

* Add Certora specs

* Some renaming

* New specs and minor changes to existing

* Add spec

* Add Certora CI

* Fix mocks path

* Add balances check for lock and free

* Check extra values + Expand scope of existing checks + minor changes

* Simplify some checks

* Check gov balance in every rule

* Old getters check

* Run Certora CI on pull_request as well

* Changes for running Certora

* Use certora-cli-beta for now

* Fix Certora script

* Certora: move config to file

* Certora: use double implication to make revert rules shorter

* Rename + New flash loan protection (#4)

* Flash loan protection in lift instead of free

* Fix comments

* Block flash loans also for launching + add some extra missing tests

* Update README

* Update Certora specs

* Rename

* Reorder and make constant public

* Improve tests

* nit changes

* Certora: add spec for checking empty slate

* Remove some retro-compatibility getters as they do not seem necessary

* Remove paragraph from README

* Use solc 0.8.21

* Use forge stable version

* Minor README fix

* Remove return values from GemLike interface as not used and is more gas efficient

* Clarify mapping values

* nit: remove some spaces

* Simplify TokenMock

* Minor test + spec changes

* Remove not needed compatibility getter + minor test changes

* Certora: some config changes

* Improve hold require condition

* Remove content from README

* Certora: remove not necessary assert

* Upgrade python and checkout versions for Certora CI

* Fix typo

* nit change

* Gas optimization in _addWeight and _subWeight

* Gas optimization

* Remove unnecessary casting

* Another gas optimization

* Don't rely on actual order for processing expressions

* Add basic integration test

* Fix tests CI

* Rename tests

* Flash loan protection blocking free after launch/lift (#7)

* Flash loan protection blocking free after launch/lift

* Fixes in tests

* Upgrade python version in Certora CI

* Fixes on lift

* Minor fix README

* Remove unnecessary roll

* lift cooldown as immutable

* Update README.md for liftCooldown immutable

Co-authored-by: telome <[email protected]>

* Minor README fix

* Add sender to some events

* Add audit reports (#9)

* Certora improvements (#10)

---------

Co-authored-by: telome <[email protected]>
Co-authored-by: oldchili <[email protected]>
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.

1 participant