-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
39 audit controllersol needs to implement tvl cant be zero #64
Merged
MiguelBits
merged 10 commits into
audit-implementations
from
39-audit-controllersol-needs-to-implement-tvl-cant-be-zero
Sep 29, 2022
Merged
39 audit controllersol needs to implement tvl cant be zero #64
MiguelBits
merged 10 commits into
audit-implementations
from
39-audit-controllersol-needs-to-implement-tvl-cant-be-zero
Sep 29, 2022
Conversation
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
…s-to-implement-tvl-cant-be-zero
MiguelBits
added a commit
that referenced
this pull request
Sep 29, 2022
* audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins
MiguelBits
added a commit
that referenced
this pull request
Sep 29, 2022
* audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins
MiguelBits
added a commit
that referenced
this pull request
Sep 29, 2022
* audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins
MiguelBits
added a commit
that referenced
this pull request
Sep 29, 2022
…s not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]>
MiguelBits
added a commit
that referenced
this pull request
Sep 29, 2022
* audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins
MiguelBits
added a commit
that referenced
this pull request
Sep 29, 2022
…s not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]>
MiguelBits
added a commit
that referenced
this pull request
Sep 29, 2022
* audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * audit: Change the isDisaster modifier to revert when price of a pegged asset is equal to the strike price of a Vault * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address Co-authored-by: 0xnexusflip <[email protected]>
MiguelBits
added a commit
that referenced
this pull request
Sep 30, 2022
* 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address * 69 audit depeg event can happen at incorrect price (#70) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * audit: Change the isDisaster modifier to revert when price of a pegged asset is equal to the strike price of a Vault * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address Co-authored-by: 0xnexusflip <[email protected]> * audit: #383 * audit: #379 * audit #118 * remove hashed index * change treasure address 0 * deposit event with useless param * audit deposit evnt * audit: fee cannot be 0 * add timelock, strk price, null epoch tests * add testFeeCannotBe0 * add testControllerNotSet * timelock assert test * test fail for timelockers * tests of epochnull and withdraw without fee * test epoch already finished * EpochFinishedAlready and epochNull tests * testing suite update on reverts * comment out test testVaultAddressZero * assert on all asset.transfers Co-authored-by: 0xnexusflip <[email protected]>
MiguelBits
added a commit
that referenced
this pull request
Sep 30, 2022
…82) * 71 audit missing assert verification on transfer of tokens (#81) * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address * 69 audit depeg event can happen at incorrect price (#70) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * audit: Change the isDisaster modifier to revert when price of a pegged asset is equal to the strike price of a Vault * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address Co-authored-by: 0xnexusflip <[email protected]> * audit: #383 * audit: #379 * audit #118 * remove hashed index * change treasure address 0 * deposit event with useless param * audit deposit evnt * audit: fee cannot be 0 * add timelock, strk price, null epoch tests * add testFeeCannotBe0 * add testControllerNotSet * timelock assert test * test fail for timelockers * tests of epochnull and withdraw without fee * test epoch already finished * EpochFinishedAlready and epochNull tests * testing suite update on reverts * comment out test testVaultAddressZero * assert on all asset.transfers Co-authored-by: 0xnexusflip <[email protected]> * Revert "71 audit missing assert verification on transfer of tokens (#81)" This reverts commit 79d913a. Co-authored-by: 0xnexusflip <[email protected]>
3xHarry
reviewed
Oct 4, 2022
@@ -357,6 +363,10 @@ contract Vault is SemiFungibleVault, ReentrancyGuard { | |||
asset.transfer(_counterparty, idFinalTVL[id]); | |||
} | |||
|
|||
function setEpochNull(uint256 id) public onlyController { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MiguelBits this is never set in triggerNullEpoch
.
MiguelBits
added a commit
that referenced
this pull request
Oct 11, 2022
* 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address * 69 audit depeg event can happen at incorrect price (#70) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * audit: Change the isDisaster modifier to revert when price of a pegged asset is equal to the strike price of a Vault * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address Co-authored-by: 0xnexusflip <[email protected]> * audit: #383 * audit: #379 * audit #118 * remove hashed index * change treasure address 0 * deposit event with useless param * audit deposit evnt * audit: fee cannot be 0 * add timelock, strk price, null epoch tests * add testFeeCannotBe0 * add testControllerNotSet * timelock assert test * test fail for timelockers * tests of epochnull and withdraw without fee * test epoch already finished * EpochFinishedAlready and epochNull tests * testing suite update on reverts * comment out test testVaultAddressZero * Revert 81 71 audit missing assert verification on transfer of tokens (#82) * 71 audit missing assert verification on transfer of tokens (#81) * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address * 69 audit depeg event can happen at incorrect price (#70) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * audit: Change the isDisaster modifier to revert when price of a pegged asset is equal to the strike price of a Vault * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address Co-authored-by: 0xnexusflip <[email protected]> * audit: #383 * audit: #379 * audit #118 * remove hashed index * change treasure address 0 * deposit event with useless param * audit deposit evnt * audit: fee cannot be 0 * add timelock, strk price, null epoch tests * add testFeeCannotBe0 * add testControllerNotSet * timelock assert test * test fail for timelockers * tests of epochnull and withdraw without fee * test epoch already finished * EpochFinishedAlready and epochNull tests * testing suite update on reverts * comment out test testVaultAddressZero * assert on all asset.transfers Co-authored-by: 0xnexusflip <[email protected]> * Revert "71 audit missing assert verification on transfer of tokens (#81)" This reverts commit 79d913a. Co-authored-by: 0xnexusflip <[email protected]> * assert on all asset.transfers (#84) * add author to contracts * audit marketExists on controller functs (#85) * remove getNextEpoch * audit: Vault receiver != address(0) * audit: oracle for more than 18 and for less than 18 decimals * audit: multiply before dividing #77 * test out lowest fee possible * audit: #79 * timelock for factory instead of vault * onlyAdmin to onlyOwner Ownable * fix overflow on previewWithdraw * fee calculation on premium * fix testWithdrawDepeg() and WithdrawEndEpoch() * revert event naming in RewardsFactory * removed hashed index * add testOracleDecimals() template * change strike on deploy script * qa for oracle decimals * timelocker contract with queue and execute * policy role * policy == owner * remove rewards duration and rewards rate * useless rewardsDuration and rewardRate * config json * json parser * deploy with json config * deploy more assets script Co-authored-by: 0xnexusflip <[email protected]>
MiguelBits
added a commit
that referenced
this pull request
Oct 13, 2022
* 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address * 69 audit depeg event can happen at incorrect price (#70) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * audit: Change the isDisaster modifier to revert when price of a pegged asset is equal to the strike price of a Vault * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address Co-authored-by: 0xnexusflip <[email protected]> * audit: #383 * audit: #379 * audit #118 * remove hashed index * change treasure address 0 * deposit event with useless param * audit deposit evnt * audit: fee cannot be 0 * add timelock, strk price, null epoch tests * add testFeeCannotBe0 * add testControllerNotSet * timelock assert test * test fail for timelockers * tests of epochnull and withdraw without fee * test epoch already finished * EpochFinishedAlready and epochNull tests * testing suite update on reverts * comment out test testVaultAddressZero * Revert 81 71 audit missing assert verification on transfer of tokens (#82) * 71 audit missing assert verification on transfer of tokens (#81) * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address * 69 audit depeg event can happen at incorrect price (#70) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * audit: Change the isDisaster modifier to revert when price of a pegged asset is equal to the strike price of a Vault * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address Co-authored-by: 0xnexusflip <[email protected]> * audit: #383 * audit: #379 * audit #118 * remove hashed index * change treasure address 0 * deposit event with useless param * audit deposit evnt * audit: fee cannot be 0 * add timelock, strk price, null epoch tests * add testFeeCannotBe0 * add testControllerNotSet * timelock assert test * test fail for timelockers * tests of epochnull and withdraw without fee * test epoch already finished * EpochFinishedAlready and epochNull tests * testing suite update on reverts * comment out test testVaultAddressZero * assert on all asset.transfers Co-authored-by: 0xnexusflip <[email protected]> * Revert "71 audit missing assert verification on transfer of tokens (#81)" This reverts commit 79d913a. Co-authored-by: 0xnexusflip <[email protected]> * assert on all asset.transfers (#84) * add author to contracts * audit marketExists on controller functs (#85) * remove getNextEpoch * audit: Vault receiver != address(0) * audit: oracle for more than 18 and for less than 18 decimals * audit: multiply before dividing #77 * test out lowest fee possible * audit: #79 * timelock for factory instead of vault * onlyAdmin to onlyOwner Ownable * fix overflow on previewWithdraw * fee calculation on premium * fix testWithdrawDepeg() and WithdrawEndEpoch() * revert event naming in RewardsFactory * removed hashed index * add testOracleDecimals() template * change strike on deploy script * qa for oracle decimals * timelocker contract with queue and execute * policy role * policy == owner * remove rewards duration and rewards rate * useless rewardsDuration and rewardRate * config json * json parser * deploy with json config * deploy more assets script * when not paused, claiming rewards can proceed Co-authored-by: 0xnexusflip <[email protected]>
MiguelBits
added a commit
that referenced
this pull request
Oct 19, 2022
* 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address * 69 audit depeg event can happen at incorrect price (#70) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * audit: Change the isDisaster modifier to revert when price of a pegged asset is equal to the strike price of a Vault * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address Co-authored-by: 0xnexusflip <[email protected]> * audit: #383 * audit: #379 * audit #118 * remove hashed index * change treasure address 0 * deposit event with useless param * audit deposit evnt * audit: fee cannot be 0 * add timelock, strk price, null epoch tests * add testFeeCannotBe0 * add testControllerNotSet * timelock assert test * test fail for timelockers * tests of epochnull and withdraw without fee * test epoch already finished * EpochFinishedAlready and epochNull tests * testing suite update on reverts * comment out test testVaultAddressZero * Revert 81 71 audit missing assert verification on transfer of tokens (#82) * 71 audit missing assert verification on transfer of tokens (#81) * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address * 69 audit depeg event can happen at incorrect price (#70) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * audit: Change the isDisaster modifier to revert when price of a pegged asset is equal to the strike price of a Vault * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * unused local var * 66 audit timelock in admin functions of vault (#67) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * 41 audit getlatestprice when calling endepoch with sequencer down does not end and epoch (#68) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * audit: timelock in admin functions of vault #66 * audit: getLatestPrice in event of triggerEndEpoch * epochHasEnded * goerli deployment * natspec comments * add quick fix to test before PR refactoring * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * removed admin * add assert to testOwnerAuthorize * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * erased dup test * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * 46 audit oracle outdated issues (#63) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * 39 audit controllersol needs to implement tvl cant be zero (#64) * audit: remove approving of WETH when Depositing Eth * audit: Vault.sol mapping to epochs is over * natspec example * synthax errors on compile * useless onlyAdmin * audit: Controller.sol needs to implement TVL cant be zero * total supply and modifier * allow rest only after epoch begins * dup of trigger null epoch Co-authored-by: 0xnexusflip <[email protected]> * missing address Co-authored-by: 0xnexusflip <[email protected]> * audit: #383 * audit: #379 * audit #118 * remove hashed index * change treasure address 0 * deposit event with useless param * audit deposit evnt * audit: fee cannot be 0 * add timelock, strk price, null epoch tests * add testFeeCannotBe0 * add testControllerNotSet * timelock assert test * test fail for timelockers * tests of epochnull and withdraw without fee * test epoch already finished * EpochFinishedAlready and epochNull tests * testing suite update on reverts * comment out test testVaultAddressZero * assert on all asset.transfers Co-authored-by: 0xnexusflip <[email protected]> * Revert "71 audit missing assert verification on transfer of tokens (#81)" This reverts commit 79d913a. Co-authored-by: 0xnexusflip <[email protected]> * assert on all asset.transfers (#84) * add author to contracts * audit marketExists on controller functs (#85) * remove getNextEpoch * audit: Vault receiver != address(0) * audit: oracle for more than 18 and for less than 18 decimals * audit: multiply before dividing #77 * test out lowest fee possible * audit: #79 * timelock for factory instead of vault * onlyAdmin to onlyOwner Ownable * fix overflow on previewWithdraw * fee calculation on premium * fix testWithdrawDepeg() and WithdrawEndEpoch() * revert event naming in RewardsFactory * removed hashed index * add testOracleDecimals() template * change strike on deploy script * qa for oracle decimals * timelocker contract with queue and execute * policy role * policy == owner * remove rewards duration and rewards rate * useless rewardsDuration and rewardRate * config json * json parser * deploy with json config * deploy more assets script * add fake weth * fakeweth mint * /out => abi/ * abi ignore * commands to work * deploy more markets * deploy more scripts * _index * remove redundant epoch end * commands * pausable staking rewards Co-authored-by: 0xnexusflip <[email protected]> Co-authored-by: mcruzvas <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.