GithubHelp home page GithubHelp logo

2023-10-asymmetry-mitigation's Introduction

Asymmetry Finance afETH - Mitigation Review details

Important note

Each warden must submit a mitigation review for every High and Medium finding from the parent audit that is listed as in-scope for the mitigation review. Incomplete mitigation reviews will not be eligible for awards.

Findings being mitigated

Mitigations of all High and Medium issues will be considered in-scope and listed here.

Overview of changes

Most of the changes felt relatively straight forward. The biggest change we did was not burning afEth on withdraw, instead we now burn it on requestWithdraw. This is mostly in regards to H-04, but would like to have extra care taken around that to make sure nothing is broken.

Mitigations to be reviewed

Branch

All audit mitigations

Individual PRs

Wherever possible, mitigations should be provided in separate pull requests, one per issue. If that is not possible (e.g. because several audit findings stem from the same core problem), then please link the PR to all relevant issues in your findings repo.

URL Mitigation of Purpose
code-423n4/2023-09-asymmetry-findings#62 H-01 After days of research we decided that this was acceptable. Check the link to view our response.
asymmetryfinance/afeth#159 H-02 Don't withdraw zero from SafEth or Votium
asymmetryfinance/afeth#165 H-03 Validate Chainlink price data
asymmetryfinance/afeth#162 & asymmetryfinance/afeth#172 H-04 For this one we made afEth just burn on requestWithdraw
asymmetryfinance/afeth#176 & asymmetryfinance/afeth#178 & asymmetryfinance/afeth#169 H-05 For this one we locked down the depositRewards function and added a minout to the reward functions
asymmetryfinance/afeth#164 M-03 Check if vlcvx contract is shutdown before trying to relock
asymmetryfinance/afeth#168 M-04 Check if available amount to withdraw is already in contract
asymmetryfinance/afeth#168 M-05 Add a minimum epoch of 1 to not allow users to immediately withdraw
asymmetryfinance/afeth#175 M-06 Add a deadline check for deposit & withdraw
asymmetryfinance/afeth#193 & asymmetryfinance/afeth#190 M-07 Here we did two things, check msg.value instead of passing in amount & make deposit rewards private
asymmetryfinance/afeth#179 M-08 Track balances instead of using balanceOf
code-423n4/2023-09-asymmetry-findings#16 M-10 No code changes needed, we removed the minimum stake amount from SafEth

Out of Scope

URL Mitigation of Purpose
code-423n4/2023-09-asymmetry-findings#55 M-01 Acknowledged and did not fix, plan to upgrade a fix in the future
code-423n4/2023-09-asymmetry-findings#54 M-02 Did not fix, should have been marked acknowledged
code-423n4/2023-09-asymmetry-findings#31 M-09 Didn't fix, should have been marked acknowledged

2023-10-asymmetry-mitigation's People

Contributors

kartoonjoy avatar toshisat avatar

Watchers

Sean Luther avatar Ashok avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.