Skip to content

Latest commit

 

History

History
255 lines (234 loc) · 9.01 KB

LoanClosingsWithoutInvariantCheck.md

File metadata and controls

255 lines (234 loc) · 9.01 KB

LoanClosingsWithoutInvariantCheck.sol

View Source: contracts/mockup/LoanClosingsWithoutInvariantCheck.sol

↗ Extends: LoanClosingsWithMockup

LoanClosingsWithoutInvariantCheck contract

Modifiers

iTokenSupplyUnchanged

modifier iTokenSupplyUnchanged(bytes32 loanId) internal

Arguments

Name Type Description
loanId bytes32

Functions


initialize

undefined

function initialize(address target) external nonpayable onlyOwner 

Arguments

Name Type Description
target address
Source Code
function initialize(address target) external onlyOwner {
        address prevModuleContractAddress = logicTargets[this.closeWithDeposit.selector];
        _setTarget(this.closeWithDeposit.selector, target);
        _setTarget(this.closeWithSwap.selector, target);
        _setTarget(this.checkCloseWithDepositIsTinyPosition.selector, target);
        emit ProtocolModuleContractReplaced(prevModuleContractAddress, target, "LoanClosingsWith");
    }

Contracts