-
Notifications
You must be signed in to change notification settings - Fork 12
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
25 changed files
with
2,278 additions
and
27 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
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
contracts/lib/ | ||
contracts/Migrations.sol | ||
contracts/packages/ | ||
contracts/echidna/ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
pragma solidity ^0.5.10; | ||
|
||
import "./contracts/TestOptionsContract.sol"; | ||
|
||
|
||
contract EchidnaOptionsContract is TestOptionsContract { | ||
function echidna_windowsize_lessthan_equal_expiry() | ||
public | ||
view | ||
returns (bool) | ||
{ | ||
return windowSize <= expiry; | ||
} | ||
|
||
function echidna_collateral_exponent_withen_exponent_range() | ||
public | ||
view | ||
returns (bool) | ||
{ | ||
return ((collateralExp <= 30) && (collateralExp >= -30)); | ||
} | ||
|
||
function echidna_underlying_exponent_withen_exponent_range() | ||
public | ||
view | ||
returns (bool) | ||
{ | ||
return ((underlyingExp <= 30) && (underlyingExp >= -30)); | ||
} | ||
|
||
function echidna_strike_exponent_withen_exponent_range() | ||
public | ||
view | ||
returns (bool) | ||
{ | ||
return ((strikePrice.exponent <= 30) && (strikePrice.exponent >= -30)); | ||
} | ||
|
||
function echidna_exchange_rate_exponent_withen_exponent_range() | ||
public | ||
view | ||
returns (bool) | ||
{ | ||
return ((oTokenExchangeRate.exponent <= 30) && | ||
(oTokenExchangeRate.exponent >= -30)); | ||
} | ||
|
||
function echidna_liquiadtion_incentive_lessthan_equal_20percent() | ||
public | ||
view | ||
returns (bool) | ||
{ | ||
return liquidationIncentive.value <= 200; | ||
} | ||
|
||
function echidna_liquiadtion_factor_lessthan_equal_100percent() | ||
public | ||
view | ||
returns (bool) | ||
{ | ||
return liquidationFactor.value <= 1000; | ||
} | ||
|
||
function echidna_transaction_fee_lessthan_equal_10percent() | ||
public | ||
view | ||
returns (bool) | ||
{ | ||
return transactionFee.value <= 100; | ||
} | ||
|
||
function echidna_min_collateralization_ration_greaterthan_equal_1() | ||
public | ||
view | ||
returns (bool) | ||
{ | ||
return minCollateralizationRatio.value >= 10; | ||
} | ||
} |
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 @@ | ||
prefix: "echidna_" |
Oops, something went wrong.