MathUtils
State Variables
BASIS_PRECISON
uint256 constant BASIS_PRECISON = 10_000;
SECONDS_PER_YEAR
Ignoring leap years
uint256 internal constant SECONDS_PER_YEAR = 365 days;
Functions
calculateLinearInterest
function calculateLinearInterest(
uint256 principal,
uint256 rate,
uint256 startTimestamp,
uint256 endTimestamp
)
internal
view
returns (uint256);