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

Fix naming convention for thresholds and unify output metrics #11

Open
philippb90 opened this issue Jan 26, 2023 · 0 comments
Open

Fix naming convention for thresholds and unify output metrics #11

philippb90 opened this issue Jan 26, 2023 · 0 comments

Comments

@philippb90
Copy link
Collaborator

Naming convention

I think the way to fix that would be to make a union types in the collateral analysis repo
but I think it's really a nice to have and doesn't need to be fixed right now
Or maybe simpler just adding an explicit max borrow: https://github.com/interlay/collateralization-analysis#config

...
thresholds:
periods: # length for each threshold simulation in days
liquidation: 7
premium_redeem: 14
max_borrow: 14
safe_mint: 21
...
and then here https://github.com/interlay/collateralization-analysis#process output would be

Liquidation_Threshold = 1 / (1 - VaR(7days, 99%))
Premium_Redeem_Threshold = 1 / (1 - VaR(14days, 99%))
Maximum_Borrow_Threshold = 1 / (1 - VaR(14days, 99%))
Safe_Mint_Threshold = 1 / (1 - VaR(21days, 99%))

Output metrics
Currently the results are output as value-to-loan ratio (>100%). For the lending market the values are reported as loan-to-value (<100%) which means the output has to be inverted (backwards) if the calculations are supposed for the lending market.

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

No branches or pull requests

1 participant