ubiquity / ubiquity-dollar

Ubiquity Dollar (UUSD) smart contracts and user interface.
https://uad.ubq.fi
Apache License 2.0
34 stars 89 forks source link

Conquer the Enigma of Random Crashes: Audit - must fix #866

Closed rndquu closed 7 months ago

rndquu commented 8 months ago

The list of sherlock's audit issues that we must fix.

Notice:

  1. All PRs with fixes should be opened towards the fix-review branch (create one if necessary)
  2. PR links should be posted in sherlock's github audit repo

P.S. The list may be updated P.P.S. Pls mention in the comments if you're working on some of the above issues so that we don't do the same job

@gitcoindev @molecula451 Help is welcome

gitcoindev commented 8 months ago

All right! Let's get to work.

molecula451 commented 8 months ago

it's work time!

molecula451 commented 8 months ago

867 still up! until mention otherwise

gitcoindev commented 8 months ago

I will create issues in this repo referencing the ones from the audit. This will improve visibility and we will be able to self-assign and start working without clashes.

gitcoindev commented 8 months ago

The current list is as follows:

https://github.com/ubiquity/ubiquity-dollar/issues/867 https://github.com/ubiquity/ubiquity-dollar/issues/868 https://github.com/ubiquity/ubiquity-dollar/issues/869 https://github.com/ubiquity/ubiquity-dollar/issues/870 https://github.com/ubiquity/ubiquity-dollar/issues/871 https://github.com/ubiquity/ubiquity-dollar/issues/872 https://github.com/ubiquity/ubiquity-dollar/issues/873

Now the only remaining is to tick the check boxes after fixing.. -)

gitcoindev commented 8 months ago

Branch https://github.com/ubiquity/ubiquity-dollar/tree/fix-review created . Please correct me if I am wrong @rndquu , the fixes must target this fix-review branch and will be merged into development branch later.

molecula451 commented 8 months ago

i like the idea of this AI naming issues, i begin with one 😄

molecula451 commented 8 months ago

Branch https://github.com/ubiquity/ubiquity-dollar/tree/fix-review created . Please correct me if I am wrong @rndquu , the fixes must target this fix-review branch and will be merged into development branch later.

No, instead we need to accumulate the PR fixes first, then submit that on the audit repo

ubiquibot[bot] commented 8 months ago
! Pricing is disabled on parent issues.
gitcoindev commented 8 months ago

Branch https://github.com/ubiquity/ubiquity-dollar/tree/fix-review created . Please correct me if I am wrong @rndquu , the fixes must target this fix-review branch and will be merged into development branch later.

No, instead we need to accumulate the PR fixes first, then submit that on the audit repo

Ok got it, thank you for clarifying!

rndquu commented 8 months ago

Branch https://github.com/ubiquity/ubiquity-dollar/tree/fix-review created . Please correct me if I am wrong @rndquu , the fixes must target this fix-review branch and will be merged into development branch later.

Yes, all PR fixes must target the fix-review branch. Once PR is merged it's link should be posted in sherlock's audit repo in the original audit issue's comments. The fix-review branch will be merged into development.

0x4007 commented 8 months ago

Branch https://github.com/ubiquity/ubiquity-dollar/tree/fix-review created . Please correct me if I am wrong @rndquu , the fixes must target this fix-review branch and will be merged into development branch later.

Yes, all PR fixes must target the fix-review branch.

I assume the plan is to use fix-review as our trunk (or starting/root branch) and then branch off to handle each issue, and then merge back into fix-review when the issue is considered closed as completed? Once all the issues are closed as completed, then we merge fix-review into development?

If that is the correct understanding then I think its a fine strategy.

rndquu commented 8 months ago

Branch https://github.com/ubiquity/ubiquity-dollar/tree/fix-review created . Please correct me if I am wrong @rndquu , the fixes must target this fix-review branch and will be merged into development branch later.

Yes, all PR fixes must target the fix-review branch.

I assume the plan is to use fix-review as our trunk (or starting/root branch) and then branch off to handle each issue, and then merge back into fix-review when the issue is considered closed as completed? Once all the issues are closed as completed, then we merge fix-review into development?

If that is the correct understanding then I think its a fine strategy.

Yes, this is the strategy described by sherlock as the best practise.

rndquu commented 8 months ago

@molecula451 @gitcoindev

The latest curve's metapool implementation has built-in TWAP and adjustable time window (more info in this issue) so I think we can solve all TWAP related issues by simply utilizing the latest curve's metapool contract.

Pls don't start the following issues while I'm carrying out a research:

molecula451 commented 8 months ago

+1 let's use newer curve metapool as there probably more bug fixes underneath

gitcoindev commented 8 months ago

+1 let's use newer curve metapool as there probably more bug fixes underneath

Yes, this looks reasonable and hopefully would allow to kill fix many birds bugs with one stone change.

0x4007 commented 8 months ago

+1 let's use newer curve metapool as there probably more bug fixes underneath

Yes, this looks reasonable and hopefully would allow to ~kill~ fix many ~birds~ bugs with one ~stone~ change.

lol

molecula451 commented 8 months ago

@molecula451 @gitcoindev

The latest curve's metapool implementation has built-in TWAP and adjustable time window (more info in this issue) so I think we can solve all TWAP related issues by simply utilizing the latest curve's metapool contract.

Pls don't start the following issues while I'm carrying out a research:

any update on the issues research, @rndquu

rndquu commented 8 months ago

@molecula451 @gitcoindev The latest curve's metapool implementation has built-in TWAP and adjustable time window (more info in this issue) so I think we can solve all TWAP related issues by simply utilizing the latest curve's metapool contract. Pls don't start the following issues while I'm carrying out a research:

any update on the issues research, @rndquu

The latest curve's metapool implementation has a built-in TWAP oracle which solves most of the TWAP issues found by Sherlock's watsons. Working on a PR that removes our own TWAP implementation and uses the TWAP from curve's metapool.

gitcoindev commented 7 months ago

I suppose we can close this issue. I will still go through remaining minor issues but the 'must fix' list seems to have been completed. @rndquu , @molecula451 could you please confirm?

rndquu commented 7 months ago

I suppose we can close this issue. I will still go through remaining minor issues but the 'must fix' list seems to have been completed. @rndquu , @molecula451 could you please confirm?

Right now there is the "fix review" stage when lead senior watson checks the fixes. I think it makes sense to close this one when LSW confirms that everything is fine.

molecula451 commented 7 months ago

We've made it @pavlovcik @rndquu @gitcoindev

UBQ whole year🥳

Screenshot from 2024-02-28 08-36-46

ubiquibot[bot] commented 7 months ago
! action has an uncaught error
rndquu commented 7 months ago

FYI the next steps are:

  1. I will update https://github.com/ubiquity/ubiquity-dollar/pull/860 to work with the updates introduced in the PRs related to the audit
  2. I will prepare the deployment script