LoanCore

Verified contract

Active on Ethereum with 819 txns
Deployed by via 0x09306805 at 18021380
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $4.18
ERC-20
Value $4.04
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
 (#9780)
ERC-721
--
 (#7562)
ERC-721
--
 (#6634)
ERC-721
--
 (#6267)
ERC-721
--
0x50e6589090fa06a665093b8d02b545fabe2c9cb78322b2b5a4ab0beed9a8253e
0x9bbc796a231bfe52e0b743938ea2fd93f1529ec1ebfdb6932de13f1da8d93cf6
0x127334adbf7de051d326c1eceb7158475be7656fcea47f772387ba610a34ef1f
0x5204895493fa0ae6491af58636b3707c0e556720209e1754104f80fc72b4cb69
0x5e79934623efdcbd3c4bb78896d4904ff0e48549318fbbdc3a7c9a591109d525
0x569eb936b872d444bfbf92641c6416bf0ba2a7ecee7f6a57f85ff0a6f522e141
0x5c88ff16b5d56f543e2b4d4233daf9bb49bc4440c4a06384e21345af8d183dfb
0x7fd7904589dc33eb18ebe417ed39f70b001fff439d5df1dcf0ab231c83b66d43
0x157709eb858d23b89681edd7b0abedc594cacf1f69096a52b466f3880ea04b04
0x32fb2b6271ea37c338324f2a3d4a9872cc5359f7869bda7f20d06a9dd904a232

Functions
Getter at block 21290998
ADMIN_ROLE(view returns (bytes32)
0xdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42
AFFILIATE_MANAGER_ROLE(view returns (bytes32)
0xc3f1c35a56b30573b2f110479735bf30cf052375c7d5b4436731da1087a01f68
BASIS_POINTS_DENOMINATOR(view returns (uint256)
10000
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
FEE_CLAIMER_ROLE(view returns (bytes32)
0xdc43895cfc822a45cb77eccebfff1143d490fffb619f1141baf172b83c53ecf9
GRACE_PERIOD(view returns (uint256)
600
INTEREST_RATE_DENOMINATOR(view returns (uint256)
1000000000000000000
ORIGINATOR_ROLE(view returns (bytes32)
0x0e3bd0540e03bb6bc6bbfab3c1f0a7fa58fced33dc3256731217fd01a20479b8
REPAYER_ROLE(view returns (bytes32)
0x945556d23be9a7c839faccfc238fc67e56b8e3c9fddab25f8258c8b368d3413d
SHUTDOWN_ROLE(view returns (bytes32)
0x2b22d873f791abe31d4310d327f02daef6f297a9bbbce4a994bf2bbeadf02d57
borrowerNote(view returns (address)
0xe5b12befaf3a91065da7fdd461ded2d8f8ecb7be
lenderNote(view returns (address)
0x92ed78b41537c902ad287608d8535bb6780a7618
paused(view returns (bool)
false
Read-only
affiliateSplits(bytes32view returns (address affiliateuint96 splitBps)
canCallOn(address calleraddress vaultview returns (bool)
feesWithdrawable(addressaddressview returns (uint256)
getInterestAmount(uint256 principaluint256 proratedInterestRatepure returns (uint256)
getLoan(uint256 loanIdview returns (struct LoanLibraryLoanData loanData)
getNoteReceipt(uint256 loanIdview returns (addressuint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
isNonceUsed(address useruint160 nonceview returns (bool)
noteReceipts(uint256view returns (address tokenuint256 amount)
supportsInterface(bytes4 interfaceIdview returns (bool)
usedNonces(addressuint160view returns (bool)
State-modifying
cancelNonce(uint160 nonce
claim(uint256 loanIduint256 _amountFromLender
consumeNonce(address useruint160 nonce
forceRepay(uint256 loanIdaddress payeruint256 _amountFromPayeruint256 _amountToLender
grantRole(bytes32 roleaddress account
redeemNote(uint256 loanIduint256 _amountFromLenderaddress to
renounceRole(bytes32 roleaddress account
repay(uint256 loanIdaddress payeruint256 _amountFromPayeruint256 _amountToLender
revokeRole(bytes32 roleaddress account
rollover(uint256 oldLoanIdaddress borroweraddress lenderstruct LoanLibraryLoanTerms termsuint256 _settledAmountuint256 _amountToOldLenderuint256 _amountToLenderuint256 _amountToBorrowerreturns (uint256 newLoanId)
setAffiliateSplits(bytes32[] codesstruct ILoanCoreAffiliateSplit[] splits
shutdown(
startLoan(address lenderaddress borrowerstruct LoanLibraryLoanTerms termsuint256 _amountFromLenderuint256 _amountToBorrowerstruct LoanLibraryFeeSnapshot _feeSnapshotreturns (uint256 loanId)
withdraw(address tokenuint256 amountaddress to
withdrawProtocolFees(address tokenaddress to
Events
AffiliateSet(bytes32 indexed codeaddress indexed affiliateuint96 splitBps
FeesWithdrawn(address indexed tokenaddress indexed calleraddress indexed touint256 amount
ForceRepay(uint256 loanId
LoanClaimed(uint256 loanId
LoanRepaid(uint256 loanId
LoanRolledOver(uint256 oldLoanIduint256 newLoanId
LoanStarted(uint256 loanIdaddress lenderaddress borrower
NonceUsed(address indexed useruint160 nonce
NoteRedeemed(address indexed tokenaddress indexed calleraddress indexed touint256 tokenIduint256 amount
Paused(address account
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Unpaused(address account
Constructor
constructor(address _borrowerNoteaddress _lenderNote
Fallback and receive

This contract contains no fallback and receive objects.

Errors
LC_AffiliateCodeAlreadySet(bytes32 affiliateCode
LC_ArrayLengthMismatch(
LC_CannotSettle(uint256 payoutuint256 collected
LC_CannotWithdraw(uint256 amountuint256 available
LC_CollateralInUse(address collateralAddressuint256 collateralId
LC_InvalidState(uint8 state
LC_NoReceipt(uint256 loanId
LC_NonceUsed(address useruint160 nonce
LC_NotExpired(uint256 dueDate
LC_OverMaxSplit(uint96 splitBpsuint96 maxSplitBps
LC_ReusedNote(
LC_ZeroAddress(string addressType
LC_ZeroAmount(