LoansManager
Inherits: ILoansManager, IERC721Receiver, Initializable, TokenBalanceTrackerUpgradeable
State Variables
fixedInterestBulletLoans
IFixedInterestBulletLoans public fixedInterestBulletLoans;
asset
IERC20 public asset;
activeLoanIds
uint256[] public activeLoanIds;
issuedLoanIds
mapping(uint256 => bool) public issuedLoanIds;
__gap
uint256[50] private __gap;
Functions
__LoanManager_init
function __LoanManager_init(
IFixedInterestBulletLoans _fixedInterestBulletLoans,
IERC20 _asset
)
internal
onlyInitializing;
_transferAsset
function _transferAsset(address to, uint256 amount) internal;
_transferAssetFrom
function _transferAssetFrom(address from, address to, uint256 amount) internal;
_addLoan
function _addLoan(AddLoanParams calldata params) internal returns (uint256 loanId);
_fundLoan
function _fundLoan(uint256 loanId) internal returns (uint256 principal);
_repayLoan
function _repayLoan(uint256 loanId) internal returns (uint256 amount);
_repayDefaultedLoan
function _repayDefaultedLoan(uint256 loanId, uint256 usdAmount) internal;
_cancelLoan
function _cancelLoan(uint256 loanId) internal;
_markLoanAsDefaulted
function _markLoanAsDefaulted(uint256 loanId) internal;
_tryToExcludeLoan
function _tryToExcludeLoan(uint256 loanId) internal;
onERC721Received
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
)
external
override
returns (bytes4);
_calculateOverdueValue
function _calculateOverdueValue() internal view returns (uint256 overdueValue);