Skip to content

Refactor bond.term to months instead of seconds#10

Open
m19 wants to merge 3 commits intomainfrom
term-fix
Open

Refactor bond.term to months instead of seconds#10
m19 wants to merge 3 commits intomainfrom
term-fix

Conversation

@m19
Copy link
Contributor

@m19 m19 commented Mar 18, 2023

During testing on testnet we found an issue with setting bond.term in seconds.

Our main KIBT is intended to be backed by 1-year treasury bill tokens, however, a bond issued on 1 Jan 2023 does not have the same amount of seconds compared to a 1-year treasury bill issued on 1 March 2023, or 1 Jan 2024 etc. Yet, the KUMASwap should accept all of those treasury bills issued on different dates. That is not possible when the term in seconds is used to calculate the riskCategory.

This PR is a refactor to now express a bond.term in months instead seconds. The code changes are minimal but there were some tests to adjust. The documentation is not updated yet to reflect this change.

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.

1 participant