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

Loans: Fixed maturity with extension #1405

Closed
2 tasks
hieronx opened this issue Jun 19, 2023 · 1 comment · Fixed by #1445
Closed
2 tasks

Loans: Fixed maturity with extension #1405

hieronx opened this issue Jun 19, 2023 · 1 comment · Fixed by #1445
Labels
crcl-protocol Circle protocol related. P2-nice-to-have Issue is worth doing. Q1-easy Can be done by primarily duplicating and adapting code.

Comments

@hieronx
Copy link
Contributor

hieronx commented Jun 19, 2023

Description

Add an option to include a # of extension days in a fixed maturity asset, which enables extending the maturity by those # of days without going through the change guard.

The benefit is that for internally priced assets, the valuation can depend on the correct maturity date.

  • Add
enum MaturityDate {
  Fixed {
    date: Moment,
    extension: Moment,
  }
}
  • Maturity date can be modified as long as
    new_maturity_date = old_maturity_date + (prev_extension_days - remaining_extension_days)
    remaining_extension_days = prev_extension_days - (new_maturity_date - old_maturity_date)`
    Basically the extension days are reduced with the same amount as the maturity date is increased.
@hieronx hieronx added Q1-easy Can be done by primarily duplicating and adapting code. P2-nice-to-have Issue is worth doing. crcl-protocol Circle protocol related. labels Jun 19, 2023
@lemunozm
Copy link
Contributor

This issue is continued in this slack thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crcl-protocol Circle protocol related. P2-nice-to-have Issue is worth doing. Q1-easy Can be done by primarily duplicating and adapting code.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants