Views
This page details view functions on a Cooler.
/// @notice compute collateral needed for loan amount at given loan to collateral ratio
function collateralFor(uint256 amount, uint256 loanToCollateral) public pure returns (uint256) {/// @notice compute interest cost on amount at given rate
function interestFor(uint256 amount, uint256 rate, uint256 duration) public pure returns (uint256) {}/// @notice check if given loan is in default
function isDefaulted(uint256 loanID) external view returns (bool) {}/// @notice check if given request is active
function isActive(uint256 reqID) external view returns (bool) {}Last updated