OriginationController
Verified contract
Active on
Ethereum with 6,580 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
No balances found for "OriginationController"
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 21241271 | a minute ago | | | 0 | 0.0054137898 | |
| 21241012 | an hour ago | | | 0 | 0.0062637910 | |
| 21241007 | an hour ago | | | 0 | 0.0065194801 | |
| 21241001 | an hour ago | | | 0 | 0.0069188113 | |
| 21240986 | an hour ago | | | 0 | 0.0069231478 | |
| 21240653 | 2 hours ago | | | 0 | 0.0074294844 | |
| 21240232 | 4 hours ago | | | 0 | 0.0056001207 | |
| 21239780 | 5 hours ago | | | 0 | 0.0074437650 | |
| 21239492 | 6 hours ago | | | 0 | 0.0070689823 | |
| 21238697 | 9 hours ago | | | 0 | 0.011524044 |
ABI
ABI objects
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[] predicates) pure returns (bytes32 itemsHash)
allowedCollateral(address) view returns (bool)
allowedCurrencies(address) view returns (bool isAllowed, uint256 minPrincipal)
allowedVerifiers(address) view returns (bool)
getInterestAmount(uint256 principal, uint256 proratedInterestRate) pure returns (uint256)
getRoleAdmin(bytes32 role) view returns (bytes32)
getRoleMember(bytes32 role, uint256 index) view returns (address)
getRoleMemberCount(bytes32 role) view returns (uint256)
hasRole(bytes32 role, address account) view returns (bool)
isAllowedCollateral(address token) view returns (bool)
isAllowedCurrency(address token) view returns (bool)
isAllowedVerifier(address verifier) view returns (bool)
isApproved(address owner, address signer) view returns (bool)
isApprovedForContract(address target, struct IOriginationControllerSignature sig, bytes32 sighash) view returns (bool)
isSelfOrApproved(address target, address signer) view returns (bool)
recoverItemsSignature(struct LoanLibraryLoanTerms loanTerms, struct IOriginationControllerSignature sig, uint160 nonce, uint8 side, bytes32 itemsHash) view returns (bytes32 sighash, address signer)
recoverTokenSignature(struct LoanLibraryLoanTerms loanTerms, struct IOriginationControllerSignature sig, uint160 nonce, uint8 side) view returns (bytes32 sighash, address signer)
supportsInterface(bytes4 interfaceId) view returns (bool)
State-modifying
Events approve(address signer, bool approved)
grantRole(bytes32 role, address account)
initializeLoan(struct LoanLibraryLoanTerms loanTerms, address borrower, address lender, struct IOriginationControllerSignature sig, uint160 nonce) returns (uint256 loanId)
initializeLoanWithCollateralPermit(struct LoanLibraryLoanTerms loanTerms, address borrower, address lender, struct IOriginationControllerSignature sig, uint160 nonce, struct IOriginationControllerSignature collateralSig, uint256 permitDeadline) returns (uint256 loanId)
initializeLoanWithCollateralPermitAndItems(struct LoanLibraryLoanTerms loanTerms, address borrower, address lender, struct IOriginationControllerSignature sig, uint160 nonce, struct IOriginationControllerSignature collateralSig, uint256 permitDeadline, struct LoanLibraryPredicate[] itemPredicates) returns (uint256 loanId)
initializeLoanWithItems(struct LoanLibraryLoanTerms loanTerms, address borrower, address lender, struct IOriginationControllerSignature sig, uint160 nonce, struct LoanLibraryPredicate[] itemPredicates) returns (uint256 loanId)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
rolloverLoan(uint256 oldLoanId, struct LoanLibraryLoanTerms loanTerms, address lender, struct IOriginationControllerSignature sig, uint160 nonce) returns (uint256 newLoanId)
rolloverLoanWithItems(uint256 oldLoanId, struct LoanLibraryLoanTerms loanTerms, address lender, struct IOriginationControllerSignature sig, uint160 nonce, struct LoanLibraryPredicate[] itemPredicates) returns (uint256 newLoanId)
setAllowedCollateralAddresses(address[] tokens, bool[] isAllowed)
setAllowedPayableCurrencies(address[] tokens, struct IOriginationControllerCurrency[] currencyData)
setAllowedVerifiers(address[] verifiers, bool[] isAllowed)
Approval(address indexed owner, address indexed signer, bool isApproved)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
SetAllowedCollateral(address indexed collateral, bool isAllowed)
SetAllowedCurrency(address indexed currency, bool isAllowed, uint256 minPrincipal)
SetAllowedVerifier(address indexed verifier, bool isAllowed)
constructor(address _loanCore, address _feeController)
This contract contains no fallback and receive objects.
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 target, address signer)
OC_InvalidState(uint8 state)
OC_InvalidVerifier(address verifier)
OC_LoanDuration(uint256 durationSecs)
OC_PredicateFailed(address borrower, address lender, address verifier, address collateralAddress, uint256 collateralId, bytes data)
OC_PredicatesArrayEmpty()
OC_PrincipalTooLow(uint256 principal)
OC_RolloverCollateralMismatch(address oldCollateralAddress, uint256 oldCollateralId, address newCollateralAddress, uint256 newCollateralId)
OC_RolloverCurrencyMismatch(address oldCurrency, address newCurrency)
OC_SelfApprove(address caller)
OC_SideMismatch(address signer)
OC_SignatureIsExpired(uint256 deadline)
OC_ZeroAddress(string addressType)
OC_ZeroArrayElements()