PWNSimpleLoan

Verified contract

Active on Ethereum with 101 txns
Deployed by via 0xe1b3c420 at 17677232
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $4,915.63
ERC-20
Value $347.16
 (#29)
ERC-1555
--
0xb7f361eabd6889f5c450bee09a5dbef8ecb6293935aa8310ac544d7abbf76c32
0x8ef1f58322906b4f57800b7f8f40f0fe9b4b2887f38d0ed6da40b253332a88e9
0x15f5e1c793b1c76b13391b2410be7b44d531e1ede2f86987a213addf2b90b3a4
0x1cf3950017dedaf489bb576f94a2c6aea78085457dd9e8f4cbb111cd71e4b2e9
0xa2ebfaf24970b62e8c9d93644fd0c773dc09b0c0f2e2bb596bee5d77ec577fb3
0x54fa0d0bd9b09a117957faa20a515847f63bc34593ebecea83e7d0df85b64f8e
0x2dd06e80a1e65b89a6840410ff97ee4a92369b6989af4800d55e65cf8ac421e8
0x68b7e6ed7671ef4df41576d060ab577660771c95b1f69d5e1745e700f43577ca
0x2aebf1953765e1df1a78eaff75b37b83651326e0322bd6830ce1ea22a67eb2df
0x108115db963f84d1eb6f2bc8c94803901807c7cc21eadb9b1effb9c4aa1ede60

Functions
Getter at block 21266877
MAX_EXPIRATION_EXTENSION(view returns (uint256)
2592000
loanMetadataUri(view returns (string)
https://api.pwn.xyz/loan/1/0x4440C069272cC34b80C7B11bEE657D0349Ba9C23/{id}/metadata
Read-only
getLOAN(uint256 loanIdview returns (struct PWNSimpleLoanLOAN loan)
getStateFingerprint(uint256 tokenIdview returns (bytes32)
onERC1155BatchReceived(addressaddressuint256[]uint256[]bytespure returns (bytes4)
onERC1155Received(address operatoraddressuint256uint256bytesview returns (bytes4)
onERC721Received(address operatoraddressuint256bytesview returns (bytes4)
supportsInterface(bytes4 interfaceIdpure returns (bool)
State-modifying
claimLOAN(uint256 loanId
createLOAN(address loanTermsFactoryContractbytes loanTermsFactoryDatabytes signaturebytes loanAssetPermitbytes collateralPermitreturns (uint256 loanId)
extendLOANExpirationDate(uint256 loanIduint40 extendedExpirationDate
repayLOAN(uint256 loanIdbytes loanAssetPermit
Events
LOANClaimed(uint256 indexed loanIdbool indexed defaulted
LOANCreated(uint256 indexed loanIdstruct PWNLOANTermsSimple termsbytes32 indexed factoryDataHashaddress indexed factoryAddress
LOANExpirationDateExtended(uint256 indexed loanIduint40 extendedExpirationDate
LOANPaidBack(uint256 indexed loanId
VaultPull(struct MultiTokenAsset assetaddress indexed origin
VaultPush(struct MultiTokenAsset assetaddress indexed beneficiary
VaultPushFrom(struct MultiTokenAsset assetaddress indexed originaddress indexed beneficiary
Constructor
constructor(address _hubaddress _loanTokenaddress _config
Fallback and receive

This contract contains no fallback and receive objects.

Errors
CallerMissingHubTag(bytes32 arg0
CallerNotLOANTokenHolder(
IncompleteTransfer(
InvalidCollateralAsset(
InvalidExtendedExpirationDate(
InvalidLoanAsset(
InvalidLoanStatus(uint256 arg0
LoanDefaulted(uint40 arg0
NonExistingLoan(
UnsupportedTransferFunction(