Metalend

Verified contract

Active on Ethereum with 5,297 txns
Deployed by via 0x4dfa59dd at 13676300
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
 (#12336)
ERC-721
--
 (#12310)
ERC-721
--
 (#12303)
ERC-721
--
 (#12297)
ERC-721
--
 (#12296)
ERC-721
--
 (#12278)
ERC-721
--
 (#12275)
ERC-721
--
 (#12273)
ERC-721
--
 (#12271)
ERC-721
--
 (#12231)
ERC-721
--
0x839e73d623bffff60fe59bbb6d5e5cd33e0f34788a3fdb674908415187f32337
0x76f41e31cd81f9416820dfe26020934176ad61446551ab4202c20f872cd0d52b
0x83072dc9f33aca2f9f6488dd3882dd8d6ad2822bfb960e81ee942f84ee34bf99
0x9b9c3ac4e7e6c92969b1d0c541e60aa22c2d0999cfe3e5ec3bcc7f33fc1d26b4
0xe3a46e24b5b4956b158b1587da4ad0491212fad8307e3e1419699d2fc9e27775
0xd7eb2fbbcf4fc280703a8adeb1c766b4b324fba2bb39933bbc810fac7a8cdcda
0xb479f02c87ef86dcdc8af908eb4b95d79f2f0d8ba478549a5f4dd772915c9c86
0xca2b825ccc65186dcc0d40fc3978c22a30d03b6c62cbe42d993d2fcd094cad7e
0x59578a4a4d86ec1075e7194b89c74b7c0e2de7705273cd33a67b5a71f096583a
0x8a2a05c0388233e595c6968252ec7f46a707e0bd121a0f5a9f14a7e5cc2a7b45

Functions
Getter at block 21267127
extensionFee(view returns (uint64)
30000000000000000
extensionHorizon(view returns (uint16)
30
extensionsAllowed(view returns (bool)
true
 
getLoans(view returns (struct MetalendLoanItem[])
getParameters(view returns (address _tokenAddressuint32 _loanTermuint128 _loanAmountuint128 _loanFeeuint64 _extensionHorizonuint128 _extensionFeebool _isPausedbool _isSunset)
(_tokenAddress=0x1d20a51f088492a0f1c57f047a9e30c9ab5c07ea, _loanTerm=90, _loanAmount=400000000000000000, _loanFee=30000000000000000, _extensionHorizon=30, _extensionFee=30000000000000000, _isPaused=false, _isSunset=true)
lendingFee(view returns (uint64)
30000000000000000
loanAmount(view returns (uint128)
400000000000000000
owner(view returns (address)
0xd5e00f1fe8dbd6b066e25894005fe007077a2e83
paused(view returns (bool)
false
repoAddress(view returns (address)
0xebc45858d7b2cfa38198b0a6fd5c4f43bf5a51e6
sunsetModeActive(view returns (bool)
true
termInDays(view returns (uint16)
90
tokenContract(view returns (address)
0x1d20a51f088492a0f1c57f047a9e30c9ab5c07ea
Read-only
isWithinExtensionHorizon(uint128 _loanIdview returns (bool)
isWithinLoanTerm(uint128 _loanIdview returns (bool)
itemsUnderLoan(uint256view returns (uint128 loanIduint128 currentBalancebool isCurrentaddress borroweruint32 startDateuint32 endDateuint16 tokenId)
State-modifying
extendLoan(uint128 _loanIdpayable 
makeLoanPayment(uint128 _loanIdpayable 
onERC721Received(addressaddressuint256bytesreturns (bytes4)
pause(
renounceOwnership(
repossessItem(uint128 _loanId
repossessItems(uint128[] repoItems
setExtensionFee(uint64 _extensionFeereturns (bool)
setExtensionHorizon(uint16 _extensionHorizonreturns (bool)
setLendingFee(uint64 _lendingFeereturns (bool)
setLoanAmount(uint128 _loanAmountreturns (bool)
setRepoAddress(address _repoAddressreturns (bool)
setTermInDays(uint16 _termInDaysreturns (bool)
sunrise(
sunset(
takeLoan(uint16 tokenId
transferOwnership(address newOwner
unpause(
withdraw(uint256 _withdrawalreturns (bool)
Events
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Paused(address account
Sunrise(address account
Sunset(address account
Unpaused(address account
eligibleNFTAddressSet(address indexed nftAddress
ethDeposited(uint256 indexed deposituint256 effectiveDate
ethWithdrawn(uint256 indexed withdrawaluint256 effectiveDate
extensionFeeSet(uint64 indexed extensionFee
extensionHorizonSet(uint16 indexed extensionHorizon
lendingFeeSet(uint64 indexed lendingFee
lendingTransaction(uint128 indexed loanIduint256 indexed transactionCodeaddress indexed borroweruint16 tokenIduint256 transactionValueuint256 transactionFeeuint256 loanEndDateuint256 effectiveDate
loanAmountSet(uint128 indexed loanAmount
repoAddressSet(address indexed repoAddress
termInDaysSet(uint16 indexed termInDays
Constructor
constructor(address _tokenAddressuint128 _loanAmountuint16 _termInDaysaddress _repoAddressuint64 _lendingFeeuint64 _extensionFeeuint16 _extensionHorizon
Fallback and receive
fallback(
receive(
Errors

This contract contains no error objects.