Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion certora/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Who may change state, sign authorizations and hold roles, and how failures propa

Value cannot leak to unauthorized parties.

- [`Solvency.spec`](specs/Solvency.spec) checks the central solvency invariant: for every token, the contract's balance always covers the sum of collateral, withdrawable and claimable settlement fees.
- [`Solvency.spec`](specs/Solvency.spec) checks the central solvency invariant: for every well-behaved token, the contract's balance always covers the sum of collateral, withdrawable and claimable settlement fees, even in the presence of malicious tokens that can arbitrarily change the state when transferred.
Comment thread
QGarchery marked this conversation as resolved.
Resolved
- [`OnlyExplicitPayerCanLoseTokens.spec`](specs/OnlyExplicitPayerCanLoseTokens.spec) checks that tokens are only ever pulled from an explicit payer.
In `take`, the payer can only be the `buyerCallback` if it is passed, otherwise it is either the maker for a buy offer, or `msg.sender` for a sell offer.
In every other entry point, the payer is `msg.sender` or the corresponding callback.
Expand Down
3 changes: 2 additions & 1 deletion certora/confs/Solvency.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"files": [
"src/Midnight.sol",
"certora/helpers/Utils.sol",
"certora/helpers/FlashLiquidateCallback.sol"
"certora/helpers/Havoc.sol"
],
"parametric_contracts": [
"Midnight"
Expand All @@ -16,6 +16,7 @@
"optimistic_hashing": true,
"hashing_length_bound": 2048,
"prover_args": [
"-havocAllByDefault true",
"-depth 5",
"-mediumTimeout 20",
"-timeout 3600"
Expand Down
64 changes: 0 additions & 64 deletions certora/helpers/FlashLiquidateCallback.sol

This file was deleted.

Loading
Loading