LendingGetterAndSetterFacet
LendingOperatorSet
allowRevenueTokens
disallowRevenueTokens
setLendingOperator
Set the lending operator for a given token
Only the aavegotchi owner can set a lending operator Can only be called when the token is unlocked to prevent borrowers from setting operators
LendingOperatorInputs
batchSetLendingOperator
revenueTokenAllowed
getTokenBalancesInEscrow
isLendingOperator
getGotchiLendingListingInfo
Get an aavegotchi lending details through an identifier
Will throw if the lending does not exist
Parameters
Name | Type | Description |
---|---|---|
_listingId | uint32 | The identifier of the lending to query |
Return Values
Name | Type | Description |
---|---|---|
listing_ | struct GotchiLending | A struct containing certain details about the lending like timeCreated etc |
aavegotchiInfo_ | struct AavegotchiInfo | A struct containing details about the aavegotchi |
getLendingListingInfo
Get an ERC721 lending details through an identifier
Will throw if the lending does not exist
Parameters
Name | Type | Description |
---|---|---|
_listingId | uint32 | The identifier of the lending to query |
Return Values
Name | Type | Description |
---|---|---|
listing_ | struct GotchiLending | A struct containing certain details about the ERC721 lending like timeCreated etc |
getGotchiLendingFromToken
Get an aavegotchi lending details through an NFT
Will throw if the lending does not exist
Parameters
Name | Type | Description |
---|---|---|
_erc721TokenId | uint32 | The identifier of the NFT associated with the lending |
Return Values
Name | Type | Description |
---|---|---|
listing_ | struct GotchiLending | A struct containing certain details about the lending associated with an NFT of contract identifier |
getGotchiLendingIdByToken
getOwnerGotchiLendings
Query a certain amount of aavegotchi lending listings created by an address
Parameters
Name | Type | Description |
---|---|---|
_lender | address | Creator of the listings to query |
_status | bytes32 | Status of the listings to query, "listed" or "agreed" |
_length | uint256 | How many aavegotchi listings to return |
Return Values
Name | Type | Description |
---|---|---|
listings_ | struct GotchiLending[] | An array of lending |
getOwnerGotchiLendingsLength
Query a certain amount of aavegotchi lending listings created by an address
We don't care that this can loop forever since it's just an external view function
getGotchiLendings
Query a certain amount of aavegotchi lending listings
Parameters
Name | Type | Description |
---|---|---|
_status | bytes32 | Status of the listings to query, "listed" or "agreed" |
_length | uint256 | How many listings to return |
Return Values
Name | Type | Description |
---|---|---|
listings_ | struct GotchiLending[] | An array of lending |