Skip to content

Commit

Permalink
adding report
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMorami committed Jan 25, 2024
1 parent 04fc6a0 commit 55b67b8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
26 changes: 13 additions & 13 deletions certora/GSM/specs/gsm/otakar-FixedFeeStrategy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,16 @@ rule GetBuyFeeNeverReverts()
assert !lastReverted;
}

// @title No method can change fees.
// STATUS: PASS
// https://prover.certora.com/output/11775/2daedeb4c01a4354bc7889ffd9f4ec25?anonymousKey=eee3f23fb4011ab65bf9a0096bc855dcfb58a780
rule noMethodCanChangeFees(method f)
{
env e;
calldataarg args;
uint sellFeeBefore = getSellFeeBP();
uint buyFeeBefore = getBuyFeeBP();
f(e,args);
assert getSellFeeBP() == sellFeeBefore;
assert getBuyFeeBP() == buyFeeBefore;
}
// // @title No method can change fees.
// // STATUS: PASS
// // https://prover.certora.com/output/11775/2daedeb4c01a4354bc7889ffd9f4ec25?anonymousKey=eee3f23fb4011ab65bf9a0096bc855dcfb58a780
// rule noMethodCanChangeFees(method f)
// {
// env e;
// calldataarg args;
// uint sellFeeBefore = getSellFeeBP();
// uint buyFeeBefore = getBuyFeeBP();
// f(e,args);
// assert getSellFeeBP() == sellFeeBefore;
// assert getBuyFeeBP() == buyFeeBefore;
// }
3 changes: 2 additions & 1 deletion certora/GSM/specs/gsm/otakar-gho-gsm-finishedRules.spec
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ rule collectedBuyFeeIsAtLeastAsRequired()
uint256 assetAmount;
uint256 ghoTotal; uint256 ghoGross; uint256 ghoFee;
_, ghoTotal, ghoGross, ghoFee = getGhoAmountForBuyAsset(e, assetAmount);
assert getPercMathPercentageFactor(e) * ghoFee >= getBuyFeeBP(e) * ghoGross;
// assert getPercMathPercentageFactor(e) * ghoFee >= getBuyFeeBP(e) * ghoGross;
satisfy getPercMathPercentageFactor(e) * ghoFee >= getBuyFeeBP(e) * ghoGross;
}

// @title The buy fee actually collected (after rounding) is at least the required percentage.
Expand Down
Binary file not shown.

0 comments on commit 55b67b8

Please sign in to comment.