hifi-finance / hifi

Monorepo implementing the Hifi fixed-rate, fixed-term lending protocol
https://app.hifi.finance
Other
106 stars 15 forks source link

[amm] Normalize the "timeToMaturity" argument in "YieldSpace.sol" #53

Open PaulRBerg opened 3 years ago

PaulRBerg commented 3 years ago

All arguments come normalized in the functions defined in YieldSpace.sol, except for the timeToMaturity argument, which is normalized internally in the library. The style would be more consistent if we asked users to normalize all function arguments before they call any function.