Skip to content

V1.5 updates#83

Open
microHoffman wants to merge 12 commits intov1.5from
v1.5-deployment-changes
Open

V1.5 updates#83
microHoffman wants to merge 12 commits intov1.5from
v1.5-deployment-changes

Conversation

@microHoffman
Copy link
Contributor

No description provided.

@microHoffman microHoffman self-assigned this Nov 19, 2025
@microHoffman microHoffman changed the base branch from master to v1.5 November 20, 2025 01:10
revert DurationTooShort();
}

// TODO should here be >= or just >
Copy link
Member

Choose a reason for hiding this comment

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

It doesn't really matter, but >= allows to have no installments until end of the loan.

Comment on lines +102 to +105
// TODO should we check the values here that they are correct?

// TODO should we check here that the getCollateralAmount on installments product contract returns
// positive result (to ensure that the feeds are set up correctly)?
Copy link
Member

Choose a reason for hiding this comment

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

Solve it and/or remove it.

Comment on lines +323 to +330
// TODO shall we keep this as `public`, or only as `external` since so far it's not used internally anywhere?
// TODO same question for:
// 1) totalAssets
// 2) deposit
// 3) mint
// 4) withdraw
// 5) redeem
// 6) previewCollateralRedeem
Copy link
Member

Choose a reason for hiding this comment

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

If it's not used, change to external.

// TODO should we adjust this to <= also in other Product contracts?
// TODO should we revert on any other place if encountered price is 0 or negative, or is this okay to do just here?
if (price <= 0) {
revert ChainlinkFeedReturnedNegativePrice({ feed: address(feed), price: price, updatedAt: updatedAt });
Copy link
Member

Choose a reason for hiding this comment

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

Ideally change the error. It's not just negative. Remove the todos.

@microHoffman microHoffman changed the title fixes after audit, deployment script updates V1.5 updates Jan 28, 2026
@microHoffman microHoffman marked this pull request as ready for review January 28, 2026 16:55
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