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

✅ Differential Fuzzing Campaign for Linear VRGDA #3

Merged
merged 10 commits into from
Aug 24, 2022

Conversation

FrankieIsLost
Copy link
Collaborator

Add differential fuzzing for linear VRGDA

numSold = bound(numSold, 0, MAX_SELLABLE);
timeSinceStart = bound(timeSinceStart, 0, MAX_TIMEFRAME);
// Convert to wad days for convenience.
timeSinceStart = (timeSinceStart * 10e18) / 1 days;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idt this should be 10

timeSinceStart,
numSold
);
assertRelApproxEq(expectedPrice, actualPrice, 0.00001e18);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we not need to do the check this check?
Screen Shot 2022-08-23 at 1 25 41 PM


/// @notice Efficient library for creating string representations of integers.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/v7/src/utils/LibString.sol)
library LibString {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets get rid of this and use vm.tostring

@transmissions11 transmissions11 changed the title Differential Fuzzing Campaign for Linear VRGDA ✅ Differential Fuzzing Campaign for Linear VRGDA Aug 24, 2022
@transmissions11 transmissions11 merged commit 1416143 into master Aug 24, 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