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

Question: The math formula in VariableInterestRate.sol #1

Open
anhthii opened this issue Aug 13, 2022 · 0 comments
Open

Question: The math formula in VariableInterestRate.sol #1

anhthii opened this issue Aug 13, 2022 · 0 comments

Comments

@anhthii
Copy link

anhthii commented Aug 13, 2022

Hi everyone, I'm learning about how fraxlend works and I'm trying to understand the math formula in this method

function getNewRate(bytes calldata _data, bytes calldata _initData) external pure returns (uint64 _newRatePerSec) {

I checked the documentation but it only shows the formula of Linear Rate model but no formula for Time-Weighted Variable Interest Rate.

I looks up on the internet but couldn't find any information about this formula. Is this some formula that the team comes up with or it comes from traditional finance?

Thank you very much if any one can help me understand it

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