RedemptionAgent
Source: contracts/extensions/RedemptionAgent.sol
Functions that change state
Function
Who can call
Also
onERC721Received(address, address from, uint256 tokenId, bytes data)Checked inside the function
redeemHome(uint256 homeId)Checked inside the function
nonReentrantrelease(uint256 homeId)Checked inside the function
nonReentrantRead functions
Anyone can call these; they change nothing.
Function
Returns
beneficialOwnerOf(uint256 tokenId)address
deedNFT()address
holdOf(uint256 homeId)(address,address)
housingRecord()address
Events
Event
Deposited(uint256 homeId indexed, address depositor indexed, address member indexed)Redeemed(uint256 homeId indexed, address member indexed)Released(uint256 homeId indexed, address depositor indexed)Errors
Error
NotCoopDeed()NotDeedNFT()NotDepositor()NotHeld(uint256 homeId)NotOccupant(uint256 homeId, address member)NotSponsor(address from)StillLive(uint256 homeId)WrongMember(uint256 homeId, address member)