Skip to content
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

Audit implementations #87

Merged
merged 56 commits into from
Oct 11, 2022
Merged

Audit implementations #87

merged 56 commits into from
Oct 11, 2022

Conversation

MiguelBits
Copy link
Contributor

No description provided.

MiguelBits and others added 30 commits September 29, 2022 18:17
* 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: 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
* 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
…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]>
* 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]>
…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]>
@MiguelBits MiguelBits requested a review from 3xHarry October 10, 2022 19:54
@MiguelBits MiguelBits merged commit abd7806 into main Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants