GotchiLendingFacet
AddGotchiListing
addGotchiListing
Allow an aavegotchi lender (msg sender) or their lending operator to add request for lending
If the lending request exist, cancel it and replaces it with the new one If the lending is active, unable to cancel
cancelGotchiLending
Allow an aavegotchi lender or lending operator to cancel his NFT lending through the listingId
Parameters
Name | Type | Description |
---|---|---|
_listingId | uint32 | The identifier of the lending to be cancelled |
agreeGotchiLending
Allow a borrower to agree an lending for the NFT
Will throw if the NFT has been lent or if the lending has been canceled already
Parameters
Name | Type | Description |
---|---|---|
_listingId | uint32 | The identifier of the lending to agree |
_erc721TokenId | uint32 | |
_initialCost | uint96 | |
_period | uint32 | |
_revenueSplit | uint8[3] |
claimGotchiLending
Allow to claim revenue from the lending
Will throw if the NFT has not been lent or if the lending has been canceled already
Parameters
Name | Type | Description |
---|---|---|
_tokenId | uint32 | The identifier of the lent aavegotchi to claim |
claimAndEndGotchiLending
Allow a lender or borrower or lending operator to claim revenue from the lending and end the listing
Will throw if the NFT has not been lent or if the lending has been canceled already
Parameters
Name | Type | Description |
---|---|---|
_tokenId | uint32 | The identifier of the lent aavegotchi to claim |
extendGotchiLending
Allows a lender or lending operator to extend a current listing
addGotchiLending
Exists to keep the same function signature as previous
cancelGotchiLendingByToken
Allow an aavegotchi lender to cancel his NFT lending by providing the NFT contract address and identifier
Parameters
Name | Type | Description |
---|---|---|
_erc721TokenId | uint32 | The identifier of the NFT to be delisted from lending |
claimAndEndAndRelistGotchiLending
Allows a lender or pet operator to end the listing and relist with the same parameters
batchAddGotchiListing
Add gotchi listings in batch
batchCancelGotchiLending
Cancel gotchi listings in batch by listing ID
batchCancelGotchiLendingByToken
Cancel gotchi listings in batch by token ID
batchClaimGotchiLending
Claim gotchi lendings in batch by token ID
batchClaimAndEndGotchiLending
Claim and end gotchi lendings in batch by token ID
batchClaimAndEndAndRelistGotchiLending
Claim and end and relist gotchi lendings in batch by token ID
BatchRenew
batchExtendGotchiLending
Extend gotchi listings in batch by token ID