-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
45 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,9 @@ docs/ | |
# Node modules | ||
/node_modules | ||
|
||
# Certora | ||
.certora** | ||
|
||
# Hardhat | ||
/types | ||
/cache_hardhat | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
certoraRun \ | ||
src/Blue.sol \ | ||
--verify Blue:certora/specs/Blue.spec \ | ||
--solc_allow_path src \ | ||
--solc solc \ | ||
--loop_iter 3 \ | ||
--optimistic_loop \ | ||
--msg "Blue" \ | ||
--send_only \ | ||
"$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
methods { | ||
function supply(Blue.Market, uint256 amount) external; | ||
|
||
|
||
function _.borrowRate(Blue.Market) external returns (uint256) => DISPATCH(true); | ||
|
||
function _.safeTransfer(address, uint256) internal returns (bool) envfree => DISPATCH(true); | ||
function _.safeTransferFrom(address, address, uint256) internal returns (bool) envfree => DISPATCH(true); | ||
} | ||
|
||
rule supplyRevertZero(Blue.Market market) { | ||
env e; | ||
|
||
supply@withrevert(market, 0); | ||
|
||
assert lastReverted; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters