Events

    // Lender Blueprint Events
    event Supply(
        uint256 loanId,
        string lender,
        address indexed userBlueprintAddress,
        address token,
        uint256 amount,
        address market,
        address user
    );

    event Borrow(
        uint256 loanId,
        string lender,
        address indexed userBlueprintAddress,
        address indexed borrower,
        address market,
        address token,
        uint256 amount,
        uint256 rateMode,
        address user
    );

    event Repay(
        uint256 loanId,
        string lender,
        address indexed userBlueprintAddress,
        address indexed user,
        address market,
        address token,
        uint256 rateMode,
        uint256 amount,
        address onBehalf
    );

    event Withdraw(
        uint256 loanId,
        string lender,
        address indexed userBlueprintAddress,
        address indexed borrower,
        address market,
        address token,
        uint256 amount,
        address user
    );
    event LenderBlueprintCreated(string lender, address indexed blueprintAddress);
    event UpdateProtectionLB(address indexed user, uint256 loanId, uint256 endDate, uint256 availableCredit);
    event TransferCancelFee(
        uint256 amount, address indexed token, address indexed user, address indexed vault, uint256 loanId
    );
    event ProtectionCanceled(address user, uint256 loanId);

    // Loan Blueprint Events
    event LoanTokenMinted(
        uint256 loanId,
        uint256 uniqueId,
        uint256 portfolioId,
        address indexed user,
        string lender,
        uint256 suppliedAmount,
        address collateralAddress,
        uint256 decimals,
        uint256 chainId
    );
    event BorrowDataSetToLoan(
        uint256 loanId, address loanToken, uint256 loanAmount, uint256 decimals, uint256 rateMode, address user
    );
    event LoanUpdateInfoSet(
        uint256 loanId,
        uint256 portfolioId,
        uint256 collateralBalance,
        address debtToken,
        uint256 debtAmount,
        ILoan.UpdateField loanStatus,
        address user
    );
    event LoanInfoUpdated(address indexed user, uint256 loanId, ILoan.UpdateField updateField, uint256 loanAmount);
    event PortfolioMinted(address indexed admin, address indexed user, uint256 portfolioId);
    // Protection Blueprint Events
    event UpdateProtection(address indexed user, uint256 loanId, bytes loanInfo);
    event ProtectionAddedToLoan(address indexed user, uint256 loanId, uint256 openingFee, uint256 cancellationFee);
    event ProtectionUpdateDataSet(address indexed user, uint256 loanId, uint256 endDate, uint256 totalCreditOffered);
    event ProtectionFinancialTermsDataSet(
        address indexed user,
        uint256 loanId,
        uint256 totalCreditOffered,
        uint256 totalNumberOfTokens,
        uint256 singleTokenPrice,
        uint256 trancheOneAmount,
        uint256 trancheOneFee,
        uint256 trancheTwoAmount,
        uint256 trancheTwoFee,
        uint256 trancheThreeAmount,
        uint256 trancheThreeFee
    );
    event TokenTransferredToVault(address indexed user, address indexed token, uint256 value, address indexed vault);

    // LTV Protect Blueprint Events
    event ClaimStarted(address indexed user, uint256 uniqueId, string pointer, uint256 loanId);
    event ClaimCreated(address indexed user, uint256 loanId, string pointer, uint256 trancheAmount);
    event LoanInitiateForeclosure(uint256 loanId, uint256 uniqueId, address indexed user, uint256 portfolioId);
    event CollateralRetrieved(address indexed vault, uint256 amount, address indexed user, uint256 loanId);
    event ClaimCollateralSupplied(
        address collateralToken, uint256 amount, address user, string lenderName, uint256 loanId
    );
    event ClaimFeePaid(uint256 amount, address user, uint256 loanId_);
    // Foreclosure Events
    event Foreclosure(address indexed user, string lenderName, uint256 loanId);
    event ForeclosureRepaid(address indexed user, string lenderName, uint256 loanId, uint256 amount);
    event ForeClosureWithdrawnCollateral(address indexed user, string lenderName, uint256 loanId, uint256 amount);
    event ForeClosureProtectionUpdated(
        uint256 endDate, uint256 totalCreditOffered, address indexed user, uint256 loanId, string lenderName
    );
    event ForeClosureCollateralSplit(
        uint256 revenue, address indexed user, address indexed token, address indexed vault, uint256 userAmount
    );

    // Borrow Admin Events
    event CollateralApproved(string lender, address token, bool isProtected, bool approved);
    event BlackListToken(string lender, address token, bool value);
    event DebtTokenApproved(string lender, address token, bool value);

Last updated