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

Pass in decay function for input/output #312

Merged
merged 3 commits into from
Oct 17, 2024
Merged

Conversation

codyborn
Copy link
Collaborator

Reduces code duplication by passing in the appropriate decay function

test/lib/NonLinearDutchDecayLib.t.sol Outdated Show resolved Hide resolved
test/lib/NonLinearDutchDecayLib.t.sol Outdated Show resolved Hide resolved
@codyborn codyborn merged commit 28e2b97 into audit-v3-16 Oct 17, 2024
3 checks passed
@codyborn codyborn deleted the pass_decay_func branch October 17, 2024 16:49
codyborn added a commit that referenced this pull request Oct 18, 2024
* feat, test: round decays in favor of swapper

* refactor: move v3 decay functions together

* refactor: remove unused function

* refactor: unwind isInput from v3LinearDecay

* refactor: unwind isInput from decay & tests

* style: forge fmt

* test: round in favor of swapper when resolving output

* refactor: clean curveDelta use

* test: split uint16 overflow test into input & output

* Pass in decay function for input/output (#312)

* Pass in decay function for input/output

* forge fmt

* Remove MockNonlinearDutchDecayLibContract

---------

Co-authored-by: Cody Born <[email protected]>
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