Smart Contract gets interest permils due to technical reasons - no support for floats. But that doesn't mean we should expose permils to other developers.
Suggestion -> use BigNumbers in API where possible instead of interestPermil and assert when trying to create a loan with too many decimals in it.
It's a leaky abstraction but most of the time it's better to have it then not.
Smart Contract gets interest permils due to technical reasons - no support for floats. But that doesn't mean we should expose permils to other developers. Suggestion -> use BigNumbers in API where possible instead of interestPermil and assert when trying to create a loan with too many decimals in it.
It's a leaky abstraction but most of the time it's better to have it then not.