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

show MAX LTV for llamalend markets #163

Open
amytsang opened this issue Apr 25, 2024 · 0 comments · Fixed by #162
Open

show MAX LTV for llamalend markets #163

amytsang opened this issue Apr 25, 2024 · 0 comments · Fixed by #162

Comments

@amytsang
Copy link
Contributor

The formilat for max ltv is:

In [1]: ltv = lambda x: ((x[0] - 1) / x[0])**2 * (1 - x[1])

In [2]: ltv((30, 0.11))
Out[2]: 0.8316555555555556

where x[0] is A, x[1] is loan discount normalised between 0 and 1 (so 11% is 0.11). multiply ltv by 100 to show percentage.

always show 'max ltv' which is the max possible loan at N=4 (not advisable but hey it exists!).

@amytsang amytsang linked a pull request Apr 25, 2024 that will close this issue
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 a pull request may close this issue.

1 participant