delvtech / hyperdrive

An automated market maker for fixed and variable yield with on-demand terms.
Apache License 2.0
25 stars 3 forks source link

MockERC4626 Fix #1040

Closed jalextowle closed 1 month ago

jalextowle commented 1 month ago

Description

Ignores underflows in the mock yield sources.

Review Checklists

Please check each item before approving the pull request. While going through the checklist, it is recommended to leave comments on items that are referenced in the checklist to make sure that they are reviewed. If there are multiple reviewers, copy the checklists into sections titled ## [Reviewer Name]. If the PR doesn't touch Solidity, the corresponding checklist can be removed.

[[Reviewer Name]]

dpaiton commented 1 month ago

This should fix the contract errors cited here: https://github.com/delvtech/hyperdrive-rs/issues/104