OriginationController

Verified contract

Active on Ethereum with 6,365 txns
Deployed by via 0x387841e0 at 18021383
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "OriginationController"

0x6053259b8a39227224f51ab027c6655ecd5013de278f64317e2571bc553cfc07
0x67265ab1d00b3e7e46018f3d5aa9a84fab45f56cf16a59c078b19f3e6380d3a6
0xbd0b1f744bcc3fa28dcbe73ab8b6aaa889a48e67fbc25b6ab5850371141939bc
0x2b9172a9ace333a6f8e4ac90114cff0c73e3ef8b4de2963ba24370f6149e2b77
0xb0d160133a39b7cfc88e496814ce67bb4f976758c444fa99512906d32cc348f6
0xc90fd82653e047679bf62cfef58ce6c630a5e7c9c909e8bddf925ef0644c608f
0x76fef044d2882fe51dc43ec0c84b3d4acca89ba64f5f26d0eb6f82c796474ef3
0x642a96906b7635e23388fc47e17c4b46adab46bafd6b00b5524296e5e43f1826
0x44f55c222e5ddc18c30763a3dcc343d06d8e3a54e8501061dec75894c2c3ab9a
0x7bf8d77bee711d437036a6afbe4a3fdf71f55d37a1fc388532f9a829fa4ce8d6

Functions
Getter at block 21157492
ADMIN_ROLE(view returns (bytes32)
0xdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42
BASIS_POINTS_DENOMINATOR(view returns (uint256)
10000
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
FL_01(view returns (bytes32)
0xddfa60b1f3b0c3629357d48d7f8a1186bd1ff199faa6c6b792597e91bd705dc2
FL_02(view returns (bytes32)
0x4e2344e60c4b990f3c4cf2efa216c71144a011f9e4a940c6b459a8066c98e1f9
FL_03(view returns (bytes32)
0x6b9fec8a90acd71b357b3fbde8e525c5e0a0ffebe7010905e79162a4fd6421bd
FL_04(view returns (bytes32)
0xc3a599955a4238a21ad67957aa12a28dc3e88efd2a54bc264ba15e23b257c352
FL_05(view returns (bytes32)
0x74ba47f4e32f0deada0ece4f758dd1cb5f98ba44c024c037a61f34bb066f568e
FL_06(view returns (bytes32)
0x41f539feb01b3a702d5e8c2e4367fa0d5a544df6b5ef24765c6836e0743db742
FL_07(view returns (bytes32)
0x6c9950464c33f914161b87af80469f5598c7ea5009d7b4464f7e3815112686a3
FL_08(view returns (bytes32)
0x4714fd9784ca8c9ee16df7000f2eb0fc7a2296e457de6968bc65d71fd2873706
INTEREST_RATE_DENOMINATOR(view returns (uint256)
1000000000000000000
WHITELIST_MANAGER_ROLE(view returns (bytes32)
0x827de50cc5532fcea9338402dc65442c2567a37fbd0cd8eb56858d00e9e842bd
_PREDICATE_TYPEHASH(view returns (bytes32)
0x4278b56bf1dcde7c6694425d65e0508c8f14eac9c858a02365619844dfd12fb8
Read-only
_encodePredicates(struct LoanLibraryPredicate[] predicatespure returns (bytes32 itemsHash)
allowedCollateral(addressview returns (bool)
allowedCurrencies(addressview returns (bool isAlloweduint256 minPrincipal)
allowedVerifiers(addressview returns (bool)
getInterestAmount(uint256 principaluint256 proratedInterestRatepure returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
isAllowedCollateral(address tokenview returns (bool)
isAllowedCurrency(address tokenview returns (bool)
isAllowedVerifier(address verifierview returns (bool)
isApproved(address owneraddress signerview returns (bool)
isApprovedForContract(address targetstruct IOriginationControllerSignature sigbytes32 sighashview returns (bool)
isSelfOrApproved(address targetaddress signerview returns (bool)
recoverItemsSignature(struct LoanLibraryLoanTerms loanTermsstruct IOriginationControllerSignature siguint160 nonceuint8 sidebytes32 itemsHashview returns (bytes32 sighashaddress signer)
recoverTokenSignature(struct LoanLibraryLoanTerms loanTermsstruct IOriginationControllerSignature siguint160 nonceuint8 sideview returns (bytes32 sighashaddress signer)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
approve(address signerbool approved
grantRole(bytes32 roleaddress account
initializeLoan(struct LoanLibraryLoanTerms loanTermsaddress borroweraddress lenderstruct IOriginationControllerSignature siguint160 noncereturns (uint256 loanId)
initializeLoanWithCollateralPermit(struct LoanLibraryLoanTerms loanTermsaddress borroweraddress lenderstruct IOriginationControllerSignature siguint160 noncestruct IOriginationControllerSignature collateralSiguint256 permitDeadlinereturns (uint256 loanId)
initializeLoanWithCollateralPermitAndItems(struct LoanLibraryLoanTerms loanTermsaddress borroweraddress lenderstruct IOriginationControllerSignature siguint160 noncestruct IOriginationControllerSignature collateralSiguint256 permitDeadlinestruct LoanLibraryPredicate[] itemPredicatesreturns (uint256 loanId)
initializeLoanWithItems(struct LoanLibraryLoanTerms loanTermsaddress borroweraddress lenderstruct IOriginationControllerSignature siguint160 noncestruct LoanLibraryPredicate[] itemPredicatesreturns (uint256 loanId)
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
rolloverLoan(uint256 oldLoanIdstruct LoanLibraryLoanTerms loanTermsaddress lenderstruct IOriginationControllerSignature siguint160 noncereturns (uint256 newLoanId)
rolloverLoanWithItems(uint256 oldLoanIdstruct LoanLibraryLoanTerms loanTermsaddress lenderstruct IOriginationControllerSignature siguint160 noncestruct LoanLibraryPredicate[] itemPredicatesreturns (uint256 newLoanId)
setAllowedCollateralAddresses(address[] tokensbool[] isAllowed
setAllowedPayableCurrencies(address[] tokensstruct IOriginationControllerCurrency[] currencyData
setAllowedVerifiers(address[] verifiersbool[] isAllowed
Events
Approval(address indexed owneraddress indexed signerbool isApproved
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
SetAllowedCollateral(address indexed collateralbool isAllowed
SetAllowedCurrency(address indexed currencybool isAlloweduint256 minPrincipal
SetAllowedVerifier(address indexed verifierbool isAllowed
Constructor
constructor(address _loanCoreaddress _feeController
Fallback and receive

This contract contains no fallback and receive objects.

Errors
OC_ApprovedOwnLoan(address caller
OC_ArrayTooManyElements(
OC_BatchLengthMismatch(
OC_CallerNotParticipant(address caller
OC_InterestRate(uint256 interestRate
OC_InvalidCollateral(address collateralAddress
OC_InvalidCurrency(address payableCurrency
OC_InvalidSignature(address targetaddress signer
OC_InvalidState(uint8 state
OC_InvalidVerifier(address verifier
OC_LoanDuration(uint256 durationSecs
OC_PredicateFailed(address borroweraddress lenderaddress verifieraddress collateralAddressuint256 collateralIdbytes data
OC_PredicatesArrayEmpty(
OC_PrincipalTooLow(uint256 principal
OC_RolloverCollateralMismatch(address oldCollateralAddressuint256 oldCollateralIdaddress newCollateralAddressuint256 newCollateralId
OC_RolloverCurrencyMismatch(address oldCurrencyaddress newCurrency
OC_SelfApprove(address caller
OC_SideMismatch(address signer
OC_SignatureIsExpired(uint256 deadline
OC_ZeroAddress(string addressType
OC_ZeroArrayElements(