Skip to content

[Certora] Only authorized users can decrease the share of a lender#410

Merged
QGarchery merged 36 commits into
mainfrom
certora/only-authorized-decrease-shares
Mar 9, 2026
Merged

[Certora] Only authorized users can decrease the share of a lender#410
QGarchery merged 36 commits into
mainfrom
certora/only-authorized-decrease-shares

Conversation

@lilCertora

Copy link
Copy Markdown
Collaborator

Only authorized users can decrease the share of a lender.

last run

Comment thread certora/confs/OnlyAuthorizedCanDecreaseShares.conf
@lilCertora lilCertora changed the title Only authorized users can decrease the share of a lender [Certora] Only authorized users can decrease the share of a lender Feb 26, 2026
@lilCertora lilCertora changed the title [Certora] Only authorized users can decrease the share of a lender [Certora] Only authorized users can decrease the share of a lender (WIP) Feb 26, 2026
@lilCertora lilCertora changed the title [Certora] Only authorized users can decrease the share of a lender (WIP) [Certora] Only authorized users can decrease the share of a lender Mar 2, 2026
@lilCertora lilCertora marked this pull request as ready for review March 3, 2026 10:07
Comment thread .github/workflows/certora.yml Outdated
Comment thread certora/specs/OnlyAuthorizedCanDecreaseShares.spec Outdated
Comment thread certora/specs/OnlyAuthorizedCanDecreaseShares.spec Outdated
Comment thread certora/specs/OnlyAuthorizedCanDecreaseShares.spec
@QGarchery QGarchery mentioned this pull request Mar 5, 2026
73 tasks
@lilCertora lilCertora force-pushed the certora/only-authorized-decrease-shares branch from adee165 to dc54ad2 Compare March 5, 2026 21:20
Comment thread certora/specs/OnlyAuthorizedCanDecreaseShares.spec Outdated
Comment thread certora/specs/OnlyAuthorizedCanDecreaseShares.spec Outdated
Comment thread certora/specs/OnlyAuthorizedCanDecreaseShares.spec
Comment thread certora/confs/OnlyAuthorizedCanDecreaseShares.conf Outdated
Comment thread certora/confs/OnlyAuthorizedCanDecreaseShares.conf Outdated
Comment thread certora/confs/OnlyAuthorizedCanDecreaseShares.conf Outdated
Comment thread certora/confs/OnlyAuthorizedCanDecreaseShares.conf Outdated
lilCertora and others added 7 commits March 6, 2026 15:50
Co-authored-by: Quentin Garchery <garchery.quentin@gmail.com>
Signed-off-by: lilCertora <lilian@certora.com>
Co-authored-by: Quentin Garchery <garchery.quentin@gmail.com>
Signed-off-by: lilCertora <lilian@certora.com>
Co-authored-by: Quentin Garchery <garchery.quentin@gmail.com>
Signed-off-by: lilCertora <lilian@certora.com>
Co-authored-by: Quentin Garchery <garchery.quentin@gmail.com>
Signed-off-by: lilCertora <lilian@certora.com>
Co-authored-by: Quentin Garchery <garchery.quentin@gmail.com>
Signed-off-by: lilCertora <lilian@certora.com>

@jhoenicke jhoenicke left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks fine.

I'm wondering about the @withrevert in take. You could just write it without and then assert !takerUnauthorized. This is probably a minor thing. It is interesting that it still works to assert that sharesAfter/sharesBefore behave like this, but I guess the prover knows that for a revert the shares don't change.

@QGarchery QGarchery requested a review from bhargavbh March 9, 2026 08:44
@QGarchery QGarchery merged commit 3ed4787 into main Mar 9, 2026
10 checks passed
@QGarchery QGarchery deleted the certora/only-authorized-decrease-shares branch March 9, 2026 13:51

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

after #473, this can become OnlyAuthorizedCanChangeShares

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.

5 participants