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/sep21 - Adds Library Fuzzing Tests for Auditors #228

Merged
merged 17 commits into from
Sep 22, 2021
Merged

Conversation

Alexangelj
Copy link
Contributor

@Alexangelj Alexangelj commented Sep 22, 2021

Changes

  • Removes Remove Callback in IPrimitiveLiquidityCallback interface. Was unused.
  • Updates natspec in CumulativeNormalDistribution.sol to include source of approximations and their absolute errors
  • Updates test contracts
  • Adds a maxError constant which is used to check the error on the solidity approximations
  • Refactors CDF test. Uses a high precision calculator to calculate a range of inputs and their outputs of the CDF and Inverse CDF. Compares this against the solidity implementations, using maxError as the error. Tests the entire domain and range.
  • Refactors Replication Math tests. Tests the entire domain and range of the replication math functions.
  • Updates various functions in the shared directory to better support decimals
  • Fixes type compilation errors in shared related files
  • Fixes failing allocate tests
  • Fixes failing create tests with tokens that dont have 18 decimals
  • Adds the poolFixture to the remaining tests to deploy tokens with different decimals, if needed
  • Adds a swap test to attempt to drain the pool by swapping an amount in, and using the amount received out in another swap.

@Alexangelj Alexangelj merged commit c959452 into main Sep 22, 2021
@Alexangelj Alexangelj linked an issue Oct 2, 2021 that may be closed by this pull request
@Alexangelj Alexangelj deleted the audit/sep21 branch November 30, 2021 20:41
Alexangelj added a commit that referenced this pull request Mar 30, 2022
Audit/sep21 - Adds Library Fuzzing Tests for Auditors
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.

Dead code in interface: Remove callback
1 participant