IInterestCalculator.sol
IInterestCalculator
Interface for an interest calculator contract.
calculateInterest
function calculateInterest(address token, uint256 amount, uint256 from, uint256 to) external view returns (uint256)
Calculates the interest accrued for a given token and amount within a specified time range.
Parameters:
Name Type Description token address The address of the token. amount uint256 The amount of the token. from uint256 The starting timestamp (inclusive) of the time range. to uint256 The ending timestamp (exclusive) of the time range. Return Values:
Name Type Description [0] uint256 The accrued interest for the specified token and amount within the given time range.