OriginationController

Verified contract

Active on Ethereum with 6,580 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"

0xf38bb500f80933b38c700a525cf02faf98b25617b547160ac158332a1b6c9286
0xdb749e15c2f7d2fc4808b339512fa191264a9069fabf311e900c20cc27baee38
0x670db6f5876c4593b8376a7ae1e4e690af31aac201b10199840311bd8544c9c9
From
0xa7578ae5b3f712c72a7312f95a16ea65a817298e4893c1a8a6b2381eeca2332f
From
0x6b4cc2c7993c3ddf4af3548f0a1c30f6208532f55d06ce630df14168de934b61
From
0xaa0a0b978f5d8ee3c83ebf63933972cbc518ca1acac3227e67e96e1ccab73227
0x8f703052cd6df7e5419c065d63c54806f24f72b092b4ada99f3213708aa1d6ca
0x028b17916b6c5003fe5c8414ed8a7b196aa54f526d2a8a80f35ffaa1e796bd3b
0x4c5590dfc473891bbff9f4b5ae7ddf9e4c64db160cb530680dfc8581a2950136
0x428e18836232c4cb7b4fffd8ed5b21c0e1a3da8a3d20e7b30615d34a682cef66

Functions
Getter at block 21241275
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(